Adding a classpath element within a Mojo

2014-01-19 Thread William Ferguson
I have a Mojo which needs to add an element to the compile time classpath for future Mojos. I'm struggling to find any doco that points in the right direction. Is it possible? If so, how should I go about it? William

Re: Adding a classpath element within a Mojo

2014-01-19 Thread Anders Hammar
Do you want to change the classpath of the project or of other mojos? Don't think either is possible. And if it was, I don't think it's wise. The dependencies of the project should be declared and not magically added. /Anders On Sun, Jan 19, 2014 at 1:18 PM, William Ferguson

Re: Adding a classpath element within a Mojo

2014-01-19 Thread William Ferguson
OK, let me clarify. Project has dependencies on artifacts of type AAR (Android archive - an archive that contains several sub-artifacts including a classes jar). My Mojo unpacks the AAR artifacts and makes the sub-artifacts available to other build components. One of those build components is

Re: Adding a classpath element within a Mojo

2014-01-19 Thread Ron Wheeler
I don't do any Android development but since no one had responded, I thought that I wight try to get you started (or unblocked). Perhaps some of these references will help. http://www.vandalsoftware.com/post/52468430435/publishing-an-android-library-aar-to-a-maven

Re: Adding a classpath element within a Mojo

2014-01-19 Thread William Ferguson
Hi Ron, appreciate the references, but I am not attempting to build an Android project, I am working on the android-maven-plugin which builds Android projects. The AAR consumption within android-maven-plugin is currently incomplete. Ie I need to know how to add a compile time dependency within