Cxyushi / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

android-maven-plugin:4.0.0-rc.2 requires Maven version 3.0.5 #467

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Maven 3.2
2. Use android-maven-plugin version 4.0.0-rc.2
3. Compile

What is the expected output?

Compilation Successful

What do you see instead?

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-rc.2:gen
erate-sources (default-generate-sources) on project umc-android: The plugin 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-rc.2 
requires Maven version 3.0.5
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:170)
    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.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
    at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:174)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.plugin.PluginIncompatibleException: The plugin 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-rc.2 
requires Maven version 3.0.5
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.checkRequiredMavenVersion(DefaultMavenPluginManager.java:283)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:166)
    ... 27 more

What version of maven-android-plugin are you using?

4.0.0-rc.2

What are the complete output lines of "mvn -version" on your machine?

I don't admin on the build server to run this command. On my local machine, I 
have Maven 3.0.5 and it compiles successfully. But on the Server I have the 
option to select Maven 3.1 or Maven 3.2 and with both these version, the 
compilation fails. 

Please provide any additional information below.

JDK version 1.6

Original issue reported on code.google.com by AsifDo...@gmail.com on 8 Mar 2015 at 8:26

GoogleCodeExporter commented 9 years ago
This has been fixed.
Version 4.1.1 is the latest.

And please raise issues on https://github.com/simpligility/android-maven-plugin
This repo has not been used in years.

Original comment by william....@xandar.com.au on 8 Mar 2015 at 8:52