Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Andy Glick
the test are running. But since the file is environement dependent, i don't want to have this file staying in the repositry So i decided to add a copy of this file in the test environement. But i need to add this file to the classpath for the tests. And for the moment i can't Here is the issue. Since

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Wayne Fay
Since i'm using some profile for each environment, i could add some task to the profiles. You could probably hack something via profiles. But this is use of profiles should not be encouraged IMO. Instead you should create an artifact out of this folder's contents and add a proper dependency

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Benjamin Dreux
HI, fist thanks for your interest I have a properties file that i want to keep in my environnement. This is because this way the war file is environnement independant. I put the property file in the tomcat/lib folder. But when i'm running my tests, i also need the property file, to define

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Andy Glick
. If all that you need to do is add the properties file to the classpath of the surefire plugin for the test phase, the example that I pasted in an earlier message ought to work, even without using profiles. If your testing and test environments vary by development environment then profiles

Re: How to add a folder to the classpath used during maven build

2011-08-31 Thread Wayne Fay
I have a properties file that i want to keep in my environnement. This is because this way the war file is environnement independant. I put the property file in the tomcat/lib folder. But when i'm running my tests, i also need the property file, to define things like db url ... And i

test-classes not used as classpath

2011-08-05 Thread Michel Jung
Hi My test-classes folder is not in the classpath - neither in eclipse, nor when running the application with maven. I created a new sample app, like this: src/main/java/com/example/Main: public static void main(final String[] args) { System.out.println

Re: test-classes not used as classpath

2011-08-05 Thread Baptiste MATHUS
/resources, not src/test/resources. Cheers 2011/8/5 Michel Jung michel.jun...@gmail.com Hi My test-classes folder is not in the classpath - neither in eclipse, nor when running the application with maven. I created a new sample app, like this: src/main/java/com/example/Main: public static void

(mantychore) maven3 classpath prob: when mvn test in bundle works parent fails

2011-08-01 Thread Roc Vallès
maven2 and maven3. However, when we do mvn test, maven3 fails in some places where 2 doesn't. Some logs can be found at: https://gist.github.com/5b639232043d96f876b3 After some debugging and realizing mvn dependency:tree is (for now) a bad idea on maven3, I've found out that the classpath of the first

(mantychore) maven3 classpath prob: when mvn test in bundle works parent fails

2011-08-01 Thread Roc Vallès
maven2 and maven3. However, when we do mvn test, maven3 fails in some places where 2 doesn't. Some logs can be found at: https://gist.github.com/5b639232043d96f876b3 After some debugging and realizing mvn dependency:tree is (for now) a bad idea on maven3, I've found out that the classpath of the first

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread DaveyBob
-doesn-t-include-all-source-paths-in-generated-classpath-file-in-a-Java-Groovy-pt-tp4535545p4583476.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Jeff MAURY
/Maven-Eclipse-Plugin-doesn-t-include-all-source-paths-in-generated-classpath-file-in-a-Java-Groovy-pt-tp4535545p4583476.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Barrie Treloar
On Thu, Jul 14, 2011 at 3:09 AM, Jeff MAURY jeffma...@jeffmaury.com wrote: You probably need to configure your Eclipse project as a Groovy project (through a nature I think). Please not that you can configure the Maven Eclipse plugin to add specific natures when eclipse:eclipse is run. Groovy

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Barrie Treloar
On Thu, Jul 14, 2011 at 9:07 AM, Barrie Treloar baerr...@gmail.com wrote: On Thu, Jul 14, 2011 at 3:09 AM, Jeff MAURY jeffma...@jeffmaury.com wrote: You probably need to configure your Eclipse project as a Groovy project (through a nature I think). Please not that you can configure the Maven

axistools-maven-plugin classpath issue

2011-07-06 Thread Russ Tremain
fails with missing class errors. The above works fine when I build locally. However, when I add a second use of the plugin in a different pom, but in the same reactor, the classpath from the first instance is used and the wsdd generation fails. As a work-around, I have included both

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-04 Thread Barrie Treloar
On Thu, Jun 30, 2011 at 12:45 AM, Sebastian Goldt sd...@cam.ac.uk wrote: Sebastian, its been five days and no feedback. Have you worked out your problem? Has any of this thread been useful? It would be nice from an archive perspective if you could comment on your resolution so others can avoid

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-06-30 Thread Guillaume Polet
the four folders src/main/java, src/main/groovy, src/test/java and src/test/groovy which are added to the project with the Build Helper Maven Plugin (1.6). When I generate the eclipse project files using eclipse:eclipse, the generated .classpath file only contains the src/main/groovy folder and not the src

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-06-30 Thread Barrie Treloar
On Thu, Jun 30, 2011 at 4:43 PM, Guillaume Polet guillaume.po...@gmail.com wrote: It's an M2Eclipse problem. I think you should rather user their ML. [del]    mvn eclipse:eclipse He's not using m2e. I'm looking into it... -

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-06-30 Thread Barrie Treloar
to the project with the Build Helper Maven Plugin (1.6). When I generate the eclipse project files using eclipse:eclipse, the generated .classpath file only contains the src/main/groovy folder and not the src/test/groovy folder. *Reproduction:* The easiest way to reproduce the problem is by using a java

Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-06-30 Thread Anders Hammar
Plugin (1.6). When I generate the eclipse project files using eclipse:eclipse, the generated .classpath file only contains the src/main/groovy folder and not the src/test/groovy folder. *Reproduction:* The easiest way to reproduce the problem is by using a java/groovy project quickstarter from

Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-06-29 Thread Sebastian Goldt
Maven Plugin (1.6). When I generate the eclipse project files using eclipse:eclipse, the generated .classpath file only contains the src/main/groovy folder and not the src/test/groovy folder. *Reproduction:* The easiest way to reproduce the problem is by using a java/groovy project quickstarter from

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-17 Thread Jörg Schaible
Benson Margulies wrote: I find myself looking to create a plugin where, as part of execution, it wants to create a classpath composed of the declared dependencies. Can anyone suggest a model? Not sure, which plugin I used to look this up, but I had once the need to scan the compiled classes

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-17 Thread Mark Struberg
I think the question is ambiguous: Did he like to get the classpath of all dependencies of the current project to invoke a java method which needs those classes on the classpath (annotation scanning or enhancement, etc)? Or does he like to contruct a classpath string which he can pass

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-17 Thread Benson Margulies
the classpath of all dependencies of the current project to invoke a java method which needs those classes on the classpath (annotation scanning or enhancement, etc)? Or does he like to contruct a classpath string which he can pass to a shell invocation? LieGrue, strub --- On Fri, 6/17/11, Jörg

An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Benson Margulies
I find myself looking to create a plugin where, as part of execution, it wants to create a classpath composed of the declared dependencies. Can anyone suggest a model? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Jochen Wiedmann
The maven-compiler-plugin should do exactly that. On Wed, Jun 15, 2011 at 5:09 PM, Benson Margulies bimargul...@gmail.com wrote: I find myself looking to create a plugin where, as part of execution, it wants to create a classpath composed of the declared dependencies. Can anyone suggest

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Mark Struberg
bimargul...@gmail.com wrote: From: Benson Margulies bimargul...@gmail.com Subject: An example of a plugin that uses the dependencies/ as an actual live classpath ... To: Maven Users List users@maven.apache.org Date: Wednesday, June 15, 2011, 3:09 PM I find myself looking to create a plugin where

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Benson Margulies
should do exactly that. On Wed, Jun 15, 2011 at 5:09 PM, Benson Margulies bimargul...@gmail.com wrote: I find myself looking to create a plugin where, as part of execution, it wants to create a classpath composed of the declared dependencies. Can anyone suggest a model

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Stephen Connolly
find myself looking to create a plugin where, as part of execution, it wants to create a classpath composed of the declared dependencies. Can anyone suggest a model? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Benson Margulies
-plugin should do exactly that. On Wed, Jun 15, 2011 at 5:09 PM, Benson Margulies bimargul...@gmail.com wrote: I find myself looking to create a plugin where, as part of execution, it wants to create a classpath composed of the declared dependencies. Can anyone suggest a model

RE: An example of a plugin that uses the dependencies/ as an actual live classpath ...

2011-06-15 Thread Martin Gainty
-0400 Subject: Re: An example of a plugin that uses the dependencies/ as an actual live classpath ... From: bimargul...@gmail.com To: users@maven.apache.org Why? It just wants to construct a list of jars and pass them to the compiler, not actually include them in a classloader. Not that's

Formatting classpath in Manifest with dependency plugin

2011-05-23 Thread Atra
/outputFilterFile pathSeparator\u0020/pathSeparator fileSeparator//fileSeparator prefixlibs/prefix outputFileclasspath.properties/outputFile /configuration /plugin I get: libs/lib1.jar/u0020libs/lib2.jar And this leads to wrong classpath tag inside Manifest file

Re: Formatting classpath in Manifest with dependency plugin

2011-05-23 Thread Stephen Connolly
.jar/u0020libs/lib2.jar And this leads to wrong classpath tag inside Manifest file (/u0020 instead of whitespace). Is there a way so / file separator will not conflict with whitespace path separator? Thanks -- View this message in context: http://maven.40175.n5.nabble.com/Formatting

Re: Formatting classpath in Manifest with dependency plugin

2011-05-23 Thread Atra
I tried pathSeparator/pathSeparator but this didn't change anything. Looks like all \, being default Win file separators, are replaced with / and this bug whitespace character definition. -- View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest

Re: Formatting classpath in Manifest with dependency plugin

2011-05-23 Thread Stephen Connolly
character definition. -- View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418666.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Formatting classpath in Manifest with dependency plugin

2011-05-23 Thread Atra
Unfortunately, using only CDATA with whitespace doesn't work either - default path separator ; will be used by the plugin -- View this message in context: http://maven.40175.n5.nabble.com/Formatting-classpath-in-Manifest-with-dependency-plugin-tp4418636p4418799.html Sent from the Maven - Users

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

2011-05-13 Thread Owen Jacobson
().info(Plugin CP = + sb.toString()); On Thu, Apr 28, 2011 at 9:57 PM, Ryan Connolly ryn...@gmail.com wrote: Owen: As far as getting a nice pre-crafted classpath element string from the plugin's dependencies, I am not aware of an API call that will do that like we can

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

2011-04-29 Thread Ryan Connolly
) { sb.append(dep.getFile().toURI()).append(File.pathSeparator); } getLog().info(Plugin CP = + sb.toString()); On Thu, Apr 28, 2011 at 9:57 PM, Ryan Connolly ryn...@gmail.com wrote: Owen: As far as getting a nice pre-crafted classpath element string from the plugin's

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

