Re: Using containing project's classpath within mojo...

2007-04-04 Thread James Carman
Johan, I think I see what you mean. I'll give it a whirl when I get to work today. Thanks for your help! James On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi James James, The classpath element list is simply a list of strings

Re: Using containing project's classpath within mojo...

2007-04-04 Thread James Carman
it a whirl when I get to work today. Thanks for your help! James On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi James James, The classpath element list is simply a list of strings (to locations within the repository). Please see

Re: Using containing project's classpath within mojo...

2007-04-04 Thread Johan Lindquist
, The classpath element list is simply a list of strings (to locations within the repository). Please see attached Mojo for a simple example. One issue with this is that some classes (in your case, most likely the spring classes) will be loaded in the URLClassloader as well as in the Mojo class

Re: Using containing project's classpath within mojo...

2007-04-04 Thread James Carman
PROTECTED] wrote: Johan, I think I see what you mean. I'll give it a whirl when I get to work today. Thanks for your help! James On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James James, The classpath element list is simply a list of strings (to locations within

Manipulating the surefire booter classpath

2007-04-04 Thread David Jackman
To run my tests, I have to put in place an instrumentation jar using the -javaagent commandline argument. I added this using the argLine property of the surefire configuration. However, the instrumentation jar has its own dependencies that aren't present in the surefire booter classpath. Adding

Re: Manipulating the surefire booter classpath

2007-04-04 Thread Wayne Fay
added this using the argLine property of the surefire configuration. However, the instrumentation jar has its own dependencies that aren't present in the surefire booter classpath. Adding them to my list of project dependencies isn't enough--they need to be in the classpath when the JVM is started

Using containing project's classpath within mojo...

2007-04-03 Thread James Carman
. Anyway, I now want to use that mojo within another project to run a loader defined within that project. When I try to instantiate that class, it's not available. Is there something special I need to do to tell Maven to include the current project's classpath in my mojo's environment? James

Re: Using containing project's classpath within mojo...

2007-04-03 Thread franz see
special I need to do to tell Maven to include the current project's classpath in my mojo's environment? James -- View this message in context: http://www.nabble.com/Using-containing-project%27s-classpath-within-mojo...-tf3519722s177.html#a9821549 Sent from the Maven - Users mailing list

Re: Using containing project's classpath within mojo...

2007-04-03 Thread James Carman
*/ private String loaderBean; public void execute() throws MojoExecutionException { // Load all META-INF/beans.xml files on classpath! ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(classpath*:META-INF/beans.xml); getLog().info(Running loader

Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression=${project.runtimeClasspathElements} * @required * @readonly */ private List classpathElements; I think in this case, you would

Re: Using containing project's classpath within mojo...

2007-04-03 Thread James Carman
Johan, What kind of objects should I expect in that list? James p.s. Are you on every mailing list? :-) On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project

Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
? James p.s. Are you on every mailing list? :-) On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression=${project.runtimeClasspathElements

Re: Using containing project's classpath within mojo...

2007-04-03 Thread James CE Johnson
in that list? James p.s. Are you on every mailing list? :-) On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression

Accessing maven compile classpath in plugin

2007-03-29 Thread Rahul Khot
I am writing a plugin for generating JAXB 1.6 sources . The plugin is written in ant. How do I access the compile classpath in the plugin. My plugin code: project !--property name=repo.home value=C:/Documents and Settings/user/.m2/repository/-- taskdef name=xjc classname

How to get custom artifact's dependencies on dependent's classpath?

2007-03-22 Thread Tommy Knowlton
to update my jdbc-installer, and all of it's dependents notice the change magically. Except for one problem: my custom artifact type's dependencies don't get added to the webapp's compile classpath. I've looked at DefaultArtifactHandler to see if I could solve the problem by subclassing

RE: classpath order

2007-03-08 Thread Jörg Schaible
pom.xml file. Nothing is changed. Because some classes are available in different jars there are some classpath issue and build is failing for me. Also is there anyway we can control the order the dependencies added to the classpath. Different JDK ? - Jörg

RE: Using the POM classpath for integration testing

2007-03-08 Thread Philippe Kernevez
Hi, I just had the mechanism to the plugin. Had this parameter to use Maven POM instead of FitNesse classpath. classPathProvidermaven/classPathProvider The default value is fitnesse. The new SNAPSHOT is available in the repository. There is an example there: http://mojo.codehaus.org/fitnesse

