I'm facing this problem too.

Android has created a new format for its libraries called Android Archive
(.aar)

This format described here:
http://tools.android.com/tech-docs/new-build-system/aar-format contains a
"/classes.jar"

How would I be able to add that classes.jar into my classpath before the
compile phase as theses classes will be needed by my own classes.

Using Android-Maven-Plugin we extract the .aar into target/unpack/...
So I was thinking to add the classes.jar as a system scoped dependency

Note:
my pom contains the following dependency:
<dependency>
        <groupId>com.example</groupId>
        <artifactId>my-android-lib</artifactId>
        <version>1.0.0</version>
        <type>aar</type>
</dependency>

I cannot add a jar dependency of the same artifactid & groupid because the
aar is not grouped with a jar but contains it. so you will always find .aar
only in Maven Central.
<dependency>
        <groupId>com.example</groupId>
        <artifactId>my-android-lib</artifactId>
        <version>1.0.0</version>
        <type>jar</type>
</dependency>


Cheers



--
View this message in context: 
http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp215077p5773206.html
Sent from the Maven Developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to