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

Re: Programmatically adding dependencies to a MavenProject

2013-10-18 Thread Benoit Billington
for every aar dependency 2° android-maven-plugin should do it for the user as he only need to declare the aar in the pom 3° the aar cannot be provided as it needs to be packaged into the apk -- View this message in context: http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies

Re: Programmatically adding dependencies to a MavenProject

2013-10-18 Thread Jörg Schaible
Hi Benoit, Benoit Billington wrote: @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 :) ) Try to extract the jar and generated sources add that

Re: Programmatically adding dependencies to a MavenProject

2013-10-18 Thread Manfred Moser
@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

Re: Programmatically adding dependencies to a MavenProject

2013-10-17 Thread Benoit Billington
groupIdcom.example/groupId artifactIdmy-android-lib/artifactId version1.0.0/version typejar/type /dependency Cheers -- View this message in context: http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp215077p5773206.html Sent

Re: Programmatically adding dependencies to a MavenProject

2013-10-17 Thread Jörg Schaible
Benoit Billington wrote: 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

Re: Programmatically adding dependencies to a MavenProject

2013-10-17 Thread Manfred Moser
Benoit Billington wrote: 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

Re: Programmatically adding dependencies to a MavenProject

2013-10-17 Thread Jörg Schaible
Manfred Moser wrote: Benoit Billington wrote: 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

Re: Programmatically adding dependencies to a MavenProject

2013-10-12 Thread sizu
the new dependency first in the list. Creates a new file pom2.xml with the new dependency (this can be changed to overwrite the original file using: pom.xml pom.xml -- View this message in context: http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject

Re: Programmatically adding dependencies to a MavenProject

2009-01-27 Thread Richard van Nieuwenhoven
Hi, i also had this problem, and yes Jason is right don't do it! You will have all sorts of follow up problems (like some other plugins not working). It will work for the normal stuff, but be sure to start your plugin in the validate phase. Now i use a custom repository layout / repository

Re: Programmatically adding dependencies to a MavenProject

2009-01-27 Thread Costin Caraivan
. A more visible workaround, if you may. Regards, Costin. -- View this message in context: http://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21681478.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Programmatically adding dependencies to a MavenProject

2009-01-27 Thread Jason van Zyl
out what I'm doing wrong? -- View this message in context: http://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21680711.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Programmatically adding dependencies to a MavenProject

2009-01-27 Thread Jason van Zyl
the dependencies to the pom.xml. A more visible workaround, if you may. Regards, Costin. -- View this message in context: http://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21681478.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Costin Caraivan
://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21664740.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Jason van Zyl
://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21664740.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Maarten Storm
up to be able to write that code: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Thanks for any tips. Regards, Costin. -- View this message in context: http://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21664740.html Sent from

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Tom Huybrechts
On Mon, Jan 26, 2009 at 9:23 PM, Maarten Storm mtst...@gmail.com wrote: Yes it is a bad idea to add add dependencies programatically, I had a RTFM thing :-( . The Pom must be the project model in all cases. Oeps and sorry for that. I fixed the issue by using the scope import stated somewhere

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Jason van Zyl
The alpha-2 will be released when we get the last couple issues done. As for the final release date, no idea yet. On 26-Jan-09, at 12:53 PM, Tom Huybrechts wrote: On Mon, Jan 26, 2009 at 9:23 PM, Maarten Storm mtst...@gmail.com wrote: Yes it is a bad idea to add add dependencies

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Costin Caraivan
(like Eclipse itself does during plugin development). I think this is a legitimate use case, *so*, for my use case, could anyone please point out what I'm doing wrong? -- View this message in context: http://www.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-tp21173440p21680711

Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Maarten Storm
Hello all, I would like to add programmatically dependencies to the MavenProject. I have looked in the mail archives but I could not find info on this topic.Is there a possible solution for this? Kind regards, Maarten Storm - To

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Ralph Goers
Under certain circumstances this could be done but I would need to understand the use case to tell you how. On Dec 24, 2008, at 3:53 PM, Maarten Storm wrote: Hello all, I would like to add programmatically dependencies to the MavenProject. I have looked in the mail archives but I could not

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Milos Kleint
don't do that. Among other things it will mess up the IDE integration. The project model shall be declarative. Milos On Fri, Dec 26, 2008 at 6:08 PM, Ralph Goers ralph.go...@dslextreme.com wrote: Under certain circumstances this could be done but I would need to understand the use case to tell

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Jason van Zyl
From the Maven 1.x days where we did this and realized that if the model of your dependencies not explicit in your pom.xml file then it's not clear to anyone where dependencies are coming from and leads to problems. On 24-Dec-08, at 6:53 PM, Maarten Storm wrote: Hello all, I would like

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Maarten Storm
Hello, The reason why I would like to add dependencies programmaticaly is the following: In my open source project I have 3 subprojects that do not share the same parent pom. I'm working on a new packaging strategy called dpom. This Dependency Pom is just like a normal pom but it synchronized

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Brian E. Fox
Can't you achieve this using the import scope? This would allow you to declare the dependencyManagement of all your jars in one pom and effectively import that into the projects that need it, thus synchronizing the dependencies across them all. On 12/26/08 7:11 PM, Maarten Storm

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Ralph Goers
On Dec 26, 2008, at 4:11 PM, Maarten Storm wrote: Hello, The reason why I would like to add dependencies programmaticaly is the following: In my open source project I have 3 subprojects that do not share the same parent pom. I'm working on a new packaging strategy called dpom. This Dependency

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Maarten Storm
Yes I can add the dependencies using import (did not know that this was a scope...) and no, that is not possible since all the parent poms are poms that have packaging pom, maven does not except these. I try to fool Maven by adding a empty jar per pom and that worked, but thats not the good way

Re: Programmatically adding dependencies to a MavenProject

2008-12-26 Thread Maarten Storm
Yes, that is what I'm looking for I think. I will give it a go in the coming week. On Sat, Dec 27, 2008 at 1:36 AM, Maarten Storm mtst...@gmail.com wrote: Yes I can add the dependencies using import (did not know that this was a scope...) and no, that is not possible since all the parent poms