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