Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when building core i-jetty #106

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

commented Mar 14, 2015

What steps will reproduce the problem?
1.just follow the building instruction, and do "mvn clean install"
2.
3.

What is the expected output? What do you see instead?
produce .apk. 
Errors.

What version of the product are you using? On what operating system?
the version checkout from the svn on Jul 8, 2012
ubuntu 12.04

Please provide any additional information below.
1.I have both android-4 and android-15 under android_sdks/platforms folder. 
Will this cause error?
2. I don't understand this line in the building instruction: "android platform 
definition for 1.6 (api version 4)". So I didn't do anything regarding this 
instruction.

Here is the error:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] I-Jetty :: Parent ................................. SUCCESS [0.265s]
[INFO] I-Jetty :: Jetty Adaptations for Android .......... SUCCESS [1.867s]
[INFO] I-Jetty :: Android Application .................... FAILURE [12.493s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.925s
[INFO] Finished at: Sat Jul 07 17:03:12 CDT 2012
[INFO] Final Memory: 29M/257M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.9.0-beta-5:a
pk (default-apk) on project i-jetty: MojoExecutionException: ANDROID-040-001: 
Could not execute: Command = /bin/sh -c cd 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui && 
/home/silk/android-sdks/tools/apkbuilder 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/i-jetty-3.2-SNAPSHOT.apk -z 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/i-jetty-3.2-SNAPSHOT.ap_ -f 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/classes.dex -rf 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/classes -rj 
/home/silk/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-client/7.6.0.RC4/jetty-client-
7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-http/7.6.0.RC4/jetty-http-7.6.
0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-io/7.6.0.RC4/jetty-io-7.6.0.RC
4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-util/7.6.0.RC4/jetty-util-7.6.
0.RC4.jar -rj 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-server/target/i-jetty-server-3.2-SNAPSH
OT.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-webapp/7.6.0.RC4/jetty-webapp-
7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-xml/7.6.0.RC4/jetty-xml-7.6.0.
RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-servlet/7.6.0.RC4/jetty-servle
t-7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-security/7.6.0.RC4/jetty-secur
ity-7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-server/7.6.0.RC4/jetty-server-
7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-continuation/7.6.0.RC4/jetty-c
ontinuation-7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-deploy/7.6.0.RC4/jetty-deploy-
7.6.0.RC4.jar, Result = 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.9.0-beta-5:a
pk (default-apk) on project i-jetty: 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: 
    at com.jayway.maven.plugins.android.phase09package.ApkMojo.doAPKWithCommand(ApkMojo.java:460)
    at com.jayway.maven.plugins.android.phase09package.ApkMojo.createApkFile(ApkMojo.java:216)
    at com.jayway.maven.plugins.android.phase09package.ApkMojo.execute(ApkMojo.java:186)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: com.jayway.maven.plugins.android.ExecutionException: 
ANDROID-040-001: Could not execute: Command = /bin/sh -c cd 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui && 
/home/silk/android-sdks/tools/apkbuilder 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/i-jetty-3.2-SNAPSHOT.apk -z 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/i-jetty-3.2-SNAPSHOT.ap_ -f 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/classes.dex -rf 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-ui/target/classes -rj 
/home/silk/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-client/7.6.0.RC4/jetty-client-
7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-http/7.6.0.RC4/jetty-http-7.6.
0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-io/7.6.0.RC4/jetty-io-7.6.0.RC
4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-util/7.6.0.RC4/jetty-util-7.6.
0.RC4.jar -rj 
/home/silk/i-jetty-turnk/i-jetty/i-jetty-server/target/i-jetty-server-3.2-SNAPSH
OT.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-webapp/7.6.0.RC4/jetty-webapp-
7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-xml/7.6.0.RC4/jetty-xml-7.6.0.
RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-servlet/7.6.0.RC4/jetty-servle
t-7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-security/7.6.0.RC4/jetty-secur
ity-7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-server/7.6.0.RC4/jetty-server-
7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-continuation/7.6.0.RC4/jetty-c
ontinuation-7.6.0.RC4.jar -rj 
/home/silk/.m2/repository/org/eclipse/jetty/jetty-deploy/7.6.0.RC4/jetty-deploy-
7.6.0.RC4.jar, Result = 1
    at com.jayway.maven.plugins.android.CommandExecutor$Factory$1.executeCommand(CommandExecutor.java:186)
    at com.jayway.maven.plugins.android.phase09package.ApkMojo.doAPKWithCommand(ApkMojo.java:458)
    ... 23 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :i-jetty

Original issue reported on code.google.com by caesarxu...@gmail.com on 7 Jul 2012 at 10:10

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

I have found out how to solve this.

In the pom.xml in i-jetty-ui folder, find these codes:
<groupid>com.jayway.maven.plugins.android.generation2</groupid>
<artifactid>maven-android-plugin</artifactid>
<version>2.9.0-beta-5</version>

Then change "maven-android-plugin" into "android-maven-plugin", and change 
"2.9.0-beta-5" into "3.0.0"

Original comment by caesarxu...@gmail.com on 8 Jul 2012 at 1:07

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

i am also facing same problem but this could not be resolved by editing in 
pom.xml by chaing verision and androi plugin name .....so kinkdly if any one 
have idea how to resolve please share it

Original comment by zuby...@gmail.com on 1 Sep 2012 at 1:59

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

comment 1 solved the problem , thanks

Original comment by vic...@tunebasket.com on 5 Dec 2012 at 7:21

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

Hmm, yes, we need to update versions of maven android plugins.


Original comment by jan.bar...@gmail.com on 1 Feb 2013 at 11:19

  • Changed state: Accepted
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

When I tried this fix, it ended up causing another error:

[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.0.0:generate-sources (default-generate-sources) on project i-
jetty: Execution default-generate-sources of goal com.jayway.maven.plugins.andro
id.generation2:android-maven-plugin:3.0.0:generate-sources failed: A required cl
ass was missing while executing com.jayway.maven.plugins.android.generation2:and
roid-maven-plugin:3.0.0:generate-sources: 
Lorg/sonatype/aether/RepositorySystem; 

It looks like this is a known bug that has been identified here:  
https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound

Any suggestions on how best to work around this in the short-term??

Original comment by MarkSalz...@gmail.com on 19 Jun 2013 at 3:57

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

change 3.0.0 to 3.6.0

Original comment by ithch...@gmail.com on 27 Jun 2013 at 8:28

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

I changed the plugin name as suggested and updated the version to 3.6.0 and was 
able to successfully build. Both the name and the version change were required.

Original comment by Ichiro.F...@gmail.com on 3 Sep 2013 at 10:55

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

I fixed problem. change version from 3.6.0 to 3.8.0, it's solve my problem

Original comment by Bas...@gmail.com on 13 May 2014 at 6:32

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Mar 14, 2015

The last comment helped. Thank you!

Original comment by APPSOLUT...@gmail.com on 10 Sep 2014 at 11:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.