Re: Building a -classpath for a plugin, from the inside?

2011-05-13 Thread Owen Jacobson
Thanks, Ryan. This turned out to be exactly the solution I needed: https://bitbucket.org/ojacobson/apacheds-maven-plugin/changeset/fcb7d7b66a41 -o On 2011-04-29, at 9:00 AM, Ryan Connolly wrote: > Owen: I think my previous reply got it half right: > >/** > * @parameter expression="${pl

Re: Building a -classpath for a plugin, from the inside?

2011-04-29 Thread Jörg Schaible
Owen Jacobson wrote: > Hi folks, > > I'm working on upgrading a Maven plugin that runs Apache DS[0] to use the > latest version of their software. Unfortunately, the latest version of > their software does something slightly slack-jawed on startup: it inspects > the java.class.path system propert

Re: Building a -classpath for a plugin, from the inside?

2011-04-29 Thread Ryan Connolly
Owen: I think my previous reply got it half right: /** * @parameter expression="${plugin.artifacts}" * @required * @readonly */ private List pluginArtifacts; StringBuilder sb = new StringBuilder(); for (Artifact dep : pluginArtifacts) {

Re: Building a -classpath for a plugin, from the inside?

2011-04-28 Thread Ryan Connolly
Owen: As far as getting a nice pre-crafted classpath element string from the plugin's dependencies, I am not aware of an API call that will do that like we can for MavenProject classpaths (project.getRuntimeClasspathElements(), etc.). However, the plugin's dependencies are available in the follow

RE: Building a -classpath for a plugin, from the inside?

2011-04-28 Thread Martin Gainty
adding a configuration parameter to the plugin such as additionalClasspathElements from surefire plugin would allow additonal entries to the cp http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html does this help?? Martin __ Note de d