2011-04-29 Thread Jörg Schaible
before running Apache DS and then to reset it back to its real value after the server starts. However, in order to do this, I need to build a classpath-like string containing the JARs Apache DS needs. These JARs are already listed in the plugin's dependencies (and when the plugin runs

Re: mvn test and classpath: do I need to execute install?

2011-04-28 Thread leojhartiv-2
for projects... [DEBUG] Adding managed dependencies for top [DEBUG] module1:jar:4.3.000.CE-SNAPSHOT [DEBUG] module2:jar:4.3.000.CE-SNAPSHOT ... [DEBUG] test classpath classpath: [DEBUG] C:\workspace\top\module2\target\test-classes [DEBUG] C:\workspace\top\module2\target\classes [DEBUG] C:\.m2

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

2011-04-28 Thread Owen Jacobson
and then to reset it back to its real value after the server starts. However, in order to do this, I need to build a classpath-like string containing the JARs Apache DS needs. These JARs are already listed in the plugin's dependencies (and when the plugin runs, are available in the local repository

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

2011-04-28 Thread Martin Gainty
l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: owen.jacob...@grimoire.ca Subject: Building a -classpath

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

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

mvn test and classpath: do I need to execute install?

2011-04-20 Thread leojhartiv-2
enough to use the target folder of module1 in its classpath to execute those tests or does module2 always use what has been installed in the local repository? Thanks! -- View this message in context: http://maven.40175.n5.nabble.com/mvn-test-and-classpath-do-I-need-to-execute-install

