Re: Evaluate expressions in a plugin

2010-11-23 Thread Costin Caraivan
Thanks for the reply, just for reference, I was looking right now at 3 different solutions for the same problem: 1. The enforcer plugin: EnforcerRuleHelper -> http://svn.apache.org/viewvc/maven/enforcer/tags/enforcer-1.0/enforcer-api/src/main/java/org/apache/maven/enforcer/rule/api/EnforcerRuleHe

Evaluate expressions in a plugin

2010-11-23 Thread Costin Caraivan
Hello, Is there a simple way to evaluate expressions in a custom Maven 2 plugin? The plugin I'm writing now tries to parse some string which may contain Maven 2 expressions, and I'd like to use Maven 2's mechanisms for filtering/interpolating/replacing these properties. I've looked a bit through

Re: [RESULT] [VOTE] Promote maven-jarsigner-plugin out of sandbox

2009-07-17 Thread Costin Caraivan
Benjamin Bentmann wrote: > > Hi, > > The vote has passed with the following result: > > +1: Dennis Lundberg, Arnaud Héritier, John Casey > > Thanks for the feedback! I will move the sources over. > > Over the weekend I plan to look at the outstanding issues reported for > jar:sign and see w

Re: Copy transitive dependencies

2009-07-09 Thread Costin Caraivan
BRIAN FOX-5 wrote: > > Take a look at the maven-dependency-plugin copy-dependencies code, > this is pretty much exactly what you're trying to do. There are > filters that are in a common jar you can reuse to filter out > transitivity etc. > Thanks for the replies guys. I need to download the tr

Copy transitive dependencies

2009-07-07 Thread Costin Caraivan
Hello, I have a plugin which needs to download & copy somewhere the transitive dependencies of the project's dependencies (at least level 1, I'll see about the rest). So I have this: project -> dependencies -> transitive dependencies. I extracted artifacts from the direct dependencies, so this pa

Deprecated warning on help:describe

2009-04-03 Thread Costin Caraivan
Hello, For a plugin I wrote, help:describe says this, both for the goals and for the parameters: "Deprecated. No reason given" What must I do to get rid of this message, since it's confusing to users? Thank you. -- View this message in context: http://www.nabble.com/Deprecated-warning-on-help

How do I get the Maven classpaths in a test?

2009-03-20 Thread Costin Caraivan
Hello. Suppose I'm running a Junit test with Maven, and I need to get all the files in the classpath, for various reasons. Is there any way to access the Maven project and get it's classpath? (I presume I can't just use @parameter & co). Thank you, Costin. -- View this message in context: htt

Re: Map @parameter loading problem

2009-02-12 Thread Costin Caraivan
Benjamin Bentmann wrote: > > Costin Caraivan wrote: > >> The invocation is from the pom.xml, inside a profile. So execution bound >> to >> a build lifecycle. > > Then consider to drop an example project in JIRA so we can have closer > look and something

Re: Map @parameter loading problem

2009-02-06 Thread Costin Caraivan
Benjamin Bentmann wrote: > > Costin Caraivan wrote: > >> By the way, this works when I move the section in the >> root >> of the plugin. > > We have a (passing) IT [0] to test configuration which > includes a Map parameter so I wonder how do you invoke y

Re: Map @parameter loading problem

2009-02-05 Thread Costin Caraivan
Costin Caraivan wrote: > > Hello, > > I have a plugin with the following configuration: > > > com.axway.md > com.axway.md > ${project.version} > zip > > aoleu > aoleu > > This is inside an execution of my plugin. > > In

Map @parameter loading problem

2009-02-05 Thread Costin Caraivan
Hello, I have a plugin with the following configuration: com.axway.md com.axway.md ${project.version} zip aoleu aoleu This is inside an execution of my plugin. In my Mojo I have this: /** * @parameter * @required */ private Map featureId; However, the featureId comes

Re: Programmatically adding dependencies to a MavenProject

2009-01-27 Thread Costin Caraivan
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. >

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Costin Caraivan
Jason van Zyl-5 wrote: > > This is a bad idea and don't count on Maven 3.x supporting this > because it makes determining what the dependencies are black magic. > The dependency tree and visualization tools won't work. In Maven 3.x > we are likely to make the dependency set immutable post

Re: Programmatically adding dependencies to a MavenProject

2009-01-26 Thread Costin Caraivan
Maarten Storm-2 wrote: > > 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 > Hello, I'm also interested by t

How to get path to the local repository?

2009-01-12 Thread Costin Caraivan
I tried: Settings set = new Settings(); set.getLocalRepository(); gives me null (probably because I don't have an explicit path in the settings.xml file). I also tried: ArtifactRepository localRepo; localRepo.getBasedir(); but this doesn't work. How do I get the path to the local repository? I