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