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