assembly - grabbing runtime classpath for bat script

2008-10-23 Thread carlos f
to the classpath when invoking java in the bat scripts. Is there any way to have maven add the appropriate dependencies entries for the bat script based on the current runtime classpath? Carlos -- View this message in context: http://www.nabble.com/assembly---grabbing-runtime-classpath-for-bat

Re: assembly - grabbing runtime classpath for bat script

2008-10-23 Thread Stephen Connolly
project so we have come up with a custom assembly that generates a zip/tar of: - our projects jar - a lib dir with all of our projects dependencies - bat scripts to execute the jar However I still need to add all of the jars in the lib to the classpath when invoking java in the bat scripts

Re: assembly - grabbing runtime classpath for bat script

2008-10-23 Thread Rusty Wright
What about simply adding the jars to the classpath without any path, then when you run the jar have your script cd into the directory where the jars are? The jar with main will be in the same directory as its dependencies. For example, my pom has !-- don't add classpath prefix; that way

Re: assembly - grabbing runtime classpath for bat script

2008-10-23 Thread Kalle Korhonen
PM, Rusty Wright [EMAIL PROTECTED]wrote: What about simply adding the jars to the classpath without any path, then when you run the jar have your script cd into the directory where the jars are? The jar with main will be in the same directory as its dependencies. For example, my pom has

Re: Accessing an artifacts classpath from a mojo?

2008-10-19 Thread Mark Struberg
() + ( pathelem.isDirectory() ? / : ) ); jpaRealm.addConstituent( url ); } catch ( MalformedURLException e ) { throw new MojoExecutionException( error in adding the classpath + pathelem, e ); } } // set

how to add jars from bootstrap to classpath in pom.xml

2008-10-17 Thread rohan chauhan
hi all I want to add all the jars from the bootstrap jars directory to the classpath. How can i do it in pom. can anyone specify me. Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php

Re: how to add jars from bootstrap to classpath in pom.xml

2008-10-17 Thread Wayne Fay
17, 2008 at 8:24 AM, rohan chauhan [EMAIL PROTECTED] wrote: hi all I want to add all the jars from the bootstrap jars directory to the classpath. How can i do it in pom. can anyone specify me. Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http

RE: how to add jars from bootstrap to classpath in pom.xml

2008-10-17 Thread Martin Gainty
to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 17 Oct 2008 20:54:53 +0530 From: [EMAIL PROTECTED] Subject: how to add jars from bootstrap to classpath in pom.xml To: users@maven.apache.org hi all I want

Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Brett Porter
How do you need to use it? It can be quite simple to create a classloader for this, but it depends on how it'll be used. Cheers, Brett On 13/10/2008, at 9:40 PM, Mark Derricutt wrote: Hi all, I have a maven plugin I'm working on and I want to include the classpath (main, test, others

Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Mark Derricutt
Hi all, I have a maven plugin I'm working on and I want to include the classpath (main, test, others...) of the artifact calling the plugin - am I going to have to spawn/fork a new java process and include them on the classpath somehow, or is their some mojo-magic that takes care of this? Mark

Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Mark Struberg
classpath from a mojo? An: Maven Users List users@maven.apache.org Datum: Montag, 13. Oktober 2008, 12:45 How do you need to use it? It can be quite simple to create a classloader for this, but it depends on how it'll be used. Cheers, Brett On 13/10/2008, at 9:40 PM, Mark Derricutt wrote

Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Jason van Zyl
and LieGrue, strub --- Brett Porter [EMAIL PROTECTED] schrieb am Mo, 13.10.2008: Von: Brett Porter [EMAIL PROTECTED] Betreff: Re: Accessing an artifacts classpath from a mojo? An: Maven Users List users@maven.apache.org Datum: Montag, 13. Oktober 2008, 12:45 How do you need to use it? It can

examples of using build-classpath to create a launcher script

2008-10-13 Thread Beyer,Nathan
Are there any examples of using the dependency:build-classpath [1] to create a launcher script or something similar? Or should I be looking to another MOJO? Say I have a windows bat file, I'd like to insert into it a line, something like the following. set CLASSPATH=%~dp0MyApp-1.0.jar

Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Mark Derricutt
Cheers - I'll take a look. Basically, in my instance, I have my library for migrating databases [1] which I'm wrapping with a maven plugin, the plugin walks the classpath finding classes with the @DataMigration annotation (opening JarFile instances and walking File[] lists to determine available

Re: examples of using build-classpath to create a launcher script

2008-10-13 Thread Brett Porter
You might consider the appassembler plugin over at mojo.codehaus.org. - Brett 2008/10/14 Beyer,Nathan [EMAIL PROTECTED]: Are there any examples of using the dependency:build-classpath [1] to create a launcher script or something similar? Or should I be looking to another MOJO? Say I have

Re: examples of using build-classpath to create a launcher script

2008-10-13 Thread Barrie Treloar
On Tue, Oct 14, 2008 at 3:18 AM, Beyer,Nathan [EMAIL PROTECTED] wrote: Are there any examples of using the dependency:build-classpath [1] to create a launcher script or something similar? Or should I be looking to another MOJO? Say I have a windows bat file, I'd like to insert

m2eclipse plugin, debug configuration classpath/sources issue?

2008-10-12 Thread Eugeny N Dzhurinsky
Hello! I recently found some really weird issue when doing the debug of the libraries with attached sources in Eclipse. I used projects, which are being built by Maven2. The problem is if any new dependency was added after the debug configuration is created, then the source for the dependency is

Re: [EclipsePlugin] downloading sources without writing .project and .classpath files

2008-10-09 Thread Andreas Riedel
and .classpath files An: Maven Users List users@maven.apache.org, [EMAIL PROTECTED] Datum: Mittwoch, 8. Oktober 2008, 21:15 Use the dependency plugin: mvn dependency:sources http://maven.apache.org/plugins/maven-dependency-plugin/ On Wed, Oct 8, 2008 at 5:00 AM, Andreas Riedel [EMAIL

Add directory to the classpath

2008-10-08 Thread Thomas Jonsson
Hi! Is it possible to add a directory to the classpath with maven? To make the directory as a jar artifact is not an option. The background is that I'm managing a seam project using maven, and in the test phase, a bootstrap directory must be on the classpath , otherwise the jboss embedded

Re: Add directory to the classpath

2008-10-08 Thread Jeff MAURY
In the Maven way of life, the classpath is managed through the dependencies mecanism. So I would say no. Regarding you case, I think this is a problem regarding the way you run JBoss with Maven. So you should look at the cargo maven plugin or, but I don't know if such a plugin exists, the JBoss

[EclipsePlugin] downloading sources without writing .project and .classpath files

2008-10-08 Thread Andreas Riedel
Hello List. I've a question by using the Eclipse Plugin. We will dispose the Q4E Eclipse Plugin. So call the Plugin with: mvn eclipse:eclipse -DdownloadSources=true works fine. But the writen .project and .classpath files are shared by SVN. So the other developer aren't beholden to run write

Re: [EclipsePlugin] downloading sources without writing .project and .classpath files

2008-10-08 Thread Thor
the Plugin with: mvn eclipse:eclipse -DdownloadSources=true works fine. But the writen .project and .classpath files are shared by SVN. So the other developer aren't beholden to run write the .project and .classpath files new. So, is it possible to download the sources by the plugin but don't

Re: [EclipsePlugin] downloading sources without writing .project and .classpath files

2008-10-08 Thread Nick Stolwijk
And normally I exclude the .classpath and .project files from SVN. Each developers machine is different, so those files are also a little machine dependent. (plugins, filepaths, anything) Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed

Re: [EclipsePlugin] downloading sources without writing .project and .classpath files

2008-10-08 Thread Michael McCallum
if you use m2eclipse then the .project files and .classpath files should be pretty much the same... i always put them in and thats been true of the last 3 large commercial projects i've worked on. In all cases the environments were mixed windows and linux... never had a problem On Thu, 09 Oct

Re: How to manipulate the classpath in which a maven plugin operates

2008-10-02 Thread Christian Schuhegger
nicolas de loof-3 wrote: Add dependencies element to your plugin configuration to extend/override the plugin classpath. Please note this works fine only on maven 2.0.9 Sorry that I have to come back to this topic. I just added dependency

Multi-module build and plugin classpath issue

2008-10-02 Thread Werner Guttmann
Hi, I am committer for the Castor (http://www.castor.org) project, and I am experiencing 'behaviour' I somehow find hard to understand. We at castor have a multi-module setup, where some of the modules have the maven plugin for Castor configured to generate java code from XML schema. So far, so

Re: How to manipulate the classpath in which a maven plugin operates

2008-10-02 Thread Werner Guttmann
classpath. Please note this works fine only on maven 2.0.9 Sorry that I have to come back to this topic. I just added dependency groupIdorg.codehaus.castor/groupId

Re: Multi-module build and plugin classpath issue

2008-10-02 Thread Stephen Connolly
As far as I understand, currently in Maven there is not isolation between plugins in different projects. If you have a multi-module build, the first use of a plugin in that multi-module build will determine both the version and the dependencies that are loaded into it's classloader for all

Re: Multi-module build and plugin classpath issue

2008-10-02 Thread Werner Guttmann
Thanks, Stephen, for confirming what we have already been assuming, based upon our builds. And no, I would have very much liked to see a different answer. Let me just ask a few follow-ups: a) Is this by design, or ... b) Is this a current limitation of the reactor ? c) Could this be overcome (in

Re: Multi-module build and plugin classpath issue

2008-10-02 Thread Stephen Connolly
my understanding is b and it's being worked on 2008/10/2 Werner Guttmann [EMAIL PROTECTED]: Thanks, Stephen, for confirming what we have already been assuming, based upon our builds. And no, I would have very much liked to see a different answer. Let me just ask a few follow-ups: a) Is

RE: copy libraries to classpath

2008-09-30 Thread Brian E. Fox
it inside an executions block. (this is a maven issue, there is talk about it in the plugin faq) -Original Message- From: Norbert Lazzeri [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 9:29 AM To: Maven Users List Subject: Re: copy libraries to classpath yeah i red that too

Re: copy libraries to classpath

2008-09-30 Thread Norbert Lazzeri
the command line, don't put it inside an executions block. (this is a maven issue, there is talk about it in the plugin faq) -Original Message- From: Norbert Lazzeri [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 9:29 AM To: Maven Users List Subject: Re: copy libraries to classpath

copy libraries to classpath

2008-09-29 Thread Norbert Lazzeri
Hi, is it possible to let maven copy all dependencies to my classpath? my jar-configuration looks like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive

Re: copy libraries to classpath

2008-09-29 Thread Norbert Lazzeri
like suggested on the plugin-homepage all dependencies are copied to targed/dependencies. why is the outputDirectory ignored? cheers, Norbert Norbert Lazzeri schrieb: Hi, is it possible to let maven copy all dependencies to my classpath? my jar-configuration looks like: plugin

Re: copy libraries to classpath

2008-09-29 Thread Nick Stolwijk
/dependencies. why is the outputDirectory ignored? cheers, Norbert Norbert Lazzeri schrieb: Hi, is it possible to let maven copy all dependencies to my classpath? my jar-configuration looks like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven

Re: copy libraries to classpath

2008-09-29 Thread Norbert Lazzeri
/executions /plugin like suggested on the plugin-homepage all dependencies are copied to targed/dependencies. why is the outputDirectory ignored? cheers, Norbert Norbert Lazzeri schrieb: Hi, is it possible to let maven copy all dependencies to my classpath? my jar

Re: maven-eclipse-plugin JRE classpath generation problem

2008-09-20 Thread Stefan Hübner
/configuration /plugin With this configuration I get .classpath file like this: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources excluding=**/*.java/ classpathentry kind=output path=target/classes/ classpathentry kind=con path

maven-eclipse-plugin JRE classpath generation problem

2008-09-19 Thread Tomek Maciejewski
Toolkit 2.5.2 for CLDC/DefaultColorPhone/classpathContainer /classpathContainers /configuration /plugin With this configuration I get .classpath file like this: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main

Including Local Jar Files in Build Classpath

2008-09-19 Thread Michael McGrady
I want to include some local jar files (located in lib/) in my Maven build classpath. How do I do that? MG Michael McGrady Senior Engineer Topia Technology, Inc. [EMAIL PROTECTED] 1 (253) 720-3365 - To unsubscribe, e

Re: Including Local Jar Files in Build Classpath

2008-09-19 Thread Stevo Slavić
-plugin/usage.htmllink on Maven install plugin usage. Regards, Stevo. On Fri, Sep 19, 2008 at 10:55 PM, Michael McGrady [EMAIL PROTECTED] wrote: I want to include some local jar files (located in lib/) in my Maven build classpath. How do I do that? MG Michael McGrady Senior Engineer Topia

RE: Including Local Jar Files in Build Classpath

2008-09-19 Thread Martin Gainty
content contained within this transmission. From: [EMAIL PROTECTED] To: users@maven.apache.org Subject: Including Local Jar Files in Build Classpath Date: Fri, 19 Sep 2008 13:55:35 -0700 I want to include some local jar files (located in lib/) in my Maven build classpath. How do I do

custom javadoc stylesheet defined in classpath

2008-09-09 Thread Julien Eluard
Hi, I'm trying to configure maven-javadoc-plugin to load javadoc stylesheet from classpath without any success. Rational behind this is to be able to share in a parent project this stylesheet definition. I tried to rely on maven stylesheet type hoping it would load my own stylesheet.css stored

Second Try on JUnit Classpath Etc

2008-08-26 Thread Michael McGrady
Sorry to repost but I did not get a nibble on this. Thanks for any assistance. Mike On Aug 24, 2008, at 10:47 AM, Michael McGrady wrote: Below is my POM and the error log. How do I get maven to seem my junit jar? Mike Here is the POM project

AW: Second Try on JUnit Classpath Etc

2008-08-26 Thread Mark Struberg
, strub --- Michael McGrady [EMAIL PROTECTED] schrieb am Di, 26.8.2008: Von: Michael McGrady [EMAIL PROTECTED] Betreff: Second Try on JUnit Classpath Etc An: Maven Users List users@maven.apache.org Datum: Dienstag, 26. August 2008, 15:47 Sorry to repost but I did not get a nibble on this. Thanks

JUnit Classpath problem

2008-08-24 Thread Michael McGrady
Below is my POM and the error log. How do I get maven to seem my junit jar? Mike Here is the POM project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0

Re: JUnit Classpath problem

2008-08-24 Thread Geoffrey Wiseman
junit is scoped to test, and the file that references junit is in src/main, which wouldn't have access to test-scope deps. On Sun, Aug 24, 2008 at 1:47 PM, Michael McGrady [EMAIL PROTECTED] wrote: Below is my POM and the error log. How do I get maven to seem my junit jar? Mike --

[eclipse:eclipse plugin] Additional classpath entries

2008-08-12 Thread Ian Carr
project name is not a valid id, and the classpath it generates is not what I want or in my case valid. The file also contains blank lines which result in errors in the eclipse environment.) In fact I would prefer to be able to disable the manifest generation and use my manually produced one

Classpath problems with Javadoc plugin (mvn site:site)

2008-08-11 Thread leviathani
into the classpath when invoking the javadoc plugin? I want to avoid having to write a plugin for this if it is not necessary. Nevertheless, this would be my workaround if I cannot find a solution to this problem. TIA kind regards, Gernot [1]: http://pdfdoclet.sourceforge.net/ -- View

Re: Classpath problems with Javadoc plugin (mvn site:site)

2008-08-11 Thread Nick Stolwijk
As you can see in the Maven Model [1] the plugin element has the option to include a dependencies tag. This will put dependencies on the classpath of the plugin. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl [1] http://maven.apache.org/ref

Re: Classpath problems with Javadoc plugin (mvn site:site)

2008-08-11 Thread leviathani
to include a dependencies tag. This will put dependencies on the classpath of the plugin. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html On Mon, Aug 11, 2008 at 2:54 PM

Re: Classpath problems with Javadoc plugin (mvn site:site)

2008-08-11 Thread Nick Stolwijk
to include a dependencies tag. This will put dependencies on the classpath of the plugin. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html On Mon, Aug 11, 2008

Re: Classpath problems with Javadoc plugin (mvn site:site)

2008-08-11 Thread leviathani
Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -- View this message in context: http://www.nabble.com/Classpath-problems-with-Javadoc-plugin-%28mvn-site%3Asite%29-tp18925313p18926390.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Classpath problems with Javadoc plugin (mvn site:site)

2008-08-11 Thread Nick Stolwijk
the pluginManagement section. There you can configure the plugins you use in the reporting section. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -- View this message in context: http://www.nabble.com/Classpath-problems

Re: Adding project dependencies and generated classes to classpath of my plugin

2008-08-01 Thread jaxzin
runtime classpath elements * to the * * @author mailto:[EMAIL PROTECTED] Brian Jackson * @since Aug 1, 2008 3:04:17 PM * * @plexus.component role=org.codehaus.plexus.component.configurator.ComponentConfigurator * role-hint=include-project-dependencies

How to manipulate the classpath in which a maven plugin operates

2008-07-31 Thread Christian Schuhegger
Hello, I just ran into a problem where I used the castor maven plugin as described here: http://www.castor.org/srcgen-maven-plugin.html I assumed that a plugin would use the same classpath as the project itself where I included castor 1.2. But I seems as if a maven plugin operates in its

Re: How to manipulate the classpath in which a maven plugin operates

2008-07-31 Thread nicolas de loof
Add dependencies element to your plugin configuration to extend/override the plugin classpath. Please note this works fine only on maven 2.0.9 2008/7/31 Christian Schuhegger [EMAIL PROTECTED] Hello, I just ran into a problem where I used the castor maven plugin as described here: http

Re: Adding project dependencies and generated classes to classpath of my plugin

2008-07-24 Thread jaxzin
: I'm writing a plugin to precompile templates for a language similar to JSP. The plugin needs the dependencies and compiled classes of the project its running in. Does anyone have an example of how to add the containing project's dependencies and target/classes directory to the classpath

Adding project dependencies and generated classes to classpath of my plugin

2008-07-23 Thread jaxzin
I'm writing a plugin to precompile templates for a language similar to JSP. The plugin needs the dependencies and compiled classes of the project its running in. Does anyone have an example of how to add the containing project's dependencies and target/classes directory to the classpath

own classes and test-classes at the end of test classpath running surefire-2.4

2008-07-17 Thread torsten . reinhard
Hi, if I´m running JUnit Tests with Surefire-2.4 I got the following classpath: [DEBUG] Adding managed dependencies for unknown:surefire-junit4 [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4 [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4 [DEBUG

Antwort: own classes and test-classes at the end of test classpath running surefire-2.4

2008-07-17 Thread torsten . reinhard
SurefirePlugin#constructSurefireBooter changes the classpath by doing: ... getLog().debug( Test Classpath : ); // Check if we need to add configured classes/test classes directories here. // If they are configured, we should remove the default to avoid conflicts

RE: own classes and test-classes at the end of test classpath running surefire-2.4

2008-07-17 Thread Jörg Schaible
[EMAIL PROTECTED] wrote: Hi, if I´m running JUnit Tests with Surefire-2.4 I got the following Use latest surefire plugin. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Antwort: RE: own classes and test-classes at the end of test classpath running surefire-2.4

2008-07-17 Thread torsten . reinhard
of test classpath running surefire-2.4 [EMAIL PROTECTED] wrote: Hi, if I´m running JUnit Tests with Surefire-2.4 I got the following Use latest surefire plugin. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: classpath in jar manifest

2008-07-09 Thread afsilva
] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/classpath-in-jar-manifest-tp4295266p18368538.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: classpath in jar manifest

2008-07-08 Thread afsilva
-Path entries). But if we set addClasspath to false and put all the known classpath there, we can generate one Class-Path entry - not a pretty solution through. Anybody over there has other workaround for this issue(I believe it is a bug)? This appears to be fixed in the trunk of maven-jar

Re: classpath in jar manifest

2008-07-08 Thread Dennis Lundberg
PROTECTED] wrote: We saw the same issue here (two Class-Path entries). But if we set addClasspath to false and put all the known classpath there, we can generate one Class-Path entry - not a pretty solution through. Anybody over there has other workaround for this issue(I believe it is a bug

Re: classpath in jar manifest

2008-07-08 Thread Wayne Fay
I suspect your problem is due to improper capitalization: manifestEntries Class-pathresources//Class-path /manifestEntries I believe this should be Class-Path. Wayne - To

Re: classpath in jar manifest

2008-07-08 Thread Barrie Treloar
On Wed, Jul 9, 2008 at 7:44 AM, Wayne Fay [EMAIL PROTECTED] wrote: I suspect your problem is due to improper capitalization: manifestEntries Class-pathresources//Class-path /manifestEntries I believe this should be Class-Path. This is what I

Re: classpath in jar manifest

2008-07-07 Thread afsilva
/11/06, George Zhao [EMAIL PROTECTED] wrote: We saw the same issue here (two Class-Path entries). But if we set addClasspath to false and put all the known classpath there, we can generate one Class-Path entry - not a pretty solution through. Anybody over there has other workaround

generate bat/cmd with classpath?

2008-07-07 Thread Ken Liu
Hi all - Is there any easy way to have maven generate a cmd or bat file with the java command line populated with the classpath from the maven dependencies? Ken

Re: classpath in jar manifest

2008-07-07 Thread Dennis Lundberg
, Barrie Treloar [EMAIL PROTECTED] wrote: On 5/11/06, George Zhao [EMAIL PROTECTED] wrote: We saw the same issue here (two Class-Path entries). But if we set addClasspath to false and put all the known classpath there, we can generate one Class-Path entry - not a pretty solution through. Anybody

Re: generate bat/cmd with classpath?

2008-07-07 Thread Kathryn Huxtable
On Jul 7, 2008, at 5:34 PM, Ken Liu wrote: Is there any easy way to have maven generate a cmd or bat file with the java command line populated with the classpath from the maven dependencies? You could check out the codehaus mojo appassembler at http://mojo.codehaus.org/appassembler

Re: generate bat/cmd with classpath?

2008-07-07 Thread Brian Fox
There is also the exec-maven-plugin --Brian On Jul 7, 2008, at 7:13 PM, Kathryn Huxtable [EMAIL PROTECTED] wrote: On Jul 7, 2008, at 5:34 PM, Ken Liu wrote: Is there any easy way to have maven generate a cmd or bat file with the java command line populated with the classpath from

Add classPath entry to jar

2008-07-03 Thread Andre Silva
Hi all, I'm trying to add a classPath entry to the manifest of a jar built with maven. the entry I'm trying to add is a folder that will be on the same directory of the jar in the final installation. I've search the documentation but didn't find anything useful. Can someone give me a hint

RE: Surefire 2.4.1 classpath order

2008-07-02 Thread M. Dahm
-uses-wrong-resources-to18219384.html Cheers Markus -- View this message in context: http://www.nabble.com/Surefire-2.4.1-classpath-order-tp15498825p18235397.html Sent from the Maven - Users mailing list archive at Nabble.com

Assembly: Dependencies which are not part of the classpath

2008-06-30 Thread Michael Gruebsch
Hi, I would like to define a dependency which is necessary for the project at runtime and: * gets imported from the repository -- scope != system * should be assembled for runtime distributions -- scope != provided * should not be added to the compile and runtime classpath -- scope != runtime

Append to classpath for manifest manually?

2008-06-27 Thread Andrew Robinson
Related to my previous post http://www.nabble.com/mvn-release-plugin-and-platform-specific-executable-jars-td18145554.html, I am wondering if it is possible to manually append a jar to the classpath of the manifest in the archive. If this is possible, I could manually add an swt jar

Re: plugin jar: A better way to add custom classpath entries in manifest file?

2008-06-05 Thread Tim Kettler
this is a misunderstanding on your side. The constructor you are using is intended to load images out of files on the filesystem and not to load an image from a classpath resource. The correct way to load images from resources would be to get a stream of the resource from a classloader and then pass this to the image

Re: plugin jar: A better way to add custom classpath entries in manifest file?

2008-06-05 Thread Maximilian Eberl
--- Tim Kettler [EMAIL PROTECTED] schrieb am Do, 5.6.2008: it seems this is a misunderstanding on your side. The constructor you are using is intended to load images out of files on the filesystem and not to load an image from a classpath resource. The correct way to load images from

Resource file needed on classpath for unit test

2008-06-04 Thread Derek Alexander
/ when the test is run. Any pointers appreciated. Thanks, D. -- View this message in context: http://www.nabble.com/Resource-file-needed-on-classpath-for-unit-test-tp17644825p17644825.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Resource file needed on classpath for unit test

2008-06-04 Thread Martin Höller
Hi! On Wednesday 04 June 2008 Derek Alexander wrote: I have a file config.xml that should be alongside its corresponding (TestCase) class file when the tests are run. Source is like this: src/test/java/com/example/db/config.xml src/test/java/com/example/db/MyTest.java (expects to

Re: Resource file needed on classpath for unit test

2008-06-04 Thread [EMAIL PROTECTED]
Derek Alexander schrieb: Hi, I have a file config.xml that should be alongside its corresponding (TestCase) class file when the tests are run. Source is like this: src/test/java/com/example/db/config.xml src/test/java/com/example/db/MyTest.java (expects to find config.xml in same

Re: Resource file needed on classpath for unit test

2008-06-04 Thread Derek Alexander
/unit/... src/test/integration/... src/test/functional/... and then be able to easily run just one set of tests (or all). Cheers, D. -- View this message in context: http://www.nabble.com/Resource-file-needed-on-classpath-for-unit-test-tp17644825p17645810.html Sent from the Maven - Users mailing

Re: Resource file needed on classpath for unit test

2008-06-04 Thread Martin Höller
On Wednesday 04 June 2008 Derek Alexander wrote: I have a related question. This isn't really a unit test but rather an integration test - hence the need for a config file. Is there a maven way to organise different types of tests. Currently I have src/test/... what I'd really like is:

plugin jar: A better way to add custom classpath entries in manifest file?

2008-06-04 Thread Maximilian Eberl
, /img/nice.png); This will look up for a file nice.png in a subfolder img packed in the jar along with the classes: JAR --com/mycompany/swtapp/MyClass.class |-img/nice.png But ONLY if the manifest File contains an extra entry ClassPath: img If this is not explicitely written

How to get the compile or runtime classpath of a build into a plugin ?

2008-06-02 Thread RobAtWebDE
Hi, I am writting my own plug-in and try to pass in the compile and/or runtime classpath of the build. A previous version was using a build in Ant-task using something like property name=compile_classpath refid=maven.compile.classpath/ and it works. But where do I get the same information

Problem Regarding junit test classes load , taking wrong classpath

2008-05-29 Thread Saurabh Agarwal
Hi , I have some junit testcase but i guess maven is considering the wrong class path for file and is trying to load classes with name *test.java.x.y.z *However* *my classes are in package *x.y.z **hence I am getting java.lang.ClassNotFoundException*java.lang.ClassNotFoundException: * * Can

Re: Problem Regarding junit test classes load , taking wrong classpath

2008-05-29 Thread Wayne Fay
Please provide more details about how your project is laid out etc. By default, Maven expects that your Java files go in src/main/java and the Java test files are in src/test/java. If you have configured things differently in the pom.xml, then this may not be accurate. What classes exactly are

eclipse plugin classpath and .svn directories

2008-05-29 Thread Terry Bell
Is there any way to tell eclipse:eclipse to add excluding tags to the .classpath to get it to ignore the .svn (**/.svn/)? I have a workspace with hundreds of small projects, and when I rebuild the eclipse classpaths, I have to set them all individually within eclipse. Conversely

Re: eclipse plugin classpath and .svn directories

2008-05-29 Thread Martin
Message - From: Terry Bell [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 11:47 AM Subject: eclipse plugin classpath and .svn directories Is there any way to tell eclipse:eclipse to add excluding tags to the .classpath to get it to ignore the .svn (**/.svn/)? I

Re: eclipse plugin classpath and .svn directories

2008-05-29 Thread simon
On Thu, 2008-05-29 at 08:47 -0700, Terry Bell wrote: Is there any way to tell eclipse:eclipse to add excluding tags to the .classpath to get it to ignore the .svn (**/.svn/)? I have a workspace with hundreds of small projects, and when I rebuild the eclipse classpaths, I have to set

classpath fileseparator problem in generated manifest file under winxp

2008-05-19 Thread Thalmeiner Zsolt
Hello, I'm building a Java project using Maven 2.0.9 and JVM 1.5.0_14 on Windows XP. My project depends on runtime from some jar files that are resides in the same directory with my jar so I put this configuration to my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId

Re: classpath fileseparator problem in generated manifest file under winxp

2008-05-19 Thread Paolo Compieta
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/classpath-fileseparator-problem-in-generated-manifest-file-under-winxp-tp17312374p17313594.html Sent from the Maven

Re: classpath fileseparator problem in generated manifest file under winxp

2008-05-19 Thread Thalmeiner Zsolt
Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages

Re: classpath fileseparator problem in generated manifest file under winxp

2008-05-19 Thread Paolo Compieta
This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix. see http://mindprod.com/jgloss/jar.html#CLASSPATH Regards, PC Thalmeiner Zsolt wrote: Using

Re: classpath fileseparator problem in generated manifest file under winxp

2008-05-19 Thread Thalmeiner Zsolt
Can you send me a simple working example? Thank you in advance. th Paolo Compieta írta: This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix. see http

Re: classpath fileseparator problem in generated manifest file under winxp

2008-05-19 Thread Tim Kettler
Thalmeiner Zsolt schrieb: Can you send me a simple working example? Thank you in advance. th Paolo Compieta írta: This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix

Re: Maven 1 classes in my plugin JAR not on ant:java runtime classpath?

2008-05-19 Thread christo
Hi Lukas, Thanks very much for this information. I did run with -X and saw the classpath but expected that the plugin jar would be on the classpath within a goal defined by that plugin. I'll extract my stuff into a separate jar. Chris. 2008/5/16 Lukas Theussl [EMAIL PROTECTED]: IIRC artifacts

Re: Maven 1 classes in my plugin JAR not on ant:java runtime classpath?

2008-05-16 Thread Lukas Theussl
IIRC artifacts of type plugin are not added to the runtime classpath (if you run with -X you should see a corresponding message). You have to deploy/install the plugin as a jar and declare a dependency of a jar type. HTH, -Lukas christo wrote: Hi All, I've read the docs, googled, read

Test classpath issue with v2.0.8 and v2.0.9

2008-05-16 Thread jlo_gestalt
in context: http://www.nabble.com/Test-classpath-issue-with-v2.0.8-and-v2.0.9-tp17276386p17276386.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Test classpath issue with v2.0.8 and v2.0.9

2008-05-16 Thread Dan Fabulich
. I'm going to guess you're encountering the bug described here: http://docs.codehaus.org/display/MAVENUSER/Classpath+Ordering+Bugs+in+Maven+Surefire Upgrading Surefire will probably restore you to the correct behavior. -Dan

<    1   2   3   4   5   6   7   8   9   10   >