On 27-Jan-09, at 12:32 AM, Costin Caraivan wrote:



Richard van Nieuwenhoven-2 wrote:

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 to enable me to add
maven dependencies to those jars (that works also with maven 3 and all
other plugins keep working ;-).  But you could also try Tycho.

http://docs.codehaus.org/display/M2ECLIPSE/Tycho+project+overview

I am thinking of creating a sourceforge project for the repository
layout, if there people willing to help (like adding your needed feature
of embedded jars).

regards,
Richard van Nieuwenhoven

Tycho being alpha certainly does not inspire confidence.


Then you can try the maven-bundle-plugin and see what it does.

My main problem right now is that OSGi > Maven (in terms of complexity). I know that Maven developers know this and are trying to solve it, but I have a problem to solve too, and waiting for the indefinite future isn't really
an option.


Then you can play with the maven project instance in a plugin. And you can do that today in 2.0.9, just warning you that this most likely will not work in 3.x. You are completely free to do as you wish.

The solution will probably be the other way around: run something before the build to add 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

A language that doesn’t affect the way you think about programming is not worth knowing.

 -— Alan Perlis


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to