maven dependency classpath

2007-03-08 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
Does anyone know how maven creates the classpath from the dependencies. Whats the order it creates ? How can we control the order ? Thanks!!

Re: maven dependency classpath

2007-03-08 Thread Rod Mclaughlin
That's a good question! If we can control the classpath order, we can avoid the 'cglib-full' issue (the issue is that class x.y.Z is on the classpath twice, our code requires method a(), and the first example of x.y.Z on the classpath does not have a method a() but the second does, so if we

RE: maven dependency classpath

2007-03-08 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
It seems in maven2.0.5, we can control the order in pom.xml -Original Message- From: Rod Mclaughlin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 1:10 PM To: Maven Users List Subject: Re: maven dependency classpath That's a good question! If we can control the classpath

Plugin classloader and classpath

2007-03-07 Thread chetan mehrotra
Hi, I have to write a plugin in which I require to load a Spring context as specified in configuration. And this plugin is executed directly from the command line instead of lifecycle phase. In Maven reference docs it is mentioned that each plugin has a seperate classloader and

classpath order

2007-03-07 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
there are some classpath issue and build is failing for me. Also is there anyway we can control the order the dependencies added to the classpath. Thanks!!

[m2] How to have target/classes in the plugin classpath?

2007-03-06 Thread Alessio Pace
Hi, I can't figure out how what I should do to make the target/classes content (populated in the compile phase) be in the classpath of the plugin, because the plugin needs to access some resources.. My MOJO definition is just: /* * @goal run * @requiresDependencyResolution runtime * @execute

RE: Using the POM classpath for integration testing

2007-03-05 Thread Philippe Kernevez
This thread will continue on [EMAIL PROTECTED] -Original Message- From: Eric Torreborre [mailto:[EMAIL PROTECTED] Sent: lundi 5 mars 2007 06:09 To: Maven Users List Subject: RE: Using the POM classpath for integration testing Hi Philippe, Here is the setup I have in mind. Not only

RE: Using the POM classpath for integration testing

2007-03-05 Thread Eric Torreborre
[Please refer to the fitnesse thread regarding the fitnesse usage questions] Coming back to Maven2,... Since I would like to keep my acceptance pages along with my source files, I think I am going to need a way to launch my mojo with the project (recursive) dependencies in the classpath. Anyone

RE: Using the POM classpath for integration testing

2007-03-04 Thread pkernevez
to be a 'one developer' team or manual synchronization of the FitNesse repository. In return, what do you think of this approach ? Philippe -Original Message- From: Eric Torreborre [mailto:[EMAIL PROTECTED] Sent: vendredi 2 mars 2007 02:27 To: Maven Users List Subject: RE: Using the POM classpath

RE: Using the POM classpath for integration testing

2007-03-04 Thread pkernevez
, so our Fitnesse must be available with the FitNesse IHM. So we must maintain the classpath in the Wiki page, in this case maintain the POM dependencies for functional tests is a replication for us :-). If your prefer to use the POM dependencies, it's easy for me to add a plugin configuration

RE: Using the POM classpath for integration testing

2007-03-04 Thread Eric Torreborre
: Using the POM classpath for integration testing Hi Eric, I our approach there is always a centralized FitNesse server running. This server is available for all project people, including non developers. Our two main pains in this case is * to test local development (for a member of the team

Dependency build classpath

2007-03-01 Thread Aidan O'Donnell
Hi, I would like to output the classpath to a file using the dependency build classpath plugin and goal. I am using the following in my POM to no avail: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId

RE: Dependency build classpath

2007-03-01 Thread Brian E. Fox
The build classpath mojo is new to alpha-2. It should be released soon, until then you can use a SNAPSHOT or build and install locally. -Original Message- From: Aidan O'Donnell [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 5:10 AM To: users@maven.apache.org Subject

RE: Using the POM classpath for integration testing

2007-03-01 Thread Philippe Kernevez
Hi Eric, Do you speak about the fitnesse-maven-plugin ? I suppose that's the case. The plugin doesn't use the POM dependencies because they are supposed to be specified in the Fitnesse page. The plugin provides a solution to change the server classpath (with string substitution), this allows

How to add jar to test classpath in a plugin ?

2007-03-01 Thread JC Walmetz
With sthe system scope it is possible to specify a jar in the dependencies. I try to write a plugin that adds all the jars contains in a directory to the test classpath. (I can not add jars in the pom dependencies because those jars are installed by another plugin). How can I add dependencies

RE: Using the POM classpath for integration testing

2007-03-01 Thread Eric Torreborre
the POM classpath for integration testing Hi Eric, Do you speak about the fitnesse-maven-plugin ? I suppose that's the case. The plugin doesn't use the POM dependencies because they are supposed to be specified in the Fitnesse page. The plugin provides a solution to change the server classpath

RE: Using the POM classpath for integration testing

2007-03-01 Thread Eric Torreborre
Kernevez [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 2:36 AM To: 'Maven Users List' Subject: RE: Using the POM classpath for integration testing Hi Eric, Do you speak about the fitnesse-maven-plugin ? I suppose that's the case. The plugin doesn't use the POM dependencies because

Using the POM classpath for integration testing

2007-02-28 Thread Eric Torreborre
Hi, I have written a simple maven plugin that runs Fitnesse pages during the integration-test phase. However, it looks like this plugin, when executed, does not find the classes that should be provided by the POM (along with dependencies). Is there is configuration that should be done, in

RE: [M2] Classpath issue

2007-02-26 Thread Siegmann Daniel, NY
No, there is definitely only one version in the classpath, and I'm not sure how that would cause a ClassNotFoundException. This is the root exception: Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.createXMLReader

m2: How to include jars in classpath of xdoclet plugin definition?

2007-02-23 Thread Joaquim Oliveira
Hi all, I cannot generate xdoclet from my EJB classes because my classes extend one class from an external jar, that needs to be in classpath when the ejbdoclet task is defined. How do I do this in the m2 xdoclet plugin configuration? Here is my actual plugin configuration

[M2] Classpath issue

2007-02-23 Thread Siegmann Daniel, NY
have verified. This is listed as a dependency, and the -X option confirms it should be on the classpath. I built the eclipse files and ran the test, no problem - I had to remove some nested directories listed under resources, but this shouldn't have any effect on class loading. Any ideas what could

Re: [M2] Classpath issue

2007-02-23 Thread Marcos Silva Pereira
There is some other version of xerces in your classpath? Kind Regards, On 2/23/07, Siegmann Daniel, NY [EMAIL PROTECTED] wrote: I am trying to convert a project from Maven1 to Maven2. Should be simple, but I am getting a ClassNotFoundException on the following line in my code when running

Required goal not found: dependency:build-classpath

2007-02-23 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
Any idea ? $ mvn dependency:build-classpath [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO

Re: Required goal not found: dependency:build-classpath

2007-02-23 Thread Brad Szabo
According to http://maven.apache.org/plugins/maven-dependency-plugin/usage.html the build-classpath goal is new, since 2.0-alpha-2. That version is not available on ibiblio yet, only 2.0-alpha-1 is. Looks like you will have to check out the source code and build it if you need that goal. If you

Re: assembly and jar plugins with SNAPSHOT dependencies and classpath manifest

2007-02-19 Thread Geoffrey De Smet
-SNAPSHOT.jar but fun-0.1.0-20070215.103444-1.jar So my classpath fails. Thanks for any and all help, PS: grats on the 2.0.5 release :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

unable to get dependency classpath passed to an ant script

2007-02-19 Thread EJ Ciramella
}/ arg value=-f/ arg value=-package/ arg value=com.upromise.pdt.castor/ classpath pathelement location=${castor.source.dir}/ /classpath classpath refid=maven.plugin.classpath/ /java copy todir=${pdt.target.dir} fileset dir

RE: unable to get dependency classpath passed to an ant script

2007-02-19 Thread Barrett Nuzum
Hey EJ. I don't see anything wrong with your ant, per se. However, if you have a multi-module build, maven.*.classpath does not resolve correctly when building children of the parent. That is to say -- ParentProject/ --- pom.xml --- Child Project

RE: Accessing the POM classpath from within an Ant based mojo

2007-02-18 Thread hermod.opstvedt
List Users Subject: Accessing the POM classpath from within an Ant based mojo I am trying to write a very simple Ant based script mojo. I need to define some taskdefs from within the build.xml based on the current classpath defined in the plugin pom. I have seen reference to using

Accessing the POM classpath from within an Ant based mojo

2007-02-17 Thread Scott Ryan
I am trying to write a very simple Ant based script mojo. I need to define some taskdefs from within the build.xml based on the current classpath defined in the plugin pom. I have seen reference to using the maven.plugin.classpath but when I reference that I get an error

Re: Accessing the POM classpath from within an Ant based mojo

2007-02-17 Thread Jason van Zyl
On 17 Feb 07, at 4:54 PM 17 Feb 07, Scott Ryan wrote: I am trying to write a very simple Ant based script mojo. I need to define some taskdefs from within the build.xml based on the current classpath defined in the plugin pom. I have seen reference to using the maven.plugin.classpath

Re: Accessing the POM classpath from within an Ant based mojo

2007-02-17 Thread Scott Ryan
, at 4:54 PM 17 Feb 07, Scott Ryan wrote: I am trying to write a very simple Ant based script mojo. I need to define some taskdefs from within the build.xml based on the current classpath defined in the plugin pom. I have seen reference to using the maven.plugin.classpath but when I

Re: Accessing the POM classpath from within an Ant based mojo

2007-02-17 Thread Matt Brozowski
On Feb 17, 2007, at 4:54 PM, Scott Ryan wrote: I am trying to write a very simple Ant based script mojo. I need to define some taskdefs from within the build.xml based on the current classpath defined in the plugin pom. I have seen reference to using the maven.plugin.classpath but when

assembly and jar plugins with SNAPSHOT dependencies and classpath manifest

2007-02-16 Thread Geoffrey De Smet
outputDirectory/lib/outputDirectory scoperuntime/scope /dependencySet The problem is, it doesn't add fun-0.1.0-SNAPSHOT.jar but fun-0.1.0-20070215.103444-1.jar So my classpath fails. Thanks for any and all help, PS: grats on the 2.0.5 release :) -- With kind regards, Geoffrey De

RE: additional classpath to maven2

2007-02-08 Thread Brian E. Fox
The maven and codehaus ones are the same plugin. The maven one is newer. -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 1:36 AM To: users@maven.apache.org Subject: Re: additional classpath to maven2 Hi, I ever used maven:maven

Re: Order of classpath supplied by dependencies ant task

2007-02-07 Thread franz see
management in our ant builds. I have a number of POM files for compiling common, server and client code. I also want to use maven to manage our server runtime classpath. I use the following code to get the server runtime classpath from a POM file and store it in a pathId for use later

additional classpath to maven2

2007-02-07 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
Hi, Is it possible to add additional classpath (not specified in the dependency) to maven2 on runtime. The idea is to unzip the jars to a specific directory and add those jars to compile / jar classpath. Thanks

Re: Order of classpath supplied by dependencies ant task

2007-02-07 Thread Joseph Leniston
maven's ? Cheers, Franz Joseph Leniston wrote: Hi, I am using Antlib for Maven 2.0 to do dependency management in our ant builds. I have a number of POM files for compiling common, server and client code. I also want to use maven to manage our server runtime classpath. I use

Re: Order of classpath supplied by dependencies ant task

2007-02-07 Thread franz see
of POM files for compiling common, server and client code. I also want to use maven to manage our server runtime classpath. I use the following code to get the server runtime classpath from a POM file and store it in a pathId for use later. artifact:dependencies pathId

Re: additional classpath to maven2

2007-02-07 Thread franz see
plugin or assembly plugin to unpack the files. Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) wrote: Hi, Is it possible to add additional classpath (not specified in the dependency) to maven2 on runtime. The idea is to unzip the jars to a specific directory and add

Re: additional classpath to maven2

2007-02-07 Thread jiangshachina
(jpadmana - Insight Solutions, Inc. at Cisco) wrote: Hi, Is it possible to add additional classpath (not specified in the dependency) to maven2 on runtime. The idea is to unzip the jars to a specific directory and add those jars to compile / jar classpath. Thanks -- View

RE: additional classpath to maven2

2007-02-07 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
Once jars are copied to a specific directory, how can I add that folder to the classpath ? -Jagan -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 10:36 PM To: users@maven.apache.org Subject: Re: additional classpath to maven2 Hi, I

RE: additional classpath to maven2

2007-02-07 Thread franz see
Good day, Try unpackaging the class files to target\class ( or target\test-classes if it's for testing ). But I am not sure if that would be enough so that those classes would be included in the classpath. But again, why not use make those jars your dependencies? And what are you trying to do

RE: additional classpath to maven2

2007-02-07 Thread jiangshachina
Hello, Factly, I don't use the plugins. how can I add that folder to the classpath ? I think Maven doesn't regard the jars as dependency at compile/runtime. I think you can set the jars to system scope dependencies. It's better to use dependency mechanism, even the jars aren't in any

Order of classpath supplied by dependencies ant task

2007-02-06 Thread Joseph Leniston
Hi, I am using Antlib for Maven 2.0 to do dependency management in our ant builds. I have a number of POM files for compiling common, server and client code. I also want to use maven to manage our server runtime classpath. I use the following code to get the server runtime classpath from a POM

dependency classpath order

2007-01-31 Thread jelle.volckaert
Hi, My project depends on a lot of dependencies that can be found in the online Maven repo, but also on a lot of own jars that were made to connect to web services etc. I installed them manually in the repo with mvn install:install-file. Now I'm having this problem, when my classpath

RE: dependency classpath order

2007-01-31 Thread Greg Jones
: Wednesday, 31 January 2007 10:23 PM To: users@maven.apache.org Subject: dependency classpath order Hi, My project depends on a lot of dependencies that can be found in the online Maven repo, but also on a lot of own jars that were made to connect to web services etc. I installed them manually

RE: eclipse:generate-classpath and .classpath

2007-01-29 Thread Sabiq, Reshat
This was w/ m1 and eclipse-plugin 1.11. However, I've just changed permissions to make .classpath writeable, and this doesn't happen anymore. Perhaps it a temporary fluke, since I can't reproduce it now... -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent

RE: eclipse:generate-classpath and .classpath

2007-01-29 Thread Sabiq, Reshat
] Sent: Monday, January 29, 2007 10:12 AM To: Maven Users List Subject: RE: eclipse:generate-classpath and .classpath This was w/ m1 and eclipse-plugin 1.11. However, I've just changed permissions to make .classpath writeable, and this doesn't happen anymore. Perhaps it a temporary fluke, since I

Dependency plugin and build-classpath goal issue

2007-01-24 Thread Nunn, Gerald
Hi, I'm trying to use the maven-dependency-plugin to build a classpath using the build-classpath goal as documented here http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html. However, when I try to execute this goal I get an error that says that no such goal

RE: Dependency plugin and build-classpath goal issue

2007-01-24 Thread Brian E. Fox
plugin isn't generating it correctly. -Original Message- From: Nunn, Gerald [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 10:00 AM To: Maven User List Subject: Dependency plugin and build-classpath goal issue Hi, I'm trying to use the maven-dependency-plugin to build

Surefire Classpath

2007-01-20 Thread Gregory D Carter
Is there away to add other jars to the surefire classpath for testing? I'm running a javaagent that requires some new jars on the surefire classpath. Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Surefire Classpath

2007-01-20 Thread Dan Tran
: Is there away to add other jars to the surefire classpath for testing? I'm running a javaagent that requires some new jars on the surefire classpath. Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[M2] Weird classpath problem (servlet-api)

2007-01-19 Thread kcheang
Hi All, I have a web application which uses Maven2. It was working fine until I started to add additional features which requires more 3rd-party libraries. After I added these libraries to my dependency list, Maven couldn't compile the application because servlet-api was not on the classpath

Problem finding dependency:build-classpath goal in Maven dependency plug-in

2007-01-18 Thread Chad Sapp
Hi, What repository do I need to point to in order to get the dependency plug-in that has the build-classpath goal implemented. Everything that I am pointed to has the dependency plug-in but that goal is not available. Here is the error message that I am getting: [INFO] Scanning

Re: How to make plugin see the full (project plugin) classpath?

2007-01-17 Thread Lasse Koskela
Allan, Franz, On 1/17/07, franz see [EMAIL PROTECTED] wrote: For more information about Maven Properties, please see [1]. [1] http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide allan ramirez wrote: Have you tried using ${plugin.artifacts} expression? Thanks for the tips,

Re: How to make plugin see the full (project plugin) classpath?

2007-01-17 Thread Lasse Koskela
Hmm. Answering my own question, it looks like ${plugin.artifactMap} might do the trick. Let me report back after I've had a chance to try it out. Lasse On 1/17/07, Lasse Koskela [EMAIL PROTECTED] wrote: Allan, Franz, On 1/17/07, franz see [EMAIL PROTECTED] wrote: For more information about

Re: How to make plugin see the full (project plugin) classpath?

2007-01-17 Thread Niels Gylling
Also make sure you have the following mojo property set @requiresDependencyResolution compile That will populate ${plugin.artifacts} /Niels - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How to make plugin see the full (project plugin) classpath?

2007-01-17 Thread Lasse Koskela
Hi, On 1/17/07, Niels Gylling [EMAIL PROTECTED] wrote: Also make sure you have the following mojo property set @requiresDependencyResolution compile That will populate ${plugin.artifacts} Thanks. I had that set to test. I actually did get my stuff working by using the ${plugin.artifactMap}

How do I programatically add an element to my plugin's classpath?

2007-01-17 Thread matthewadams
My mojo allows the user to define an extra property (private File licenseFileDirectory), which is a directory, that I'd like to add to the classpath when my mojo runs so that I can find a resource (a license file) in the given directory. How can I programatically add this to the classpath in my

Re: How do I programatically add an element to my plugin's classpath?

2007-01-17 Thread allan ramirez
licenseFileDirectory), which is a directory, that I'd like to add to the classpath when my mojo runs so that I can find a resource (a license file) in the given directory. How can I programatically add this to the classpath in my mojo? Is there some best practice for this? Thanks, Matthew -- View

Re: How do I programatically add an element to my plugin's classpath?

2007-01-17 Thread matthewadams
[EMAIL PROTECTED] wrote: My mojo allows the user to define an extra property (private File licenseFileDirectory), which is a directory, that I'd like to add to the classpath when my mojo runs so that I can find a resource (a license file) in the given directory. How can I programatically add

Re: How do I programatically add an element to my plugin's classpath?

2007-01-17 Thread allan ramirez
, matthewadams [EMAIL PROTECTED] wrote: My mojo allows the user to define an extra property (private File licenseFileDirectory), which is a directory, that I'd like to add to the classpath when my mojo runs so that I can find a resource (a license file) in the given directory. How can I programatically

How to make plugin see the full (project plugin) classpath?

2007-01-16 Thread Lasse Koskela
Hi, I'm developing a Maven 2 plugin and I'm having trouble making my plugin see the necessary libraries etc. in its classpath. What I need is: 1) the plugin itself and all of its dependencies 2) the compilation classpath and all dependencies for the project that's using the plugin It seems

Re: How to make plugin see the full (project plugin) classpath?

2007-01-16 Thread allan ramirez
Have you tried using ${plugin.artifacts} expression? -allan On 1/17/07, Lasse Koskela [EMAIL PROTECTED] wrote: Hi, I'm developing a Maven 2 plugin and I'm having trouble making my plugin see the necessary libraries etc. in its classpath. What I need is: 1) the plugin itself and all of its

Re: How to make plugin see the full (project plugin) classpath?

2007-01-16 Thread franz see
] wrote: Hi, I'm developing a Maven 2 plugin and I'm having trouble making my plugin see the necessary libraries etc. in its classpath. What I need is: 1) the plugin itself and all of its dependencies 2) the compilation classpath and all dependencies for the project that's using the plugin

Re: eclipse:generate-classpath and .classpath

2007-01-13 Thread Arnaud HERITIER
With maven 1? Which version of the plugin ? How is your .classpath ? Arnaud On 1/13/07, Sabiq, Reshat [EMAIL PROTECTED] wrote: I'd appreciate any feedback on this: i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in addition to jars put in by eclipse plug-in, which

maven-jar-plugin(?): customized classpath

2007-01-12 Thread Ján Ďurovec
the merge/MANIFEST.MF file contains only single line Class-Path: conf/ caused the whole classpath section to be replaced in the resulting manifest (i.e. there were no dependencies). Is there a way how to achieve the desired result using Maven so I do not need to manually add the conf/ to the jar's

