How to add a dependency programmatically for the compile phase?

2013-12-18 Thread Benoit Billington
Hi, I would like to know how to add a dependency (such as a jar) into the project's list of compile time dependencies programmatically within a Mojo. I require to do this programmatically because the user set a dependency of type "aar"(1) which itself contains a jar. This jar needs to be known by

Re: Programmatically adding dependencies to a MavenProject

2013-10-20 Thread Benoit Billington
extracting in generated-source didn't work but in classes did! So I was wrong ;) the approach seems weird but let's see how it goes -- View this message in context: http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp215077p5773435.html Sent from the Maven

Re: Programmatically adding dependencies to a MavenProject

2013-10-18 Thread Benoit Billington
@Manfred We cannot extract the jar into target/classes because the compile phase will not pick anything from target/classes but use that as output only. (I didn't check that but It makes sense :) ) @Jorg I cannot let the user set the dependency "jar" in the pom. 1° the extracted path is different

Re: Programmatically adding dependencies to a MavenProject

2013-10-17 Thread Benoit Billington
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

Re: Antrun to maven plugin - file size

2012-12-19 Thread Benoit Billington
Okay you are talking about writing a plugin now it all make sense... I first wanted to do it using existing plugins and then if nothing existed I would look into writing a plugin. So my question was is there an existing plugin to do this kind of stuff? I guess no. Thanks ! -- View this messa

Re: Antrun to maven plugin - file size

2012-12-19 Thread Benoit Billington
Yes I saw what you can do with that goal but I don't know how to call Java class in maven -- View this message in context: http://maven.40175.n5.nabble.com/Antrun-to-maven-plugin-file-size-tp5738756p5739136.html Sent from the Maven Developers mailing list archive at Nabble.com. ---