Re: mvn test and classpath: do I need to execute install?

2011-04-20 Thread Wayne Fay
So I'm wondering: do I need to actually use the install for modules to know about changes to their dependencies?  In other words, could I just do: -Navigate to top -Execute mvn clean test and module2 would be smart enough to use the target folder of module1 in its classpath to execute

Re: mvn test and classpath: do I need to execute install?

2011-04-20 Thread leojhartiv-2
So just so I understand completely: if module2 depends on module1 and I execute mvn clean test at the top shared parent, the classpath for module2 would look at module1/target/classes vs m2-repo...module1.jar. Correct? -- View this message in context: http://maven.40175.n5.nabble.com/mvn-test

Re: mvn test and classpath: do I need to execute install?

2011-04-20 Thread Wayne Fay
if module2 depends on module1 and I execute mvn clean test at the top shared parent, the classpath for module2 would look at module1/target/classes vs m2-repo...module1.jar.  Correct? Yes, and you can confirm this via mvn -X clean test which will show the actual classpaths that are being used

Depenent Jar files not copied into Bundle's classpath

2011-03-31 Thread rmahanti
, org.apache.servicemix.common.osgi, *;scope=compile|runtime;inline=false target/dependency true true Here if i use element ,then all the dependency jar files are going into the classpath of the current bundle. But again the the dependency bundle is recursively dependent on many other bundles