Re: maven-jar-plugin(?): customized classpath

2007-01-12 Thread Wayne Fay
, where the merge/MANIFEST.MF file contains only single line Class-Path: conf/ caused the whole classpath section to be replaced in the resulting manifest (i.e. there were no dependencies). Is there a way how to achieve the desired result using Maven so I do not need to manually add the conf

eclipse:generate-classpath and .classpath

2007-01-12 Thread Sabiq, Reshat
I'd appreciate any feedback on this: i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in addition to jars put in by eclipse plug-in, which reside in MAVEN_REPO. So most of them are duplicated in .classpath by the IDE, after running eclipse:generate-classpath. Even making

eclipse:generate-classpath and .classpath

2007-01-12 Thread Sabiq, Reshat
I'd appreciate any feedback on this: i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in addition to jars put in by eclipse plug-in, which reside in MAVEN_REPO. So most of them are duplicated in .classpath by the IDE, after running eclipse:generate-classpath. Making

M2 classpath for ant taskdef

2007-01-09 Thread Ran Zilber
Hi all, I am trying to invoke ant 'taskdef' using the current maven complie classpath. What is the maven class path variable I can use? Here is the pom snippet: plugin artifactIdmaven-antrun-plugin/artifactId executions execution

Re: M2 classpath for ant taskdef

