pitate7777777 / maven-android-plugin

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

Android Maven Plugin is not compatible with Maven 3.1 #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try using it with Maven 3.1 (or an alpha version of it) 

What is the expected output?

It should just work

What do you see instead?

Failure due to 

What version of maven-android-plugin are you using?
Fails with all versions <= 3.6.0

Original issue reported on code.google.com by mosa...@gmail.com on 7 Jun 2013 at 4:06

GoogleCodeExporter commented 9 years ago
Failure is due to org.sonatype.aether rather than org.eclipse.aether being used 
in Maven 3.1

Original comment by mosa...@gmail.com on 7 Jun 2013 at 4:10

GoogleCodeExporter commented 9 years ago
Any ETA on this fix?  Any easy workarounds?  (I'm just trying to compile the 
I-Jetty server, which claims to require Maven 3.1 or later).  Thanks.

Original comment by MarkSalz...@gmail.com on 21 Jun 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Maven 3.1.0 is now the current stable version (being distributed in Homebrew, 
etc.) and maven-android-plugin is holding back the upgrade process. Should this 
be higher than medium priority?

Original comment by psyp...@gmail.com on 18 Jul 2013 at 7:28

GoogleCodeExporter commented 9 years ago
This is in progress. Currently we are depending on a new release of the maven 
plugin testing harness. 

Original comment by mosa...@gmail.com on 24 Jul 2013 at 4:45

GoogleCodeExporter commented 9 years ago
When is planned release with fix for that? 
If you need testing of some version I'm interested because I'm stuck with mv 
3.1.0 from Homebrew.

Original comment by galusz...@gmail.com on 29 Jul 2013 at 4:38

GoogleCodeExporter commented 9 years ago
We have a branch that is passing the build of the plugin itself. We have to 
wait for the testing harness release and currently there are also classloader 
issues with Maven itself.. so most likely it will need a new Maven release to 
actually work. 3.1.1 is currently in the process of being released.. 

I will send a general update to the mailinglist, but will be offline for August 
so dont expect anything before September.. 

Original comment by mosa...@gmail.com on 29 Jul 2013 at 4:44

GoogleCodeExporter commented 9 years ago
Is there any update on this?

Original comment by Lume...@gmail.com on 4 Sep 2013 at 2:36

GoogleCodeExporter commented 9 years ago
At this stage we are probably going to fork the plugin testing component ... 
just going to work on all the other pull requests first since we have another 
issue and will have to wait for Maven 3.1.1 anyway.

Original comment by mosa...@gmail.com on 6 Sep 2013 at 7:53

GoogleCodeExporter commented 9 years ago
Hurry to solve the problem, otherwise unable to work

Original comment by xianfeng...@gmail.com on 10 Sep 2013 at 2:32

GoogleCodeExporter commented 9 years ago
@Manfred : I just tested with Maven 3.1.1 
(http://mail-archives.apache.org/mod_mbox/maven-dev/201309.mbox/%3C268EC617-8A49
-4A5E-972A-FCD5ABA36447%40tesla.io%3E) and I still have the same error : 
[ERROR] Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:generate
-sources (default-generate-sources) on project regalandroid: Execution 
default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:generate
-sources failed: A required class was missing while executing 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:generate
-sources: Lorg/sonatype/aether/RepositorySystem;

Original comment by anthony....@gmail.com on 10 Sep 2013 at 2:18

GoogleCodeExporter commented 9 years ago
Thanks Anthony. I am aware of that problem. The branch should work with 3.1.0 
if you have a build of the plugin testing project. I will work on this with 
Jason soon (once 3.1.1 is out). One fix in 3.1.1 is critical for the android 
maven plugin so 3.1.0 will never work for it.. 

Original comment by mosa...@gmail.com on 10 Sep 2013 at 4:20

GoogleCodeExporter commented 9 years ago
For those who are having issues with this:  uninstall maven 3.1.x and install 
3.0.x

If you're using homebrew, like I am, here's the following solution:

brew tap homebrew/versions
brew uninstall maven
brew install maven30

This uninstalls current maven, 3.1.0, and instead installs 3.0.x which is 
currently 3.0.5.  This solved the problem I was getting with org.sonatype.aether