Re: Depenent Jar files not copied into Bundle's classpath

2011-03-31 Thread Stephen Connolly
,then all the dependency jar files are going into the classpath of the current bundle. But again the the dependency bundle is recursively dependent on many other bundles or jar files,but these recursive dependent files are not coming into the classpath of current bundle. Please suggest me

Re: Depenent Jar files not copied into Bundle's classpath

2011-03-31 Thread Stephen Connolly
if i use  element ,then all the dependency jar files are going into the classpath of the current bundle. But again the the dependency bundle is recursively dependent on many other bundles or jar files,but these recursive dependent files are not coming into the classpath of current bundle

Re: Depenent Jar files not copied into Bundle's classpath

2011-03-31 Thread Wayne Fay
Have a look at your post again... you appear to be using nabble to post to the mailing list and are not actually subscribed to the mailing list directly. Nabble helpfully removes all the XML tags in your post... rendering the cut and paste worse than useless. either I finally got sufficiently

Updating a properties file using Maven and project classpath information

2011-03-09 Thread Benoît DEL BASSO
Hello, I'm trying to update a properties file using classpath information from a POM file. For example my POM defines a dependency: dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.4/version /dependency I would like to update the private.properties file

Re: Updating a properties file using Maven and project classpath information

2011-03-09 Thread Wayne Fay
I would like to update the private.properties file (Netbeans) so that it has: maven.dependency.classpath=/home/bdelbass/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar I don't know this file, but you seem to suggest it is a Netbeans-specific file? If so, there may be an

Re: Updating a properties file using Maven and project classpath information

2011-03-09 Thread Ron Wheeler
else. Ron On 09/03/2011 8:42 AM, Benoît DEL BASSO wrote: Hello, I'm trying to update a properties file using classpath information from a POM file. For example my POM defines a dependency: dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.4/version /dependency I

Re: Updating a properties file using Maven and project classpath information

2011-03-09 Thread Benoît DEL BASSO
that is different from everything else. Ron On 09/03/2011 8:42 AM, Benoît DEL BASSO wrote: Hello, I'm trying to update a properties file using classpath information from a POM file. For example my POM defines a dependency: dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId

Re: Updating a properties file using Maven and project classpath information

2011-03-09 Thread Wayne Fay
As discussed there [1], the main issue is that Netbeans can either recognize the project as a Maven one or a JavaFX one but not both. In one case, you lose the JavaFXScript syntax helper from Netbeans JavaFX module, and on the other case you lose Maven dependency resolution. Sounds like a

Re: Updating a properties file using Maven and project classpath information

2011-03-09 Thread Ron Wheeler
On 09/03/2011 11:52 AM, Wayne Fay wrote: As discussed there [1], the main issue is that Netbeans can either recognize the project as a Maven one or a JavaFX one but not both. In one case, you lose the JavaFXScript syntax helper from Netbeans JavaFX module, and on the other case you lose Maven

Java process creation with ant task fails in windows : long classpath.

2011-02-15 Thread Pradeep Fernando
hi, I'm executing an ant task inside my maven pom files for code generation purposes. (the code-generation tool is wsdl2java). during the process I fork new java process (within an ant task ) and pass the classpath along with wsdl. I have given the classpath as {maven.compile.classpath

Re: Java process creation with ant task fails in windows : long classpath.

2011-02-15 Thread Wayne Fay
This is well known issue, in the windows environment. right now i'm working around this issue using a custom classpath as a system property and accessing it, if i'm in windows environment. It is not a nice solution. You can read about how Surefire deals with this problem, especially

Re: Java process creation with ant task fails in windows : long classpath.

2011-02-15 Thread Pradeep Fernando
hi wayne, On Tue, Feb 15, 2011 at 11:42 PM, Wayne Fay wayne...@gmail.com wrote: This is well known issue, in the windows environment. right now i'm working around this issue using a custom classpath as a system property and accessing it, if i'm in windows environment. It is not a nice

Re: Eclipse Plugin - how to remove M2_REPO classpath variable (re-post)

2011-02-12 Thread Barrie Treloar
On Thu, Feb 10, 2011 at 5:55 AM, Wayne Fay wayne...@gmail.com wrote: CL sent this to me privately, forwarding back to the list, I have nothing to add... -- Forwarded message -- Date: Tue, Feb 8, 2011 at 4:33 PM Subject: RE: Eclipse Plugin - how to remove M2_REPO classpath

Fwd: Eclipse Plugin - how to remove M2_REPO classpath variable (re-post)

2011-02-09 Thread Wayne Fay
CL sent this to me privately, forwarding back to the list, I have nothing to add... -- Forwarded message -- Date: Tue, Feb 8, 2011 at 4:33 PM Subject: RE: Eclipse Plugin - how to remove M2_REPO classpath variable (re-post) but nothing is stopping you from doing it manually

Re: Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-07 Thread Benjamin Bentmann
Kai Hackemesser wrote: In the project we try to build a runnable jar that depends on libraries that are assembled into a lib folder. Under Maven 2(.2.1) we have no problem with that, the runnable jar works as designed. The same project build under Maven 3.0.2 currently builds the project

