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