Error I was getting:

Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.7.0:manifest
-update (update-manifest) on project meatlib: Execution update-manifest of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.7.0:manifest
-update failed: A required class was missing while executing 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.7.0:manifest
-update: Lorg/sonatype/aether/RepositorySystem;

...

org.sonatype.aether.RepositorySystem

Original comment by ch...@chrisbrack.com on 1 Oct 2013 at 6:58

GoogleCodeExporter commented 9 years ago
I wouldn't recommend you uninstall maven 3.1.x we use both app engine and 
android in our team and the newest app engine sdk requires 3.1.x minimum to 
deploy modules.

I just downloaded maven 3.0 from the http://maven.apache.org/download.cgi site 
and keep it in a separate directory then whenever I just need an android build 
I execute it from this directory.

You also do this vice verse with maven 3.1 in a separate directory.

Cheers

Original comment by i...@electionear.com on 1 Oct 2013 at 7:04

GoogleCodeExporter commented 9 years ago
Also the next release of the android maven plugin will most likely require 
Maven 3.1.1

Original comment by mosa...@gmail.com on 1 Oct 2013 at 7:11

GoogleCodeExporter commented 9 years ago
This is now fixed. Maven 3.1.1 is the new REQUIRED version and will go out with 
the 3.8.0 release. Currently this is only in master and relies on a not yet 
released plugin-testing project. That will be released tonight most likely.

The CI build fails since the Maven version on Travis is too old. They will 
update in the next week or two.

Original comment by mosa...@gmail.com on 9 Oct 2013 at 6:23

GoogleCodeExporter commented 9 years ago
Yeah good work!

Original comment by benoit.b...@gmail.com on 9 Oct 2013 at 6:24

GoogleCodeExporter commented 9 years ago
Thanks for the fix. Any updates on when 3.8.0 will be released?

Original comment by sch...@gmail.com on 16 Oct 2013 at 6:00

GoogleCodeExporter commented 9 years ago
At the moment my thinking is to get aar support working first and then push a 
release out. I could do a snapshot deployment for you to use if you like... 
just let me know

Original comment by mosa...@gmail.com on 16 Oct 2013 at 7:07

GoogleCodeExporter commented 9 years ago
I am interested by the snapshot version please :)

Original comment by atali.da...@gmail.com on 17 Oct 2013 at 10:23

GoogleCodeExporter commented 9 years ago
Done.

Original comment by mosa...@gmail.com on 17 Oct 2013 at 4:26

GoogleCodeExporter commented 9 years ago
Sorry, could you provide link or shot explanation how to switch to snapshot 
version?

In central I can see only 3.7.0

Thanks! 

Original comment by Goodcata...@gmail.com on 17 Oct 2013 at 5:05

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/maven-android-plugin/wiki/SnapshotRepo

Original comment by mosa...@gmail.com on 17 Oct 2013 at 5:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks.  any chance 3.7.1 can be cut in the mean time?

https://github.com/square/dagger/issues/333

Original comment by adr...@squareup.com on 8 Nov 2013 at 9:52

GoogleCodeExporter commented 9 years ago
I was contemplating that already. Let me do that. Probably going to be 3.8 
though

Original comment by mosa...@gmail.com on 8 Nov 2013 at 10:19

GoogleCodeExporter commented 9 years ago
Manfred, can you give any indication of the release date for 3.8 (weeks/months?)
App Engine forced the dependency on maven 3.1.1 several months ago, so this has 
issues for projects that depend on both GAE and Android.
Thanks for your work.

Original comment by rich.burdon on 18 Nov 2013 at 6:24

GoogleCodeExporter commented 9 years ago
It was released 9 days ago: 
http://search.maven.org/#artifactdetails%7Ccom.jayway.maven.plugins.android.gene
ration2%7Candroid-maven-plugin%7C3.8.0%7Cmaven-plugin

Original comment by alf.thom...@gmail.com on 18 Nov 2013 at 6:38

GoogleCodeExporter commented 9 years ago
I have released it and commented on your stackoverflow question as well ;-) 

Original comment by mosa...@gmail.com on 18 Nov 2013 at 8:22

GoogleCodeExporter commented 9 years ago
Great. Sorry, I got too used to checking here. Thanks.

Original comment by rich.burdon on 19 Nov 2013 at 12:55