DeprecatedSlideMeBuild » History » Version 30
Aaron Williamson -, 01/20/2010 10:41 PM
1 | 1 | Denis 'GNUtoo' Carikli | == WARNING == |
---|---|---|---|
2 | NEWER VERSION OF SLIDEME ARE NOT FREE(AS IN FREEDOM) |
||
3 | 27 | Aaron Williamson - | |
4 | 30 | Aaron Williamson - | == New HOWTO (in progress) == |
5 | 1 | Denis 'GNUtoo' Carikli | |
6 | 30 | Aaron Williamson - | * Install Maven 2.2.1 from source |
7 | * Install maven-android-plugin |
||
8 | 27 | Aaron Williamson - | {{{ |
9 | 30 | Aaron Williamson - | git clone git://github.com/jayway/maven-android-plugin.git |
10 | cd maven-android-plugin |
||
11 | 27 | Aaron Williamson - | mvn install |
12 | }}} |
||
13 | 30 | Aaron Williamson - | ...more to come |
14 | 27 | Aaron Williamson - | |
15 | 1 | Denis 'GNUtoo' Carikli | == Howto == |
16 | * install maven |
||
17 | 2 | Denis 'GNUtoo' Carikli | * download slideme,and try to build it: |
18 | 1 | Denis 'GNUtoo' Carikli | {{{ |
19 | 23 | Denis 'GNUtoo' Carikli | mkdir apps |
20 | cd apps |
||
21 | 1 | Denis 'GNUtoo' Carikli | svn checkout http://slideme.googlecode.com/svn/trunk/ slideme-read-only |
22 | 2 | Denis 'GNUtoo' Carikli | cd slideme-read-only |
23 | mvn install |
||
24 | }}} |
||
25 | after doing that you will have an error: |
||
26 | {{{ |
||
27 | $ mvn install |
||
28 | [INFO] Scanning for projects... |
||
29 | [INFO] Reactor build order: |
||
30 | [INFO] slideme-android-parent |
||
31 | [INFO] android-sdk-installer |
||
32 | [INFO] slideme-android-manager |
||
33 | [INFO] artifact org.jvending.masa.plugins:maven-dx-plugin: checking for updates from central |
||
34 | [INFO] ------------------------------------------------------------------------ |
||
35 | [ERROR] BUILD ERROR |
||
36 | [INFO] ------------------------------------------------------------------------ |
||
37 | [INFO] The plugin 'org.jvending.masa.plugins:maven-dx-plugin' does not exist or no valid version could be found |
||
38 | [INFO] ------------------------------------------------------------------------ |
||
39 | [INFO] For more information, run Maven with the -e switch |
||
40 | [INFO] ------------------------------------------------------------------------ |
||
41 | [INFO] Total time: 1 second |
||
42 | [INFO] Finished at: Mon Oct 26 22:33:17 CET 2009 |
||
43 | [INFO] Final Memory: 1M/4M |
||
44 | [INFO] ------------------------------------------------------------------------ |
||
45 | 1 | Denis 'GNUtoo' Carikli | }}} |
46 | 3 | Denis 'GNUtoo' Carikli | so go download masa and try to build it: |
47 | {{{ |
||
48 | cd ../ |
||
49 | svn checkout http://masa.googlecode.com/svn/trunk/ masa-read-only |
||
50 | 5 | Denis 'GNUtoo' Carikli | cd masa-read-only |
51 | 4 | Denis 'GNUtoo' Carikli | mvn install |
52 | 3 | Denis 'GNUtoo' Carikli | }}} |
53 | 6 | Denis 'GNUtoo' Carikli | it will fail like that: |
54 | {{{ |
||
55 | $ mvn install |
||
56 | [INFO] Scanning for projects... |
||
57 | Downloading: http://repo1.maven.org/maven2/org/jvending/masa/masa-parent/1/masa-parent-1.pom |
||
58 | [INFO] Unable to find resource 'org.jvending.masa:masa-parent:pom:1' in repository central (http://repo1.maven.org/maven2) |
||
59 | [INFO] ------------------------------------------------------------------------ |
||
60 | [ERROR] FATAL ERROR |
||
61 | [INFO] ------------------------------------------------------------------------ |
||
62 | [INFO] Error building POM (may not be this project's POM). |
||
63 | |||
64 | |||
65 | Project ID: org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT |
||
66 | |||
67 | Reason: Cannot find parent: org.jvending.masa:masa-parent for project: org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT for project org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT |
||
68 | |||
69 | |||
70 | [INFO] ------------------------------------------------------------------------ |
||
71 | [INFO] Trace |
||
72 | org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jvending.masa:masa-parent for project: org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT for project org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT |
||
73 | at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) |
||
74 | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272) |
||
75 | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) |
||
76 | at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) |
||
77 | at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) |
||
78 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
||
79 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
||
80 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
||
81 | at java.lang.reflect.Method.invoke(Method.java:616) |
||
82 | at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) |
||
83 | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) |
||
84 | at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) |
||
85 | at org.codehaus.classworlds.Launcher.main(Launcher.java:375) |
||
86 | Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.jvending.masa:masa-parent for project: org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT for project org.jvending.masa:masa-plugins:pom:1.2-SNAPSHOT |
||
87 | at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396) |
||
88 | at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823) |
||
89 | at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508) |
||
90 | at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) |
||
91 | at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604) |
||
92 | at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487) |
||
93 | at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560) |
||
94 | at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391) |
||
95 | ... 12 more |
||
96 | Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jvending.masa:masa-parent' not found in repository: Unable to download the artifact from any repository |
||
97 | |||
98 | org.jvending.masa:masa-parent:pom:1 |
||
99 | |||
100 | from the specified remote repositories: |
||
101 | central (http://repo1.maven.org/maven2) |
||
102 | |||
103 | for project org.jvending.masa:masa-parent |
||
104 | at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605) |
||
105 | at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392) |
||
106 | ... 19 more |
||
107 | Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository |
||
108 | |||
109 | org.jvending.masa:masa-parent:pom:1 |
||
110 | |||
111 | from the specified remote repositories: |
||
112 | central (http://repo1.maven.org/maven2) |
||
113 | |||
114 | |||
115 | at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228) |
||
116 | at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90) |
||
117 | at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558) |
||
118 | ... 20 more |
||
119 | Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository |
||
120 | at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404) |
||
121 | at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216) |
||
122 | ... 22 more |
||
123 | [INFO] ------------------------------------------------------------------------ |
||
124 | [INFO] Total time: < 1 second |
||
125 | [INFO] Finished at: Mon Oct 26 22:37:02 CET 2009 |
||
126 | [INFO] Final Memory: 1M/4M |
||
127 | [INFO] ------------------------------------------------------------------------ |
||
128 | }}} |
||
129 | then do the following: |
||
130 | {{{ |
||
131 | cd parent |
||
132 | mvn install |
||
133 | 7 | Denis 'GNUtoo' Carikli | cd ../ |
134 | mvn install |
||
135 | 6 | Denis 'GNUtoo' Carikli | }}} |
136 | and it will fails the following way: |
||
137 | {{{ |
||
138 | 8 | Denis 'GNUtoo' Carikli | [INFO] ------------------------------------------------------------------------ |
139 | [ERROR] BUILD ERROR |
||
140 | [INFO] ------------------------------------------------------------------------ |
||
141 | [INFO] Failed to resolve artifact. |
||
142 | |||
143 | Missing: |
||
144 | ---------- |
||
145 | 1) org.apache.maven.shared:maven-verifier:jar:1.2-SNAPSHOT |
||
146 | |||
147 | Try downloading the file manually from the project website. |
||
148 | |||
149 | Then, install it using the command: |
||
150 | mvn install:install-file -DgroupId=org.apache.maven.shared -DartifactId=maven-verifier -Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file |
||
151 | |||
152 | Alternatively, if you host your own repository you can deploy the file there: |
||
153 | mvn deploy:deploy-file -DgroupId=org.apache.maven.shared -DartifactId=maven-verifier -Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] |
||
154 | |||
155 | Path to dependency: |
||
156 | 1) org.jvending.masa:masa-integration-testing:jar:1.1-SNAPSHOT |
||
157 | 2) org.apache.maven.shared:maven-verifier:jar:1.2-SNAPSHOT |
||
158 | |||
159 | 2) org.apache.maven.its:maven-it-helper:jar:2.1-SNAPSHOT |
||
160 | |||
161 | Try downloading the file manually from the project website. |
||
162 | |||
163 | Then, install it using the command: |
||
164 | mvn install:install-file -DgroupId=org.apache.maven.its -DartifactId=maven-it-helper -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file |
||
165 | |||
166 | Alternatively, if you host your own repository you can deploy the file there: |
||
167 | mvn deploy:deploy-file -DgroupId=org.apache.maven.its -DartifactId=maven-it-helper -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] |
||
168 | |||
169 | Path to dependency: |
||
170 | 1) org.jvending.masa:masa-integration-testing:jar:1.1-SNAPSHOT |
||
171 | 2) org.apache.maven.its:maven-it-helper:jar:2.1-SNAPSHOT |
||
172 | |||
173 | ---------- |
||
174 | 2 required artifacts are missing. |
||
175 | |||
176 | for artifact: |
||
177 | org.jvending.masa:masa-integration-testing:jar:1.1-SNAPSHOT |
||
178 | |||
179 | from the specified remote repositories: |
||
180 | central (http://repo1.maven.org/maven2) |
||
181 | |||
182 | |||
183 | |||
184 | [INFO] ------------------------------------------------------------------------ |
||
185 | [INFO] For more information, run Maven with the -e switch |
||
186 | [INFO] ------------------------------------------------------------------------ |
||
187 | [INFO] Total time: 2 minutes 30 seconds |
||
188 | [INFO] Finished at: Mon Oct 26 22:41:29 CET 2009 |
||
189 | [INFO] Final Memory: 48M/86M |
||
190 | [INFO] ------------------------------------------------------------------------ |
||
191 | 9 | Denis 'GNUtoo' Carikli | }}} |
192 | but http://maven.apache.org/shared/index.html has the sources of theses missing artifacts,so do: |
||
193 | {{{ |
||
194 | cd ../ |
||
195 | svn co http://svn.apache.org/repos/asf/maven/shared/trunk/maven-verifier/ |
||
196 | cd maven-verifier |
||
197 | mvn install |
||
198 | 11 | Denis 'GNUtoo' Carikli | mvn install:install-file -DgroupId=org.apache.maven.shared -DartifactId=maven-verifier -Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=./target/maven-verifier-1.3-SNAPSHOT.jar |
199 | 10 | Denis 'GNUtoo' Carikli | cd ../ |
200 | 6 | Denis 'GNUtoo' Carikli | }}} |
201 | 13 | Denis 'GNUtoo' Carikli | http://mojo.codehaus.org/build-helper-maven-plugin/source-repository.html shows the artifacts's source code's repository,so do: |
202 | 12 | Denis 'GNUtoo' Carikli | {{{ |
203 | svn co http://svn.codehaus.org/mojo/tags/build-helper-maven-plugin-1.4 |
||
204 | 1 | Denis 'GNUtoo' Carikli | cd build-helper-maven-plugin-1.4 |
205 | 13 | Denis 'GNUtoo' Carikli | mvn install |
206 | mvn install:install-file -DgroupId=org.apache.maven.its -DartifactId=maven-it-helper -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=./target/build-helper-maven-plugin-1.4.jar |
||
207 | cd ../masa-read-only |
||
208 | 12 | Denis 'GNUtoo' Carikli | mvn install |
209 | }}} |
||
210 | 14 | Denis 'GNUtoo' Carikli | and it fails here: |
211 | {{{ |
||
212 | [INFO] ------------------------------------------------------------------------ |
||
213 | [INFO] Building JVending Masa: masa-integration-testing |
||
214 | [INFO] task-segment: [install] |
||
215 | [INFO] ------------------------------------------------------------------------ |
||
216 | [INFO] [resources:resources {execution: default-resources}] |
||
217 | [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! |
||
218 | [INFO] skip non existing resourceDirectory /home/android/apps/masa-read-only/masa-integration-testing/src/main/resources |
||
219 | [INFO] [compiler:compile {execution: default-compile}] |
||
220 | [INFO] No sources to compile |
||
221 | [INFO] [resources:testResources {execution: default-testResources}] |
||
222 | [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! |
||
223 | [INFO] Copying 18 resources |
||
224 | [INFO] [compiler:testCompile {execution: default-testCompile}] |
||
225 | [INFO] Compiling 4 source files to /home/android/apps/masa-read-only/masa-integration-testing/target/test-classes |
||
226 | [INFO] ------------------------------------------------------------------------ |
||
227 | [ERROR] BUILD FAILURE |
||
228 | [INFO] ------------------------------------------------------------------------ |
||
229 | [INFO] Compilation failure |
||
230 | |||
231 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa33StringsMergingTest.java:[5,26] cannot find symbol |
||
232 | symbol : class AbstractMavenIntegrationTestCase |
||
233 | location: package org.apache.maven.it |
||
234 | |||
235 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa33StringsMergingTest.java:[9,54] cannot find symbol |
||
236 | symbol: class AbstractMavenIntegrationTestCase |
||
237 | public class MavenITmasa33StringsMergingTest extends AbstractMavenIntegrationTestCase |
||
238 | |||
239 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa30LocalizedResourcesTest.java:[5,26] cannot find symbol |
||
240 | symbol : class AbstractMavenIntegrationTestCase |
||
241 | location: package org.apache.maven.it |
||
242 | |||
243 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa30LocalizedResourcesTest.java:[10,57] cannot find symbol |
||
244 | symbol: class AbstractMavenIntegrationTestCase |
||
245 | public class MavenITmasa30LocalizedResourcesTest extends AbstractMavenIntegrationTestCase |
||
246 | |||
247 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa29PoTest.java:[6,26] cannot find symbol |
||
248 | symbol : class AbstractMavenIntegrationTestCase |
||
249 | location: package org.apache.maven.it |
||
250 | |||
251 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa29PoTest.java:[11,12] cannot find symbol |
||
252 | symbol: class AbstractMavenIntegrationTestCase |
||
253 | extends AbstractMavenIntegrationTestCase |
||
254 | |||
255 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa33StringsMergingTest.java:[14,15] cannot find symbol |
||
256 | symbol : variable ALL_MAVEN_VERSIONS |
||
257 | location: class org.jvending.masa.it.MavenITmasa33StringsMergingTest |
||
258 | |||
259 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa33StringsMergingTest.java:[25,65] cannot find symbol |
||
260 | symbol : method getClass() |
||
261 | location: class org.jvending.masa.it.MavenITmasa33StringsMergingTest |
||
262 | |||
263 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa30LocalizedResourcesTest.java:[15,15] cannot find symbol |
||
264 | symbol : variable ALL_MAVEN_VERSIONS |
||
265 | location: class org.jvending.masa.it.MavenITmasa30LocalizedResourcesTest |
||
266 | |||
267 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa30LocalizedResourcesTest.java:[26,65] cannot find symbol |
||
268 | symbol : method getClass() |
||
269 | location: class org.jvending.masa.it.MavenITmasa30LocalizedResourcesTest |
||
270 | |||
271 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa29PoTest.java:[16,15] cannot find symbol |
||
272 | symbol : variable ALL_MAVEN_VERSIONS |
||
273 | location: class org.jvending.masa.it.MavenITmasa29PoTest |
||
274 | |||
275 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa29PoTest.java:[27,65] cannot find symbol |
||
276 | symbol : method getClass() |
||
277 | location: class org.jvending.masa.it.MavenITmasa29PoTest |
||
278 | |||
279 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa29PoTest.java:[46,65] cannot find symbol |
||
280 | symbol : method getClass() |
||
281 | location: class org.jvending.masa.it.MavenITmasa29PoTest |
||
282 | |||
283 | /home/android/apps/masa-read-only/masa-integration-testing/src/test/java/org/jvending/masa/it/MavenITmasa29PoTest.java:[65,65] cannot find symbol |
||
284 | symbol : method getClass() |
||
285 | location: class org.jvending.masa.it.MavenITmasa29PoTest |
||
286 | |||
287 | |||
288 | [INFO] ------------------------------------------------------------------------ |
||
289 | [INFO] For more information, run Maven with the -e switch |
||
290 | [INFO] ------------------------------------------------------------------------ |
||
291 | [INFO] Total time: 20 seconds |
||
292 | [INFO] Finished at: Mon Oct 26 22:53:40 CET 2009 |
||
293 | [INFO] Final Memory: 25M/44M |
||
294 | [INFO] ------------------------------------------------------------------------ |
||
295 | |||
296 | }}} |
||
297 | 15 | Denis 'GNUtoo' Carikli | http://svn.apache.org/repos/asf/ contains all the apache projects repositories,so checkout the core-integration-testing project: |
298 | {{{ |
||
299 | cd ../ |
||
300 | 16 | Denis 'GNUtoo' Carikli | svn co http://svn.apache.org/repos/asf/maven/core-integration-testing/trunk core-integration-testing |
301 | cd core-integration-testing |
||
302 | 17 | Denis 'GNUtoo' Carikli | mvn install |
303 | cd ../masa-read-only |
||
304 | mvn install |
||
305 | 15 | Denis 'GNUtoo' Carikli | }}} |
306 | 18 | Denis 'GNUtoo' Carikli | then retry to build slideme: |
307 | {{{ |
||
308 | cd ../slideme-read-only |
||
309 | mvn install |
||
310 | }}} |
||
311 | 19 | Denis 'GNUtoo' Carikli | and it fails like this: |
312 | {{{ |
||
313 | $ mvn install |
||
314 | [INFO] Scanning for projects... |
||
315 | [INFO] Reactor build order: |
||
316 | [INFO] slideme-android-parent |
||
317 | [INFO] android-sdk-installer |
||
318 | [INFO] slideme-android-manager |
||
319 | [INFO] ------------------------------------------------------------------------ |
||
320 | [INFO] Building slideme-android-parent |
||
321 | [INFO] task-segment: [install] |
||
322 | [INFO] ------------------------------------------------------------------------ |
||
323 | Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-source-plugin/2.0.4/maven-source-plugin-2.0.4.pom |
||
324 | |||
325 | Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-source-plugin/2.0.4/maven-source-plugin-2.0.4.jar |
||
326 | |||
327 | [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] |
||
328 | [INFO] [install:install {execution: default-install}] |
||
329 | [INFO] Installing /home/android/apps/slideme-read-only/pom.xml to /home/android/.m2/repository/org/slideme/android/slideme-android-parent/1.0-CE/slideme-android-parent-1.0-CE.pom |
||
330 | [INFO] ------------------------------------------------------------------------ |
||
331 | [INFO] Building android-sdk-installer |
||
332 | [INFO] task-segment: [install] |
||
333 | [INFO] ------------------------------------------------------------------------ |
||
334 | [INFO] [resources:resources {execution: default-resources}] |
||
335 | [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! |
||
336 | [INFO] skip non existing resourceDirectory /home/android/apps/slideme-read-only/android-sdk-installer/src/main/resources |
||
337 | [INFO] [compiler:compile {execution: default-compile}] |
||
338 | [INFO] Compiling 1 source file to /home/android/apps/slideme-read-only/android-sdk-installer/target/classes |
||
339 | [INFO] [resources:testResources {execution: default-testResources}] |
||
340 | [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! |
||
341 | [INFO] skip non existing resourceDirectory /home/android/apps/slideme-read-only/android-sdk-installer/src/test/resources |
||
342 | [INFO] [compiler:testCompile {execution: default-testCompile}] |
||
343 | [INFO] No sources to compile |
||
344 | [INFO] [surefire:test {execution: default-test}] |
||
345 | [INFO] No tests to run. |
||
346 | [INFO] [jar:jar {execution: default-jar}] |
||
347 | [INFO] Building jar: /home/android/apps/slideme-read-only/android-sdk-installer/target/android-sdk-installer-1.0-CE.jar |
||
348 | [INFO] [install:install {execution: default-install}] |
||
349 | [INFO] Installing /home/android/apps/slideme-read-only/android-sdk-installer/target/android-sdk-installer-1.0-CE.jar to /home/android/.m2/repository/org/slideme/android/sdk/android-sdk-installer/1.0-CE/android-sdk-installer-1.0-CE.jar |
||
350 | [INFO] ------------------------------------------------------------------------ |
||
351 | [INFO] Building slideme-android-manager |
||
352 | [INFO] task-segment: [install] |
||
353 | [INFO] ------------------------------------------------------------------------ |
||
354 | [INFO] ------------------------------------------------------------------------ |
||
355 | [ERROR] BUILD ERROR |
||
356 | [INFO] ------------------------------------------------------------------------ |
||
357 | [INFO] Cannot find lifecycle mapping for packaging: 'android:apk'. |
||
358 | Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingandroid:apk. |
||
359 | [INFO] ------------------------------------------------------------------------ |
||
360 | [INFO] For more information, run Maven with the -e switch |
||
361 | [INFO] ------------------------------------------------------------------------ |
||
362 | [INFO] Total time: 13 seconds |
||
363 | [INFO] Finished at: Tue Oct 27 14:10:57 CET 2009 |
||
364 | [INFO] Final Memory: 17M/34M |
||
365 | [INFO] ------------------------------------------------------------------------ |
||
366 | }}} |
||
367 | so do: |
||
368 | {{{ |
||
369 | 20 | Denis 'GNUtoo' Carikli | cd ../ |
370 | git clone git://github.com/jayway/maven-android-plugin.git |
||
371 | cd maven-android-plugin |
||
372 | mvn install |
||
373 | }}} |
||
374 | 21 | Denis 'GNUtoo' Carikli | it will fail this way: |
375 | {{{ |
||
376 | [INFO] Scanning for projects... |
||
377 | [INFO] ------------------------------------------------------------------------ |
||
378 | [INFO] Building Maven Android Plugin - maven-android-plugin |
||
379 | [INFO] task-segment: [install] |
||
380 | [INFO] ------------------------------------------------------------------------ |
||
381 | [INFO] [plugin:descriptor {execution: default-descriptor}] |
||
382 | [INFO] Using 2 extractors. |
||
383 | [INFO] Applying extractor for language: java |
||
384 | [INFO] Extractor for language: java found 11 mojo descriptors. |
||
385 | [INFO] Applying extractor for language: bsh |
||
386 | [INFO] Extractor for language: bsh found 0 mojo descriptors. |
||
387 | [INFO] [resources:resources {execution: default-resources}] |
||
388 | [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! |
||
389 | [INFO] Copying 1 resource |
||
390 | [INFO] [compiler:compile {execution: default-compile}] |
||
391 | [INFO] Nothing to compile - all classes are up to date |
||
392 | [INFO] [resources:testResources {execution: default-testResources}] |
||
393 | [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! |
||
394 | [INFO] Copying 5 resources |
||
395 | [INFO] [compiler:testCompile {execution: default-testCompile}] |
||
396 | [INFO] Nothing to compile - all classes are up to date |
||
397 | [INFO] [surefire:test {execution: default-test}] |
||
398 | [INFO] Surefire report directory: /home/android/apps/maven-android-plugin/target/surefire-reports |
||
399 | |||
400 | ------------------------------------------------------- |
||
401 | T E S T S |
||
402 | ------------------------------------------------------- |
||
403 | Running com.jayway.maven.plugins.android.asm.AndroidTestFinderTest |
||
404 | Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 sec |
||
405 | Running com.jayway.maven.plugins.android.AbstractAndroidMojoTest |
||
406 | Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.313 sec <<< FAILURE! |
||
407 | Running com.jayway.maven.plugins.android.asm.withtests.TestClassA |
||
408 | Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec |
||
409 | Running com.jayway.maven.plugins.android.asm.withtests.TestClassB |
||
410 | Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec |
||
411 | Running com.jayway.maven.plugins.android.AndroidSdkTest |
||
412 | Tests run: 14, Failures: 14, Errors: 0, Skipped: 0, Time elapsed: 0.149 sec <<< FAILURE! |
||
413 | |||
414 | Results : |
||
415 | |||
416 | Failed tests: |
||
417 | givenApidemosApkThenPackageIsFound(com.jayway.maven.plugins.android.AbstractAndroidMojoTest) |
||
418 | givenApidemosPlatformtestsApkThenPackageIsFound(com.jayway.maven.plugins.android.AbstractAndroidMojoTest) |
||
419 | givenLayout1dot1AndToolAdbThenPathIs1dot1Style(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
420 | givenLayout1dot1AndToolAndroidThenPathIs1dot1Style(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
421 | givenLayout1dot1AndToolAaptThenPathIs1dot1Style(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
422 | givenLayout1dot5AndToolAdbThenPathIsCommon(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
423 | givenLayout1dot5AndToolAndroidThenPathIsCommon(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
424 | givenLayout1dot5AndToolAaptAndPlatform1dot1ThenPathIsPlatform1dot1(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
425 | givenLayout1dot5AndToolAaptAndPlatform1dot5ThenPathIsPlatform1dot5(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
426 | givenLayout1dot5AndToolAaptAndPlatform1dot6ThenException(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
427 | givenInvalidSdkPathThenException(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
428 | givenSdk11PathThenLayoutIs11(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
429 | givenSdk15PathThenLayoutIs15(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
430 | givenSdk1dodt1ThenPlatformEqualsPath(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
431 | givenSdk1dodt5AndPlatform1dot5ThenPlatformis1dot5(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
432 | givenSdk1dodt5AndPlatformNullThenPlatformis1dot5(com.jayway.maven.plugins.android.AndroidSdkTest) |
||
433 | |||
434 | Tests run: 23, Failures: 16, Errors: 0, Skipped: 0 |
||
435 | |||
436 | [INFO] ------------------------------------------------------------------------ |
||
437 | [ERROR] BUILD FAILURE |
||
438 | [INFO] ------------------------------------------------------------------------ |
||
439 | [INFO] There are test failures. |
||
440 | |||
441 | Please refer to /home/android/apps/maven-android-plugin/target/surefire-reports for the individual test results. |
||
442 | [INFO] ------------------------------------------------------------------------ |
||
443 | [INFO] For more information, run Maven with the -e switch |
||
444 | [INFO] ------------------------------------------------------------------------ |
||
445 | [INFO] Total time: 9 seconds |
||
446 | [INFO] Finished at: Tue Oct 27 14:35:11 CET 2009 |
||
447 | [INFO] Final Memory: 20M/36M |
||
448 | [INFO] ------------------------------------------------------------------------ |
||
449 | }}} |
||
450 | 22 | Denis 'GNUtoo' Carikli | that is because we lack the sdk(it tells it in the logs that are in /home/android/apps/maven-android-plugin/target/surefire-reports) |
451 | 1 | Denis 'GNUtoo' Carikli | so let's build a free sdk: |
452 | 22 | Denis 'GNUtoo' Carikli | {{{ |
453 | cd ~/replicant |
||
454 | export ANDROID_JAVA_HOME=$JAVA_HOME |
||
455 | lunch htc_dream-eng |
||
456 | make sdk |
||
457 | 23 | Denis 'GNUtoo' Carikli | }}} |
458 | then unpack the sdk: |
||
459 | {{{ |
||
460 | cd |
||
461 | unzip /home/android/replicant/out/host/linux-x86/sdk/android-sdk_eng.android_linux-x86.zip |
||
462 | cd ~/android-sdk_eng.android_linux-x86 |
||
463 | export ANDROID_SDK_15=$(pwd) |
||
464 | 24 | Denis 'GNUtoo' Carikli | cd ~/apps #or where you put the apps folder |
465 | 25 | Denis 'GNUtoo' Carikli | cd maven-android-plugin |
466 | 26 | Denis 'GNUtoo' Carikli | mvn -fn install |
467 | cd ../ |
||
468 | 25 | Denis 'GNUtoo' Carikli | }}} |
469 | and it'll fail this way: |
||
470 | {{{ |
||
471 | 22 | Denis 'GNUtoo' Carikli | }}} |