Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

error when building core i-jetty #106

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

error when building core i-jetty #106

GoogleCodeExporter opened this issue Mar 14, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 7 Jul 2012 at 10:10

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 8 Jul 2012 at 1:07

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 1 Sep 2012 at 1:59

@GoogleCodeExporter
Copy link
Author

comment 1 solved the problem , thanks

Original comment by [email protected] on 5 Dec 2012 at 7:21

@GoogleCodeExporter
Copy link
Author

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


Original comment by [email protected] on 1 Feb 2013 at 11:19

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 19 Jun 2013 at 3:57

@GoogleCodeExporter
Copy link
Author

change 3.0.0 to 3.6.0

Original comment by [email protected] on 27 Jun 2013 at 8:28

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 3 Sep 2013 at 10:55

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 13 May 2014 at 6:32

@GoogleCodeExporter
Copy link
Author

The last comment helped. Thank you!

Original comment by [email protected] on 10 Sep 2014 at 11:40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant