Surefire includes artifacts with scope 'provided' in the runtime classpath, is this correct?

2007-07-03 Thread Frode Stokke
Hi. Surefire seems to include dependency artifacts with scope provided in the classpath when running unit tests. Is this a bug? Shouldn't such artifacts only be included in the compile-time classpath? The output from 'mvn -X test' is shown below. The artifact that is causing problems for me

RE: Surefire includes artifacts with scope 'provided' in the runtime classpath, is this correct?

2007-07-03 Thread frodesto
Jörg Schaible wrote: Why is it a problem for you, that it is available in the classpath for the test? - Jörg Hi again. I see your point in that in many (most?) cases you actually would like the artifacts with scope 'provided' to be available in the classpath for the unit tests

Re: adding the classpath to jar file

2007-06-27 Thread MUSTAFA SAIT OZEN
this method can bu used to combine DB2 Universal Type 4 Driver jars.There are two jars. One of them is licence jar another one is main jar. If licence jar is not added at the same classpath, main jar can not work. -Orijinal e-posta iletisi- From: Keith Beattie [EMAIL PROTECTED] Date

adding the classpath to jar file

2007-06-26 Thread DCVer
it a BASIC functionality, that Maven2 should do, when I set dependency in pom.xml file? I tried this with other jars (in repository) and other methods of the classes included in jars and the results were exactly the same. -- View this message in context: http://www.nabble.com/adding-the-classpath

Re: adding the classpath to jar file

2007-06-26 Thread Jan-Christopher Bals
You have to provide log4j via the classpath on your own. Maven does include log4j in your generated jar automatically. But Maven can generate the classpath for you http://maven.apache.org/plugins/maven-dependency-plugin/usage.html -dependency:build-classpath 2007/6/26, DCVer [EMAIL PROTECTED

Re: adding the classpath to jar file

2007-06-26 Thread DCVer
Bals-2 wrote: You have to provide log4j via the classpath on your own. Maven does include log4j in your generated jar automatically. But Maven can generate the classpath for you http://maven.apache.org/plugins/maven-dependency-plugin/usage.html -dependency:build-classpath 2007/6/26, DCVer

Re: adding the classpath to jar file

2007-06-26 Thread Jan-Christopher Bals
Yes. The behavior is correct. Maven does not include the log4j jar because jars cannot contain other jars. When you use additional jars at runtime, you have to provide them via the classpath. And as far as i know you cannot define the classpath of jar inside the jar like the main class. So

Re: adding the classpath to jar file

2007-06-26 Thread DCVer
Ok, thanks for some information! Jan-Christopher Bals-2 wrote: Yes. The behavior is correct. Maven does not include the log4j jar because jars cannot contain other jars. When you use additional jars at runtime, you have to provide them via the classpath. And as far as i know you

Re: adding the classpath to jar file

2007-06-26 Thread Wayne Fay
: Ok, thanks for some information! Jan-Christopher Bals-2 wrote: Yes. The behavior is correct. Maven does not include the log4j jar because jars cannot contain other jars. When you use additional jars at runtime, you have to provide them via the classpath. And as far as i know you cannot

Re: adding the classpath to jar file

2007-06-26 Thread Keith Beattie
On 6/26/07, DCVer [EMAIL PROTECTED] wrote: Ok, thanks for some information! I've gotten Maven to create an executable jar which sets a class-path in its manifest file pointing (via a *relative* path) to contained dependent jars within the same jar though the use of the jar and assembly

native2ascii classpath woes

2007-06-25 Thread Alexander Sack
trace). How can I debug the runtime classpath of a Maven2 build cycle? -aps -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson

RE: native2ascii classpath woes

2007-06-25 Thread Alok, Niraj
You could use Thread.currentThread().getContextLoader() and then iterate through the urls list which are locations of jar files. -Original Message- From: Alexander Sack [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 1:37 AM To: Maven Users List Subject: native2ascii classpath

Re: native2ascii classpath woes

2007-06-25 Thread Alexander Sack
are locations of jar files. -Original Message- From: Alexander Sack [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 1:37 AM To: Maven Users List Subject: native2ascii classpath woes I'm using the native2ascii codehaus plugin and on windows it works fine, but on my Unix box it fails

Re: native2ascii classpath woes

2007-06-25 Thread Alexander Sack
List Subject: native2ascii classpath woes I'm using the native2ascii codehaus plugin and on windows it works fine, but on my Unix box it fails with: --- Nested Exception --- java.lang.ClassNotFoundException: sun.tools.native2ascii.Main at java.net.URLClassLoader$1.run

Re: native2ascii classpath woes

2007-06-25 Thread Alexander Sack
] Sent: Tuesday, June 26, 2007 1:37 AM To: Maven Users List Subject: native2ascii classpath woes I'm using the native2ascii codehaus plugin and on windows it works fine, but on my Unix box it fails with: --- Nested Exception --- java.lang.ClassNotFoundException

RE: Classpath in EAR's manifest?

2007-06-22 Thread andreas.ebbert-karroum
Hallo Jörg, -Original Message- From: ext Jörg Schaible [mailto:[EMAIL PROTECTED] Can I turn that off somehow? I couldn't find an option in the documentation in http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html None of my generated EARs has a manifest that contains a

RE: Classpath in EAR's manifest?

2007-06-22 Thread Jörg Schaible
[EMAIL PROTECTED] wrote on Friday, June 22, 2007 12:29 PM: Hallo Jörg, -Original Message- From: ext Jörg Schaible [mailto:[EMAIL PROTECTED] Can I turn that off somehow? I couldn't find an option in the documentation in http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html

Classpath in EAR's manifest?

2007-06-21 Thread andreas.ebbert-karroum
Hi, why is the classpath also generated in the EAR's manifest? It should not, the JavaEE verifier in netbeans is complaining about it: Manifest file of an EAR file should not contain Class-Path entries. Please refer to J2EE 1.4 Platform Specification Section #8.2 for further

RE: Classpath in EAR's manifest?

2007-06-21 Thread Jörg Schaible
Hi Anread, -Original Message- From: andreas.ebbert-karroum Sent: Thursday, June 21, 2007 11:54 AM Subject: Classpath in EAR's manifest? Hi, why is the classpath also generated in the EAR's manifest? It should not, the JavaEE verifier in netbeans is complaining about

Surefire classpath issues

2007-06-20 Thread Randall Fidler
in the classpath and the Java 5 provider parser. Default value is false. Second problem: When I enable the childDelegation, the plugin then cannot find the JAXB classes (setup as dependencies in the pom). I've tried test/compile scopes on the dependencies

RE: Surefire classpath issues

2007-06-20 Thread Barrett Nuzum
PROTECTED] Sent: Wed 6/20/2007 9:58 AM To: users@maven.apache.org Subject: Surefire classpath issues Hello, Have an issue with trying to leverage Blowfish which ships with Java 1.5 in relation to unit tests. The test which I'm trying to run is using JAXB and Blowfish impl which

Re: maven-eclipse-plugin: .classpath is not written if packaging is zip

2007-06-10 Thread Graham Leggett
Graham Leggett wrote: I am trying to get the eclipse plugin to generate an eclipse config that can be built using PDE (via the maven-pde-plugin). To do this, the packaging type needs to be zip. However - when this is the case, the eclipse plugin refuses to write a .classpath file, and my

Classpath issues with maven 2.0.6

2007-06-08 Thread Minto.van.der.Sluis
Hi folks Unfortunately I run into classpath problems when running my unittests with 'mvn test'. I have the following situation. To be able to test static blocks in my classes under various conditions I need to be sure these static block are executed multiple times. The only thing I know

Re: Classpath issues with maven 2.0.6

2007-06-08 Thread Jo Vandermeeren
On 6/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Looking a bit deeper I discovered the classpath being used in Eclipse contains a lot more entries than the one being used by maven. Hi Minto The classpath used to startup maven is different from the one that is used to build and test

RE: Classpath issues with maven 2.0.6

2007-06-08 Thread Minto.van.der.Sluis
Hi Jo, Yes I have, look at the pom files below. Also not that in the maven case the test and project classes are not part of the classpath being used by the tests. Regards, Minto My project pom file: === project modelVersion4.0.0/modelVersion parent

RE: Classpath issues with maven 2.0.6

2007-06-08 Thread Minto.van.der.Sluis
configuration -- [INFO] [compiler:testCompile] [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [K:\Sources\Prefs\memoryprefs\src\test\java] [DEBUG] Classpath: [K:\Sources\Prefs\memoryprefs\target\classes K:\Sources\Prefs\memoryprefs\target\test-classes K:\Repositories\maven2\.m2\repository\junit

Re: Classpath issues with maven 2.0.6

2007-06-08 Thread Vandermeeren, Jo
that contains it. Which class is causing the ClassNotFoundException? Also not that in the maven case the test and project classes are not part of the classpath being used by the tests. Could you paste some information about the build output when you run mvn test -X? Search for classpathElements

Re: Classpath issues with maven 2.0.6

2007-06-08 Thread Vandermeeren, Jo
On 6/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Snippet of the mvn test -X ouput: == snip [DEBUG] Test Classpath : [DEBUG] K:\Sources\Prefs\memoryprefs\target\test-classes [DEBUG] K:\Sources\Prefs\memoryprefs\target\classes [DEBUG] K:\Sources\Prefs

RE: Classpath issues with maven 2.0.6

2007-06-08 Thread Minto.van.der.Sluis
class for every single test. That's why I use the ReloadableClassLoader. This custom classloader does not use the normal commandline but the 'java.class.path' system property to determine the classpath. Retrieving this system property reveals only one classpath entry. K:\DevTools\maven\maven

Classpath in exec:java

2007-06-08 Thread sharrissf
Can someone point me to a sample of executing a java program from exec:java that requires a jar in the class path that comes from an external package. In otherwords, manually setting the classpath. This isn't working for me. plugin groupIdorg.codehaus.mojo/groupId artifactIdexec

Re: Classpath issues with maven 2.0.6

2007-06-08 Thread Vandermeeren, Jo
with the java.class.path system property in this context smells too much like hacking to me. Cheers Jo This custom classloader does not use the normal commandline but the 'java.class.path' system property to determine the classpath. Retrieving this system property reveals only one classpath entry

M2 classpath generation

2007-06-06 Thread Jon Strayer
I'm currently using maven 2. Most of our applications are batch applications that run from cron via a bash script. I've written a plugin that (among other things) will read through the pom and generate a file that sets the class path correctly for this application. Is there anything like this

Re: M2 classpath generation

2007-06-06 Thread Steven Rowe
This Appassembler plugin will do this and more: http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ Jon Strayer wrote: I'm currently using maven 2. Most of our applications are batch applications that run from cron via a bash script. I've written a plugin that (among other

Re: M2 classpath generation

2007-06-06 Thread Jon Strayer
I'm getting this exception when I try mvn appassembler:assemble [INFO] Trace java.lang.NullPointerException at org.apache.maven.artifact.installer.DefaultArtifactInstaller.install( DefaultArtifactInstaller.java:71) at org.codehaus.mojo.appassembler.AssembleMojo.installArtifact(

Re: M2 classpath generation

2007-06-06 Thread Steven Rowe
Hi Jon, This JIRA issue sounds similar: http://jira.codehaus.org/browse/MOJO-714 Also, you should be running this goal like so: mvn package appassembler:assemble Steve Jon Strayer wrote: I'm getting this exception when I try mvn appassembler:assemble [INFO] Trace

Re: M2 classpath generation

2007-06-06 Thread Jon Strayer
Excellent! Thank you very much. I was assuming that since I had run mvn package that I could leave package out of the appassembler run. On 6/6/07, Steven Rowe [EMAIL PROTECTED] wrote: Hi Jon, This JIRA issue sounds similar: http://jira.codehaus.org/browse/MOJO-714 Also, you should be

maven-eclipse-plugin: .classpath is not written if packaging is zip

2007-06-05 Thread Graham Leggett
Hi all, I am trying to get the eclipse plugin to generate an eclipse config that can be built using PDE (via the maven-pde-plugin). To do this, the packaging type needs to be zip. However - when this is the case, the eclipse plugin refuses to write a .classpath file, and my project has

Re: How to tell Maven where to find jar (specify classpath)

2007-06-02 Thread Michael Meyer
Hi you could try adding the dependency with scope system [1]. dependency groupIdoracle/groupId artifactIdoracle/artifactId versionx.x.x/version scopesystem/scope systemPath${basedir}/lib/oracle.jar/systemPath /dependency Cheers, michael [1]

Re: How to tell Maven where to find jar (specify classpath)

2007-06-02 Thread nicolas de loof
You can also point to an existing location in maven public repo ( http://repo1.maven.org/maven2/com/oracle/) When trying to compile, maven will complain not finding the dependecy and output the command required to install the file in the local repository. The POM gives the URL to download the

eclipse plugin for maven - first letter missing in .classpath file

2007-06-02 Thread Marcio Guedes
.classpath file - all classpath entries describing external jars have missing first letter (after M2_REPO env variable). let take an example: classpathentry kind=var path=M2_REPO/unit/junit/3.8.1/junit-3.8.1.jar sourcepath=M2_REPO/unit/junit/3.8.1/junit-3.8.1-sources.jar/ i found that someone

Re: How to tell Maven where to find jar (specify classpath)

2007-06-01 Thread Mark Derricutt
Could you not include the jar and a pom for it in a repository in your distribution relative to the pom you mentioned originally - then reference this repo relative to your pom? On 6/1/07, SiSi'mon [EMAIL PROTECTED] wrote: Is there a way to tell maven about another jar?

How to tell Maven where to find jar (specify classpath)

2007-05-31 Thread SiSi'mon
-jar-%28specify-classpath%29-tf3848482s177.html#a10900554 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to tell Maven where to find jar (specify classpath)

2007-05-31 Thread Wendy Smoak
On 5/31/07, SiSi'mon [EMAIL PROTECTED] wrote: We have a product we wish to deliver that requires compliation. We have a pom.xml file that specifies all the dependencies but there is one dependency (Oracle jdbc jars) for which there is no repository so we must package the .jar files in a /lib/

Re: How to tell Maven where to find jar (specify classpath)

2007-05-31 Thread SiSi'mon
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-tell-Maven-where-to-find-jar-%28specify-classpath%29-tf3848482s177.html#a10901912

Re: How to tell Maven where to find jar (specify classpath)

2007-05-31 Thread Carlos Sanchez
: http://www.nabble.com/How-to-tell-Maven-where-to-find-jar-%28specify-classpath%29-tf3848482s177.html#a10901912 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Access to the full classpath when running under Surefire (WAS: [Maven 2])

2007-05-31 Thread James Abley
to use Maven2 for the build and I'm running into trouble with how Maven's Surefire test runner plugin seems to hide the classpath from the executing code. The issue stems from the need for a unit test to be able to compile Java source code (generated from JSP source files), which obviously

Re: Problem with classpath order

2007-05-24 Thread Thorsten Heit
Hi, The reason is CDC.. CDC = ? (sorry, don't actually know what it is) There are some classes does not exist, so I have to implement them, however, to make sure I can run my applications on PC as well, I need same naming...extra method is for legacy reasons. I'd think about

Re: Need testSourceDirectory to come before dependencies on classpath during surefire run

2007-05-24 Thread Steven Cummings
for this? it seems like you'd probably be better off with a design change than relying on classpath ordering. On 5/23/07, Steven Cummings [EMAIL PROTECTED] wrote: Hello, I looked in the archives before posting and the closest thing I could find to my particular situation is all of the messages surrounding http

Re: Problem with classpath order

2007-05-24 Thread Andrew Williams
of stuck. I have project that depends on project where I override some java standard classes and sometimes I have extra methods in there. When i use eclipse, I can change order of classpath to have my Maven2 Dependencies over the JRE. However, when I try to install or compile, I can not because

Re: Problem with classpath order

2007-05-24 Thread Wayne Fay
I assume he meant CLDC (Connected Limited Device Configuration) aka J2ME (Java 2 Mobile Edition). I strongly agree with the other responses suggesting that you refactor things rather proceeding with this approach! Wayne On 5/24/07, Thorsten Heit [EMAIL PROTECTED] wrote: Hi, The reason is

WAR plugin issue with classpath prefixes

2007-05-24 Thread Alexander Sack
Is there a way to set the default classpath prefix in the manifest of a WAR? I can do it all day in a JAR using the classPathPrefix tag but it seems the WAR plugin doesn't support this which to me would be a bad oversight. I rather not include the JARS in WEB-INF/lib and my EAR's lib directory

Problem with classpath order

2007-05-23 Thread redhatvswin
Dear all. I have following problem and I am kind of stuck. I have project that depends on project where I override some java standard classes and sometimes I have extra methods in there. When i use eclipse, I can change order of classpath to have my Maven2 Dependencies over the JRE. However

Re: Problem with classpath order

2007-05-23 Thread Thorsten Heit
Hi, I have following problem and I am kind of stuck. I have project that depends on project where I override some java standard classes and sometimes I have extra methods in there. When i use eclipse, I can change order of classpath to have my Maven2 Dependencies over the JRE. However, when

Re: Problem with classpath order

2007-05-23 Thread redhatvswin
of stuck. I have project that depends on project where I override some java standard classes and sometimes I have extra methods in there. When i use eclipse, I can change order of classpath to have my Maven2 Dependencies over the JRE. However, when I try to install or compile, I can not because

Need testSourceDirectory to come before dependencies on classpath during surefire run

2007-05-23 Thread Steven Cummings
Hello, I looked in the archives before posting and the closest thing I could find to my particular situation is all of the messages surrounding http://jira.codehaus.org/browse/MNG-1412 (the ordering of the dependencies on the classpath). I need a specific class to hide another

Re: Need testSourceDirectory to come before dependencies on classpath during surefire run

2007-05-23 Thread Gregory Kick
if it looks like a hack, sounds like a hack, smells like a hack... what's your specific use case for this? it seems like you'd probably be better off with a design change than relying on classpath ordering. On 5/23/07, Steven Cummings [EMAIL PROTECTED] wrote: Hello, I looked in the archives

Access to the full classpath when running under Surefire (WAS: [Maven 2])

2007-05-22 Thread Lasse Koskela
with how Maven's Surefire test runner plugin seems to hide the classpath from the executing code. The issue stems from the need for a unit test to be able to compile Java source code (generated from JSP source files), which obviously needs all sorts of J2EE stuff in the classpath

eclipse plugin for maven - first letter missing in .classpath file

2007-05-18 Thread Kamil Piętak
Hello I have a problem with eclipse plugin for maven 2 (i'm using maven 2.0.6). it generates wrong .classpath file - all classpath entries describing external jars have missing first letter (after M2_REPO env variable). let take an example: classpathentry kind=var path=M2_REPO/unit/junit/3.8.1

Setting classpath during junit execution

2007-05-18 Thread Larry Suto
Hi was wondering if anyone knows how I would set a classpath to a jdbc properties file that is required by by a Junit test executed during the Maven build. Would it work if I placed it in the test resources area. Thanks, Larry

Re: Setting classpath during junit execution

2007-05-18 Thread Jim Crossley
Larry Suto [EMAIL PROTECTED] writes: Hi was wondering if anyone knows how I would set a classpath to a jdbc properties file that is required by by a Junit test executed during the Maven build. Would it work if I placed it in the test resources area. Yes. Anything residing in src/test

Re: Runtime dependencies in Eclipse classpath

2007-05-17 Thread Larry Meadors
there so that you can run your app from the IDE - that's the behavior I'd expect. Larry On 5/16/07, lightbulb432 [EMAIL PROTECTED] wrote: Why are dependencies with a scope of runtime added to Eclipse's .classpath file? I thought the point of runtime is that it's not a compile-time

Problems generating .classpath

2007-05-16 Thread Sancheski
Hi all I am having some problems generating .classpath file using eclipse:eclipse goal. I have never experienced this problem before. I also had to add the plugin configuration info showed below to generate the .project file properly (without this config, the .project file did not take java

Runtime dependencies in Eclipse classpath

2007-05-16 Thread lightbulb432
Why are dependencies with a scope of runtime added to Eclipse's .classpath file? I thought the point of runtime is that it's not a compile-time dependency; therefore, why the addition to the .classpath? Perhaps someone can correct me, but my understanding of runtime scope

Re: Runtime dependencies in Eclipse classpath

2007-05-16 Thread Larry Meadors
I'd assume that it's there so that you can run your app from the IDE - that's the behavior I'd expect. Larry On 5/16/07, lightbulb432 [EMAIL PROTECTED] wrote: Why are dependencies with a scope of runtime added to Eclipse's .classpath file? I thought the point of runtime is that it's

Re: Runtime dependencies in Eclipse classpath

2007-05-16 Thread lightbulb432
there so that you can run your app from the IDE - that's the behavior I'd expect. Larry On 5/16/07, lightbulb432 [EMAIL PROTECTED] wrote: Why are dependencies with a scope of runtime added to Eclipse's .classpath file? I thought the point of runtime is that it's not a compile-time

Re: classpath clarification

2007-05-15 Thread Marcel Schutte
().getLocation()' instead. Regards, Marcel - Original Message From: Monty Zukowski [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, May 14, 2007 11:29:46 PM Subject: Re: classpath clarification From: Wayne Fay [EMAIL PROTECTED] You need to tag your mojo

Re: classpath clarification

2007-05-15 Thread Monty Zukowski
List users@maven.apache.org Sent: Tuesday, May 15, 2007 12:11:30 AM Subject: Re: classpath clarification Hi Monty, You shouldn't use ClassLoader.getSystemClassLoader() to lookup your class. Maven uses a hierarchy of classloaders and by specifying that you want the systemclassloader, you bypass

RE: Problems with loading non-Java resources from classpath in JUnit tests

2007-05-14 Thread Rossmanith, Philipp
from classpath in JUnit tests Where is your resource file located in your source code tree? It should be under src/main/resources. I will assume it is under src/main/java -- that's your problem. Wayne On 5/13/07, Rossmanith, Philipp [EMAIL PROTECTED] wrote: Hi, I have a component

RE: Problems with loading non-Java resources from classpath in JUnit tests

2007-05-14 Thread Jörg Schaible
: domingo, 13 de mayo de 2007 23:36 Para: Maven Users List Asunto: Re: Problems with loading non-Java resources from classpath in JUnit tests Where is your resource file located in your source code tree? It should be under src/main/resources. I will assume it is under src/main/java

RE: Problems with loading non-Java resources from classpath in JUnit tests

2007-05-14 Thread Rossmanith, Philipp
, 14 de mayo de 2007 10:13 Para: Maven Users List Asunto: RE: Problems with loading non-Java resources from classpath in JUnit tests What is the content of filePath1 ? Rossmanith, Philipp wrote on Monday, May 14, 2007 10:00 AM: Hi, My resource file (the properties file I am trying to load

RE: Problems with loading non-Java resources from classpath in JUnit tests - SOLVED

2007-05-14 Thread Rossmanith, Philipp
resources from classpath in JUnit tests What is the content of filePath1 ? It's a string containing the name of the properties file... (It is working in Eclipse, so I can exclude a typo or similar as the cause of the error.) Ciao, Philipp -Mensaje original- De: Jörg Schaible

Re: Problems with loading non-Java resources from classpath in JUnit tests

2007-05-14 Thread Wayne Fay
exclude a typo or similar as the cause of the error.) Ciao, Philipp -Mensaje original- De: Jörg Schaible [mailto:[EMAIL PROTECTED] Enviado el: lunes, 14 de mayo de 2007 10:13 Para: Maven Users List Asunto: RE: Problems with loading non-Java resources from classpath in JUnit tests What

Provided scope not appearing in classpath

2007-05-14 Thread lightbulb432
Am I right to assume that the provided dependency scope should appear in my .classpath file when I run an eclipse:eclipse, but it should not appear in the generated WAR when I run a package/install/deploy? Right now it's not appearing in my .classpath, which seems wrong... Thanks. -- View

classpath clarification

2007-05-14 Thread Monty Zukowski
I've got my own plugin for my own test framework but don't seem to be getting my test classes in the classpath when running the plugin. For instance: plugin groupIdcom.temboo.arcturus.maven_testsuite_plugin/groupId artifactIdarcturus-maven-testsuite-plugin/artifactId

Re: classpath clarification

2007-05-14 Thread Wayne Fay
classes in the classpath when running the plugin. For instance: plugin groupIdcom.temboo.arcturus.maven_testsuite_plugin/groupId artifactIdarcturus-maven-testsuite-plugin/artifactId version1.0-SNAPSHOT/version executions execution phasetest/phase

Re: classpath clarification

2007-05-14 Thread Monty Zukowski
* @requiresDependencyResolution test * @phase test */ public class TestsuitePlugin extends AbstractMojo { /** * @parameter expression=${project} * @required */ private MavenProject project; public void execute() throws MojoExecutionException { String classpath

Problems with loading non-Java resources from classpath in JUnit tests

2007-05-13 Thread Rossmanith, Philipp
Hi, I have a component that is loading resources/files from the classpath and for which I have written a JUnit test. However, when I run the tests with Maven from the command line, they fail - obviously due to some classpath problems.*) My assumption was that target/test-classes would form part

Re: addClasspath does not add the classpath to Manifest

2007-05-13 Thread Wayne Fay
-- Wayne On 5/11/07, Tom Lambrechts [EMAIL PROTECTED] wrote: When enabling addClasspath the manifest does not contain classpath. Neither for runtime or compile scope: Main class and other parameters do work. Manifest: - Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created

Re: addClasspath does not add the classpath to Manifest

2007-05-13 Thread Jo Vandermeeren
Hi Tom, Only dependencies with scope runtime are added to the classpath. Cheers Jo On 5/11/07, Tom Lambrechts [EMAIL PROTECTED] wrote: When enabling addClasspath the manifest does not contain classpath. Neither for runtime or compile scope: Main class and other parameters do work. Manifest

Re: Problems with loading non-Java resources from classpath in JUnit tests

2007-05-13 Thread Wayne Fay
the classpath and for which I have written a JUnit test. However, when I run the tests with Maven from the command line, they fail - obviously due to some classpath problems.*) My assumption was that target/test-classes would form part of the classpath, which a test output with maven -X confirmed

addClasspath does not add the classpath to Manifest

2007-05-11 Thread Tom Lambrechts
When enabling addClasspath the manifest does not contain classpath. Neither for runtime or compile scope: Main class and other parameters do work. Manifest: - Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: TOLA Build-Jdk: 1.5.0_07 POM

Customizing generated Eclipse .classpath file

2007-05-10 Thread lightbulb432
I'd like to specify based on properties in profiles.xml some values for Eclipse's .classpath file. How could I do this? (i.e. Where in the profiles.xml you could specify the path of a Java Build Path variable, for example, and the generated .classpath file for the eclipse:eclipse goal would

Manage Maven Classpath

2007-05-03 Thread GreJ
Hi, it's a simple question, and i think that the answer is no, but i need a confirmation ;) Is it possible to manage manually the MavenClasspath ? Thanks. -- View this message in context: http://www.nabble.com/Manage-Maven-Classpath-tf3685869s177.html#a10302892 Sent from the Maven

Re: Manage Maven Classpath

2007-05-03 Thread Wayne Fay
. -- View this message in context: http://www.nabble.com/Manage-Maven-Classpath-tf3685869s177.html#a10302892 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Prepending a folder to a plugin's classpath

2007-04-25 Thread William Ferguson
. At this point velocity has been configured to use the ClasspathResourceLoader. How can I ensure that the Plugin puts the project specific classpath resources ahead of the resources contained in the Plugin? Is there any Maven mechanism that can be used to prepend to the plugin classpath? Or do I need to set

Re: Dynamic jar manifest classpath based on groupId, artifactId and version in repository

2007-04-24 Thread Geoffrey De Smet
.jar are 2 different jars, with different classes. 2- don't depend on the generated classpath (e.g. use a wrapper to start your app) You mean a shell script? Then we need to keep 2 verions in sync: wrapper.bat and wrapper.sh. Or do you mean a wrapper jar? We have separate processes that reuse

Dynamic jar manifest classpath based on groupId, artifactId and version in repository

2007-04-23 Thread Geoffrey De Smet
Hi all, With the assembly plugin I can put all my module jars in repository like structure: /repo/org/ggg/ggg-core/1.0/ggg-core-1.0.jar /repo/org/ggg/ggg-ftp-app/1.0/ggg-ftp-app-1.0.jar depends on ggg-core /repo/org/ggg/ggg-http-app/1.0/ggg-http-app-1.0.jar depends on ggg-core I've

Re: Dynamic jar manifest classpath based on groupId, artifactId and version in repository

2007-04-23 Thread Ian Springer
Hi, Add: classpathPrefix../../../../org/ggg/ggg-core/1.0//classpathPrefix as a child element of the manifest element. Ian Geoffrey De Smet wrote: Hi all, With the assembly plugin I can put all my module jars in repository like structure: /repo/org/ggg/ggg-core/1.0/ggg-core-1.0.jar

Re: Dynamic jar manifest classpath based on groupId, artifactId and version in repository

2007-04-23 Thread Geoffrey De Smet
I also have a dependency on spring-core: /repo/org/springframework/spring-core/2.0.2/spring-core-2.0.2.jar So I need a different classpathPrefix depending on the dependency. With kind regards, Geoffrey De Smet Ian Springer schreef: Hi, Add:

Test classpath

2007-04-23 Thread Steven Rowe
for a failing test class.) This is a problem for me because one of my tests expects to be able to find the test .class files in the classpath, but can't under Maven 2, and so is failing. Under both Maven 1.1-beta-3 and IntelliJ IDEA, the generated test class files directory is included in java.class.path

M2: Classpath reference in ant-based mojos?

2007-04-17 Thread Dave Syer
I have some issues trying to get an ant-based mojo to work (need access to a classpath ref in the ant script of the mojo - similar to http://www.nabble.com/-m2--Ant-driven-plugins-and-classpath-refid%27s-tf937983s177.html#a2429897). Anyone know how to do that? Are Ant Mojos still supported

How to generate manifest ClassPath entries for a web project?

2007-04-12 Thread Johan Eltes
I'd like have all dependent jars of all modules of my enterprise application bundled in the ear - not in WEB-INF/lib directories of my war files. Is this possible with maven 2? I would also like maven to generate the required ClassPath entries in the war manifest file. I've found out how

Re: How to generate manifest ClassPath entries for a web project?

2007-04-12 Thread Jerome Lacoste
On 4/12/07, Johan Eltes [EMAIL PROTECTED] wrote: I'd like have all dependent jars of all modules of my enterprise application bundled in the ear - not in WEB-INF/lib directories of my war files. Is this possible with maven 2? I would also like maven to generate the required ClassPath entries

Re: How to generate manifest ClassPath entries for a web project?

2007-04-12 Thread Johan Eltes
Thanks. Now that Maven is generating my manifest ClassPath entry for all my dependencies - how do I avoid having the dependent jars copied into the WEB-INF/lib directory of my war? Johan Eltes Callista Enterprise AB Mobil: +46 (0)708-22 41 86 [EMAIL PROTECTED] http

Re: How to generate manifest ClassPath entries for a web project?

2007-04-12 Thread franz see
. Now that Maven is generating my manifest ClassPath entry for all my dependencies - how do I avoid having the dependent jars copied into the WEB-INF/lib directory of my war? Johan Eltes Callista Enterprise AB Mobil: +46 (0)708-22 41 86 [EMAIL PROTECTED] http

Re: How to generate manifest ClassPath entries for a web project?

2007-04-12 Thread Manos Batsis
Johan Eltes wrote: I'd like have all dependent jars of all modules of my enterprise application bundled in the ear - not in WEB-INF/lib directories of my war files. Is this possible with maven 2? I would also like maven to generate the required ClassPath entries in the war manifest file. I've

Re: How to generate manifest ClassPath entries for a web project?

2007-04-12 Thread Marcel Schutte
, April 12, 2007 6:50:09 PM Subject: Re: How to generate manifest ClassPath entries for a web project? Johan Eltes wrote: I'd like have all dependent jars of all modules of my enterprise application bundled in the ear - not in WEB-INF/lib directories of my war files. Is this possible with maven 2

Re: Manipulating the surefire booter classpath

2007-04-05 Thread Marcel Schutte
Recently I used -Xbootclasspath/a: to add dependencies to the forked VM's classpath. I did this because there was some legacy code involved that insists on reading stuff with a getSystemResource(). Regards, Marcel - Original Message From: Wayne Fay [EMAIL PROTECTED] To: Maven Users

RE: Manipulating the surefire booter classpath

2007-04-05 Thread David Jackman
Unfortunately, it appears that adding dependencies to the surefire plugin does not affect the booter classpath in any way. Any other ideas? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 3:10 PM To: Maven Users List Subject: Re

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

2007-04-04 Thread Johan Lindquist
-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 attached Mojo for a simple example. One issue with this is that some classes (in your case, most likely the spring classes

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