2007-01-09 Thread franz see
Good day to you, Ran, You can try and take a look at [1]. Cheers, Franz [1] http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Ran Zilber wrote: Hi all, I am trying to invoke ant 'taskdef' using the current maven complie classpath. What

RE: M2 classpath for ant taskdef

2007-01-09 Thread Ran Zilber
Dear Franz, Thanks a lot you did my day!!! :-) -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 3:00 PM To: users@maven.apache.org Subject: Re: M2 classpath for ant taskdef Good day to you, Ran, You can try and take a look at [1]. Cheers

How to get the classpath in a Maven 2 ANT plugin?

2007-01-09 Thread Julian Payne
I am trying to run a javadoc task with a custom doclet in an Ant plugin. In order for the javadoc task to find the doclet I need the classpath of the javadoc execution. Is there any way to create a parameter in the generate.mojos.xml file so that I can pass the classpath as a string (as I would

RE: [m2] maven-antrun-plugin classpath related behavior changed

2007-01-03 Thread bigred0241
error occurred while executing this line: /home/am74839/sree/esf_samples_build.xml:162: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK Regards, Alex -Original Message- From: Xavier Toth [mailto

Re: [solved] META-INF directory for webapps not in classpath

2006-12-29 Thread Stefan Burkard
Stefan Burkard wrote: hi maven-users I've got the following problem: if I'm creating a webapp and put the META-INF directory into src/main/webapp the files in it (for example persistence.xml) are NOT on the classpath and therefore my tests are failing, I can't package my project

Re: [solved] META-INF directory for webapps not in classpath

2006-12-29 Thread Stefan Burkard
the following problem: if I'm creating a webapp and put the META-INF directory into src/main/webapp the files in it (for example persistence.xml) are NOT on the classpath and therefore my tests are failing, I can't package my project. if I'm putting the META-INF directory under src/main/resources

META-INF directory for webapps not in classpath

2006-12-28 Thread Newsgroup
hi maven-users I've got the following problem: if I'm creating a webapp and put the META-INF directory into src/main/webapp the files in it (for example persistence.xml) are NOT on the classpath and therefore my tests are failing, I can't package my project. if I'm putting the META-INF

RE: META-INF directory for webapps not in classpath

2006-12-28 Thread Vinita Joshi
I have my files under src\main\application\META-INF. It is working fine for me. Vinita -Original Message- From: Newsgroup [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 2:45 PM To: users@maven.apache.org Subject: META-INF directory for webapps not in classpath hi maven

Re: META-INF directory for webapps not in classpath

2006-12-28 Thread Markus Wolf
Hi, I've got the following problem: if I'm creating a webapp and put the META-INF directory into src/main/webapp the files in it (for example persistence.xml) are NOT on the classpath and therefore my tests are failing, I can't package my project. having META-INF under src/main/resources

Re: Spring classpath issue

2006-12-11 Thread Marco Mistroni
hi, my 2 cents. what's hte scope of your dependency? is it compile? hth marco On 12/9/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: I have a Spring .jar which has a Spring properties file. I created a dependency on this .jar file but it did not get picked up during

Re: Jar classpath order

2006-12-09 Thread Mark Hobson
in the spring sand box jar. It appears that Maven 2 has an arbitrary classpath order but the spring sand box Jar always seems to come first in the classpath and the wrong Assert class is loaded. This problem rears it's heading during unit testing so we keep getting NoSuchMethodError's. Can anyone confirm

surefire transitive classpath bug ?

2006-12-08 Thread Nigel Magnay
:1.0:compile (removed - nearer found: 1.0.4) ... etc., etc However, the version of commons-logging that appears in my classpath for test is 1.0.4, NOT 1.1 as it appears that it ought to be. Additionally, this means that avalon-framework is not present in my surefire test classpath, causing tests

<    5   6   7   8   9   10   11   12   13   14   >