Re: Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-07 Thread Stevo Slavić
There's already a bug reported http://jira.codehaus.org/browse/MASSEMBLY-334 and there is ugly but functional workaround: use maven-war-plugin's manifest mojo to generate manifest file with classpath, and then configure archiver to use generated manifest ( see this example http://maven.apache.org

Re: Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-07 Thread Dennis Lundberg
On 2011-02-07 00:27, Kai Hackemesser wrote: Hi there, We try to migrate to Maven 3.0 here but one assembly causes us headache. In the project we try to build a runnable jar that depends on libraries that are assembled into a lib folder. Under Maven 2(.2.1) we have no problem with that,

Re: Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-07 Thread Stevo Slavić
Doesn't work for me with https://repository.apache.org/content/groups/snapshots/org/apache/maven/plugins/maven-assembly-plugin/2.2.1-SNAPSHOT/maven-assembly-plugin-2.2.1-20110203.204308-1.jar - classpath still nowhere to be seen. Checking out maven-assembly-plugin trunk (r1068108), installing

Re: Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-07 Thread Dennis Lundberg
On 2011-02-07 22:41, Stevo Slavić wrote: Doesn't work for me with https://repository.apache.org/content/groups/snapshots/org/apache/maven/plugins/maven-assembly-plugin/2.2.1-SNAPSHOT/maven-assembly-plugin-2.2.1-20110203.204308-1.jar - classpath still nowhere to be seen. Checking out maven

Eclipse Plugin - how to remove M2_REPO classpath variable (re-post)

2011-02-07 Thread Kim, ChongLim
Re-post - Not seeing first post show up anywhere, sorry if this re-post is spam. Does anyone know a way to remove the M2_REPO classpath variable that was added using mvn -Declipse.workspace=pathtoworkspace eclipse:configure-workspace? (I'm created another workspace and would like to clean

Re: Eclipse Plugin - how to remove M2_REPO classpath variable (re-post)

2011-02-07 Thread Wayne Fay
Re-post - Not seeing first post show up anywhere, sorry if this re-post is spam. Does anyone know a way to remove the M2_REPO classpath variable that was added using More than one person replied to your original post: http://maven.40175.n5.nabble.com/Maven-Eclipse-Plugin-how-to-remove-M2

Re: Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-07 Thread Kai Hackemesser
/plugins/maven-assembly-plugin/2.2.1-SNAPSHOT/maven-assembly-plugin-2.2.1-20110203.204308-1.jar - classpath still nowhere to be seen. Checking out maven-assembly-plugin trunk (r1068108), installing it, and making use of it didn't help as well. OK, thanks for testing. Regards, Stevo

Maven 3.0 jar assembly: classpath in runnable jar manifest is missing

2011-02-06 Thread Kai Hackemesser
Hi there, We try to migrate to Maven 3.0 here but one assembly causes us headache. In the project we try to build a runnable jar that depends on libraries that are assembled into a lib folder. Under Maven 2(.2.1) we have no problem with that, the runnable jar works as designed. The same project

Maven Eclipse Plugin - how to remove M2_REPO classpath variable

2011-02-05 Thread Kim, ChongLim
Does anyone know a way to remove the M2_REPO classpath variable that was added using mvn -Declipse.workspace=pathtoworkspace eclipse:configure-workspace? (I'm created another workspace and would like to clean up the first workspace.) I've tried running mvn eclipse:clean before re-running

Re: Maven Eclipse Plugin - how to remove M2_REPO classpath variable

2011-02-05 Thread Wayne Fay
Does anyone know a way to remove the M2_REPO classpath variable that was added using  mvn -Declipse.workspace=pathtoworkspace eclipse:configure-workspace? I don't know how (or even if) you can do this with the Eclipse plugin, but nothing is stopping you from doing it manually by editing

RE: Maven Eclipse Plugin - how to remove M2_REPO classpath variable

2011-02-05 Thread Ludwig Magnusson
: Re: Maven Eclipse Plugin - how to remove M2_REPO classpath variable Does anyone know a way to remove the M2_REPO classpath variable that was added using mvn -Declipse.workspace=pathtoworkspace eclipse:configure-workspace? I don't know how (or even if) you can do this with the Eclipse

Re: surefire classpath problems with maven 3 parallel

2011-01-31 Thread fmeili
With further analyzing I found that in case of the error (ClassNotFound) the corresponding JAR file is really missing in the compiler class path while the test classes are compiled. On some build runs, the junit jar was not in the compiler classpath, on some other build runs, the mockito jar file

Plugin Classpath Resources Question

2011-01-26 Thread John Prystash
Hi All, I'm working on a plugin, written in Groovy, where when it's invoked I want to load resources off the classpath of the project. For example, when the plugin is configured like so: configuration requestrequest.xml/request /configuration From inside my plugin code, I want

Re: Plugin Classpath Resources Question

2011-01-26 Thread Benjamin Bentmann
John Prystash wrote: From inside my plugin code, I want to be able to load the text of the resource, contained in src/main/resources/request.xml (and presently in target/classes): [...] It appears to be that while the resource is on the classpath of the project using the plugin, its

Re: surefire classpath problems with maven 3 parallel

2011-01-24 Thread fmeili
idea how I may isolate the problem? b) Very interesting, If I don't specify the 4.7 provider explicitly, this problem has gone. Thanks, Frank -- View this message in context: http://maven.40175.n5.nabble.com/surefire-classpath-problems-with-maven-3-parallel-tp3346469p3354341.html Sent from

Re: surefire classpath problems with maven 3 parallel

2011-01-24 Thread Kristian Rosenvold
ma., 24.01.2011 kl. 00.19 -0800, skrev fmeili: Do you have any other idea how I may isolate the problem? TestNG dependencies can also cause the same behaviour as I described in my original mail (wrt junit3). If that fails, there is no other way than to do as I said: Surefire stores the

surefire classpath problems with maven 3 parallel

2011-01-18 Thread fmeili
this message in context: http://maven.40175.n5.nabble.com/surefire-classpath-problems-with-maven-3-parallel-tp3346469p3346469.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: surefire classpath problems with maven 3 parallel

2011-01-18 Thread Kristian Rosenvold
Den 18.01.2011 18:03, skrev fmeili: a) The symptoms you are encountering seem to indicate that you're getting testng or junit3 in somewhere on your classpath. As to why this is happening, we'll have to try some detective work: The most significant difference between serial and parallel maven

dependency:build-classpath seems to ignore configuration

2011-01-17 Thread John Anderson
I am trying to use dependency:build-classpath. If I run mvn dependency:analyze all seems fine, but if I do mvn dependency:build-classpath, it seems to ignore my configuration. For example, the scope and outputFileFilter settings are ignored in the second case. Am I doing something wrong

Re: dependency:build-classpath seems to ignore configuration

2011-01-17 Thread Brian Fox
i don't think the classpath is filtered based on those values in this goal, it just dumps the actual classpath that would match the desired scope. On Mon, Jan 17, 2011 at 10:52 AM, John Anderson dayt...@comcast.net wrote: I am trying to use dependency:build-classpath. If I run mvn

Re: Problem with classpath for tests

2010-12-23 Thread Asmann, Roland
The problem here is that Hibernate doesn't scan my EntityBeans/doesn't find any annotations on them. This in turn means that my DB isn't initialized and my tests can't run! Isn't there anybody out there that has had this problem after the classpath-change? On 20.12.2010 14:49, Asmann

Problem with classpath for tests

2010-12-20 Thread Asmann, Roland
that is failing. Now, I asked the developer and he told me he is on Maven 2.0.9... When I run with that version, everything works as it should! From the output generated by Maven, I can see that there is a difference in the classpath for the tests. It appears that starting with 2.0.10

Re: Problem with classpath for tests

2010-12-20 Thread Asmann, Roland
generated by Maven, I can see that there is a difference in the classpath for the tests. It appears that starting with 2.0.10, the 'target/classes' and 'target/test-classes' are no longer the first entries on the classpath, but the last. This seems to be the problem I'm having, and tbh I have

Re: Re : Re : A classpath issue ?

2010-12-12 Thread Wayne Fay
I was using the default install of maven on the iMac and I forgot to copy the settings.xml file I had on Linux. I guess I'm a little bit curious now about the contents of your settings.xml file... Must be a profile that does something with your spring xml file? Wayne

Re : Re : A classpath issue ?

2010-12-11 Thread Stephane-3
mistake.. Kind Regards, Stephane De : Wayne Fay [via Maven] ml-node+3301286-284534167-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Sam 11 décembre 2010, 7h 12min 46s Objet : Re: Re : A classpath issue ? And, again on the iMac, if this time

A classpath issue ?

2010-12-10 Thread Stephane-3
Hi, I have a maven build that is doing fine on my old linux box. Trying now to run it in the new iMac environment, I get an issue with a spring xml file not being found. It feels like the classpath is not correctly set. The pom.xml file is: project xmlns=http://maven.apache.org/POM/4.0.0

Re: A classpath issue ?

2010-12-10 Thread Stephane-3
-xr-x 3 stephane staff 102 10 déc 17:43 com stephane:learnintouch$ The file has not been copied into the target directory. Strange.. -- View this message in context: http://maven.40175.n5.nabble.com/A-classpath-issue-tp3300543p3300609.html Sent from the Maven - Users mailing list archive

Re: A classpath issue ?

2010-12-10 Thread Stephane-3
: mac os x version: 10.6.5 arch: x86_64 Family: mac -- View this message in context: http://maven.40175.n5.nabble.com/A-classpath-issue-tp3300543p3300635.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: A classpath issue ?

2010-12-10 Thread Anders Hammar
iMac environment, I get an issue with a spring xml file not being found. It feels like the classpath is not correctly set. The pom.xml file is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http

Re: A classpath issue ?

2010-12-10 Thread Anders Hammar
an issue with a spring xml file not being found. It feels like the classpath is not correctly set. The pom.xml file is: 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 http

Re : A classpath issue ?

2010-12-10 Thread Stephane-3
[via Maven] ml-node+3301035-833614543-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Ven 10 décembre 2010, 22h 55min 14s Objet : Re: A classpath issue ? Hmm, I now see that you say it works on Linux. Maybe the resources section outside the profiles isn't being replaced

Re : A classpath issue ?

2010-12-10 Thread Stephane-3
. De : Anders Hammar [via Maven] ml-node+3301035-833614543-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Ven 10 décembre 2010, 22h 55min 14s Objet : Re: A classpath issue ? Hmm, I now see that you say it works on Linux. Maybe the resources section outside

Re : A classpath issue ?

2010-12-10 Thread Stephane-3
décembre 2010, 22h 55min 14s Objet : Re: A classpath issue ? Hmm, I now see that you say it works on Linux. Maybe the resources section outside the profiles isn't being replaced but added to? Check the effective pom and you'll know for sure. /Anders On Fri, Dec 10, 2010 at 22:52, Anders Hammar

Re: Re : A classpath issue ?

2010-12-10 Thread Wayne Fay
And, again on the iMac, if this time I don't specify the integration-test profile on the command line with the specified profile replacing the standard resources directory. Stranges this is happening on this OSX maven.. Run mvn -X help:effective-pom and compare the versions of EVERYTHING.

Accessing to the maven classpath from Ant build file

2010-12-08 Thread abousso...@gmail.com
' / But when I launch my Ant build file, ant is looking for the file only in my project and not in the Maven classpath. Thanks -- View this message in context: http://maven.40175.n5.nabble.com/Accessing-to-the-maven-classpath-from-Ant-build-file-tp3297133p3297133.html Sent from the Maven - Users

Re: Accessing to the maven classpath from Ant build file

2010-12-08 Thread Anders Hammar
And I'm trying to reference the file I need (JPA.ecore) from the Ant file like this : property name=myModelUri value='/JPA.ecore' / But when I launch my Ant build file, ant is looking for the file only in my project and not in the Maven classpath. Thanks -- View this message

Re: Accessing to the maven classpath from Ant build file

2010-12-08 Thread abousso...@gmail.com
Thanks, I see but I don't want to launch my build file from maven. Any other idea ? -- View this message in context: http://maven.40175.n5.nabble.com/Accessing-to-the-maven-classpath-from-Ant-build-file-tp3297133p3297329.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Accessing to the maven classpath from Ant build file

2010-12-08 Thread Anders Hammar
.n5.nabble.com/Accessing-to-the-maven-classpath-from-Ant-build-file-tp3297133p3297329.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

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