Building samples with m-android-p 3.0.0-alpha2+

115 views
Skip to first unread message

Mykola Nikishov

unread,
Sep 6, 2011, 6:56:29 AM9/6/11
to maven-androi...@googlegroups.com
Hi,

I'm unable to build samples' alpha branch [1] with anything higher than
m-android-p 3.0.0-alpha2, up to -alpha-6, with the same error:

A required class was missing while executing
com.jayway.maven.plugins.android.generation2:maven-android-plugin:3.0.0-alpha-3:apk:
org/sonatype/aether/resolution/DependencyRequest

I could create a new issue with full log but may be it's a known problem?

[1] git://github.com/jayway/maven-android-plugin-samples.git

--
Mykola

Richard Mortimer

unread,
Sep 6, 2011, 7:44:18 AM9/6/11
to maven-androi...@googlegroups.com
On 06/09/2011 11:56, Mykola Nikishov wrote:
> Hi,
>
> I'm unable to build samples' alpha branch [1] with anything higher than
> m-android-p 3.0.0-alpha2, up to -alpha-6, with the same error:
>
> A required class was missing while executing
> com.jayway.maven.plugins.android.generation2:maven-android-plugin:3.0.0-alpha-3:apk:
> org/sonatype/aether/resolution/DependencyRequest
>
> I could create a new issue with full log but may be it's a known problem?
>
Hi,

Are you using maven 2? Maven 3 is reuqired for plugin 3.x. See

http://code.google.com/p/maven-android-plugin/wiki/Changelog

Regards

Richard


> [1] git://github.com/jayway/maven-android-plugin-samples.git
>

Mykola Nikishov

unread,
Sep 6, 2011, 8:47:56 AM9/6/11
to maven-androi...@googlegroups.com
On 09/06/2011 02:44 PM, Richard Mortimer wrote:

>> I'm unable to build samples' alpha branch [1] with anything higher than
>> m-android-p 3.0.0-alpha2, up to -alpha-6, with the same error:
>>
>> A required class was missing while executing
>> com.jayway.maven.plugins.android.generation2:maven-android-plugin:3.0.0-alpha-3:apk:
>>
>> org/sonatype/aether/resolution/DependencyRequest
>>
>> I could create a new issue with full log but may be it's a known problem?
>>
> Hi,
>
> Are you using maven 2? Maven 3 is reuqired for plugin 3.x. See

I'm using stock Maven3 3.0.2, it's not a problem. When I change
m-android-p's version to -alpha-2, I'm able to build all 'java' modules
(excluding scala and native ones). But changing m-android-p's version
only to -alpha-3..-alpha-6, my build fails on the first module,
apidemos-15:apidemos-15-app.

Johan Lindquist

unread,
Sep 6, 2011, 2:35:05 PM9/6/11
to maven-androi...@googlegroups.com
3.0.0-alpha-3 did change the Maven APIs used - could it be that in Maven 3.0.2, the aether apis where not used yet?  Could you try with 3.0.3?

Cheers,

Johan



--
You received this message because you are subscribed to the Google Groups "Maven Android Developers" group.
To post to this group, send email to maven-android-developers@googlegroups.com.
To unsubscribe from this group, send email to maven-android-developers+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maven-android-developers?hl=en.


Hugo Josefson (Jayway)

unread,
Sep 8, 2011, 4:07:43 PM9/8/11
to maven-androi...@googlegroups.com
A colleague of mine had this exact problem, and it was indeed solved by upgrading Maven to 3.0.3.

From maven-android-plugin 3.0.0-alpha-8 (not released yet), I have set it to require Maven 3.0.3 or greater.

/Hugo
Reply all
Reply to author
Forward
0 new messages