Re: Parent project version

2008-01-30 Thread Erez Nahir
I also think as Stephen, Having an option to specify parent with relative path will be very helpfull, I'm sure a solution can be found to provide this functionality. Maybe something like having both relativePath and version and give precedence to relativePath such that if it is found, it will be

Re: Conflicting Jar Names

2008-01-30 Thread Simon Kitching
This looks to me like a bug (or at least an oversight) in the dependency plugin. I presume this is what you are using to copy all the jars into a directory before building your installer? Duplicate artifactIds are not normally a problem for maven; the classpath it builds for compiling,

Re: [m2] when is the dashboard going to be out of snapshot?

2008-01-30 Thread dvicente
Hi all, i'm the project leader of dashboard plugin. To release the dashboard, i must release the 2.0 JDepend plugin which is in snapshot version ( and i'm not the project leader of this plugin), i must correct 2 issues ( one with 1.9 cobertura problem and the new one with 2.4 surefire NPE).

Re: Parent project version

2008-01-30 Thread Heinrich Nirschl
On Jan 30, 2008 8:59 AM, Erez Nahir [EMAIL PROTECTED] wrote: I also think as Stephen, Having an option to specify parent with relative path will be very helpfull, I'm sure a solution can be found to provide this functionality. Maybe something like having both relativePath and version and give

Re: can maven run java program using dependence artifact information as classpath?

2008-01-30 Thread Rex Huang
the application use System.getProperty(java.class.path) to get classpath. Rex On Jan 30, 2008 10:46 AM, Rex Huang [EMAIL PROTECTED] wrote: exec-maven-plugin is good, but in my case, the application also run javac to generate jar file, and it use its classpath instead of dependency

Re: Parent project version

2008-01-30 Thread Erez Nahir
I assume that's the case if you are with SVN (not my case, unfortunately :-). I thing maven should be version control agnostic, so, if the parent is found in the relative path, use it, if not (either if the parent is not checked out or if it is not in the path from any other reason) search the

Re: Conflicting Jar Names

2008-01-30 Thread Steve Found
Hi Jeff, Thanks for this but it is something we already tried. Although that does change the name of the generated jar file, the name is lost when it gets placed into the maven repository. When it gets installed, the name reverts to ${artifactId}-${version}.jar in a directory mad from

Re: Conflicting Jar Names

2008-01-30 Thread Steve Found
Thanks Lee... I had a feeling this would be the case :D So I have witten myself a perl script to go around all the poms and change the artifactId's for all the dependancies. The joy of legacy code :) Lee Meador wrote: 1 isn't going to work because of how Maven finds files in the repo by

Re: can maven run java program using dependence artifact information as classpath?

2008-01-30 Thread Rex Huang
exec-maven-plugin is good, but in my case, the application also run javac to generate jar file, and it use its classpath instead of dependency information. I use java to run it with classpath is ok. BR//Rex On Jan 29, 2008 7:53 PM, Wayne Fay [EMAIL PROTECTED] wrote: The exec-maven-plugin

Re: can maven run java program using dependence artifact information as classpath?

2008-01-30 Thread Rex Huang
your plugin is interesting, but how to add argument to run application? BR//Rex On Jan 29, 2008 11:16 PM, Nick Stolwijk [EMAIL PROTECTED] wrote: I worked with the Application Assembler Plugin [1] which generates a directory under target, with a startup script, a lib directory with all the

Re: [m2] when is the dashboard going to be out of snapshot?

2008-01-30 Thread david vicente
Hi all, i'm the project leader of dashboard plugin. To release the dashboard, i must release the 2.0 JDepend plugin which is in snapshot version ( and i'm not the project leader of this plugin), i must correct 2 issues ( one with 1.9 cobertura problem and the new one with 2.4surefire NPE). When

Odd behaviour of maven resources plugin

2008-01-30 Thread Ashley Williams
Hi, I'm trying to use the resources plugin in order to filter the out of the box jboss, as I wish to rename the 'all' server to a different name and also strip out unused parts. So naturally I've added a configuration to the pom.xml as follows: resource !-- just the jboss application

[solved] Re: failed to deploy mojo snapshot

2008-01-30 Thread nicolas de loof
I fixed this by setting parent POM to mojo-3 2008/1/30, nicolas de loof [EMAIL PROTECTED]: Hello, I tried to deploy a mojo snapshot on codehaus repository and get strange messages : INFO: Redirect requested but followRedirects is disabled ... and the repository is not updated ! 1. How

failed to deploy mojo snapshot

2008-01-30 Thread nicolas de loof
Hello, I tried to deploy a mojo snapshot on codehaus repository and get strange messages : INFO: Redirect requested but followRedirects is disabled ... and the repository is not updated ! 1. How to enable followRedirects ? 2. Why did I just get an INFO message and not a warning / error ?

Re: Conflicting Jar Names

2008-01-30 Thread Steve Found
If it did that, it would be marvellous :) Simon Kitching wrote: This looks to me like a bug (or at least an oversight) in the dependency plugin. I presume this is what you are using to copy all the jars into a directory before building your installer? Duplicate artifactIds are not normally a

RE: Make META-INF optional

2008-01-30 Thread John Coleman
Yes thanks for that tip - it did not work until I declared the type in the dependency plugin config I use to unpack it as well. John -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 14:13 To: Maven Users List Subject: Re: Make META-INF

can maven package all the dependence jar files in the war file?

2008-01-30 Thread Rex Huang
I want to generate a war file, the dependence jar files are needed to package in it. and also the class files in WEB-INF\classes, I want to package it in a jar file. all the jar files should be put in WEB-INF\lib. Can I make it work? BR//Rex

Writing the output of a command execution into a Maven Variable, so that it can be used later

2008-01-30 Thread Christian Weber
Hi all, i have a Problem in writing the Output of a Command-Execution into a Maven Variable, so that it can be used later. I successfully have executed the following into a maven-antrun-plugin: -- Code Snippet plugin

Re: Re: archetypes velocity [Virus checked]

2008-01-30 Thread Raphaël Piéroni
Velocity is indicated in the plugin site in the faq IIRC. Raphaël 2008/1/30, [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks for your patience and support Raphaël ! I had NO idea that the archetype descriptor is in fact a velocity template. Since I started to read sources concerning archetype

Re: Conflicting Jar Names

2008-01-30 Thread Thierry Lach
I'd imagine that this would cause an issue when making a distribution, or a war, also. On Jan 30, 2008 3:42 AM, Simon Kitching [EMAIL PROTECTED] wrote: This looks to me like a bug (or at least an oversight) in the dependency plugin. I presume this is what you are using to copy all the jars

RE: can maven package all the dependence jar files in the war file?

2008-01-30 Thread nicklist
All Java files under src/main/java will be compiled into WEB-INF/classes in your final war. (To be honest, all java files will be compiled to target/classes, all resources from src/main/resources will be copied (and filtered) to target/classes and finally target/classes will be copied to

Re: can maven package all the dependence jar files in the war file?

2008-01-30 Thread Wayne Fay
Don't put any Java code in your WAR project, instead all code must come from other projects that you depend on. Assuming this is true, this is just how the WAR plugin works with default configuration. Personally we are building EARs so I don't want my WARs loaded up with all those JARs. Instead I

maven renaming jar files

2008-01-30 Thread amit kumar
Hi,. When I am packaging a WAR project, I am seeing the following thing happening... [DEBUG] Processing: commons-logging-1.1.jar [DEBUG] Duplicate found: commons-logging-1.1.jar [DEBUG] Renamed to: commons-logging-commons-logging-1.1.jar Any idea why this happens and how to avoid this? I am

Re: maven renaming jar files

2008-01-30 Thread Olivier Lamy
Looks weird. Do you use a released version ? or the current snapshot ? Could you load an issue in jira with a simple project which reproduce this ? -- Olivier 2008/1/30, amit kumar [EMAIL PROTECTED]: Hi,. When I am packaging a WAR project, I am seeing the following thing happening...

Re: Writing the output of a command execution into a Maven Variable, so that it can be used later

2008-01-30 Thread Wayne Fay
You can do this with a real Mojo by attaching the variable to Maven Project. But you can't do this in a simple Antrun plugin config. So you'll need to write some Java or Groovy etc. Wayne On 1/30/08, Christian Weber [EMAIL PROTECTED] wrote: Hi all, i have a Problem in writing the Output of a

RE: can maven package all the dependence jar files in the war file?

2008-01-30 Thread Blue.Thomas
Rex, I think you can set archiveClasses to true if you want the WAR's class files in a jar file: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveCl asses -Original Message- From: Rex Huang [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 7:40 AM To:

Where is plugin configuration information?

2008-01-30 Thread Sri Sankaran
Can you please point me to where I can find a listing of a plugin's configurable properties? For example, I wanted the war plugin to use ${basedir}/build as the output directory (instead of the default target directory) but was unable to find out how to do so by reading the

Re: Where is plugin configuration information?

2008-01-30 Thread Stefan Reuter
Sri Sankaran wrote: Can you please point me to where I can find a listing of a plugin's configurable properties? For example, I wanted the war plugin to use ${basedir}/build as the output directory (instead of the default target directory) but was unable to find out how to do so by

Re: Where is plugin configuration information?

2008-01-30 Thread Sri Sankaran
D'oh! Thanks. I just noticed that this also accessible by following the Goals link on the nav bar. Sri Stefan Reuter wrote: Sri Sankaran wrote: Can you please point me to where I can find a listing of a plugin's configurable properties? For example, I wanted the war plugin to use

Re: Where is plugin configuration information?

2008-01-30 Thread Erez Nahir
BTW, you can also type mvn help:describe -DgroupId=pluginGroupId -DartifactId=pluginArtifactId -Dversion=pluginVersion -Dfull=true my 2c, Erez On Jan 30, 2008 10:07 PM, Sri Sankaran [EMAIL PROTECTED] wrote: D'oh! Thanks. I just noticed that this also accessible by following the Goals link

Re: A Hello World in ejb3

2008-01-30 Thread Angelo Chen
Hi Jacek, Thanks, I checked out that trunk, and mvn compile, everything compiles then mvn package, I got this error: org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.framework/geronimo-gbean-deployer/2.1-SNAPSHOT/car failed at

Maven Eclipse plugin does not evaluate systemPath dependency

2008-01-30 Thread zzzz8
I have the following in my pom.xml: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPath${AF_CLASSPATH}/systemPath /dependency The ${AF_CLASSPATH} should evaluate the environment

Re: Maven Eclipse plugin does not evaluate systemPath dependency

2008-01-30 Thread Arnaud HERITIER
If it is an environment variable it should be ${env.AF_CLASSPATH} ?? Did you try ? Arnaud On Jan 30, 2008 11:49 PM, 8 [EMAIL PROTECTED] wrote: I have the following in my pom.xml: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId

Re: Maven Eclipse plugin does not evaluate systemPath dependency

2008-01-30 Thread zzzz8
Hi Arnaud, Thanks for the info. I tried that, too. Unfortunately, that didn't work either. Again, both ${AF_CLASSPATH} and ${env.AF_CLASSPATH} work from the command line. Arnaud HERITIER wrote: If it is an environment variable it should be ${env.AF_CLASSPATH} ?? Did you try ? Arnaud

Re: Maven Eclipse plugin does not evaluate systemPath dependency

2008-01-30 Thread zzzz8
Oops, I forgot to post the Eclipse error displayed: Required library cannot denote external folder: 'C:\oracle\apps' for project 'MyProgram' Obviously, c:\oracle\apps points to a class folder... hmm. Arnaud HERITIER wrote: If it is an environment variable it should be ${env.AF_CLASSPATH}

Re: Maven Eclipse plugin does not evaluate systemPath dependency

2008-01-30 Thread Wayne Fay
Can you perhaps jar up the classes in that path, and then specify the full jar name, or even better check it into your local Maven repo cache using install:install-file? Wayne On 1/30/08, 8 [EMAIL PROTECTED] wrote: Oops, I forgot to post the Eclipse error displayed: Required library

surefire and initial context

2008-01-30 Thread Matthew Shaw
Hi there, I am running maven2 and surefire plugin 2.4 to execute junit4 style tests. I am using spring2.5 and creating a jndiTemplate bean with the following properties to talk to a weblogic 10 server message queue. bean id=jndiTemplate class=org.springframework.jndi.JndiTemplate

Re: Maven Eclipse plugin does not evaluate systemPath dependency

2008-01-30 Thread zzzz8
Unfortunately, the class folder contains over 100,000 .class files (typical Oracle fat)... and since jars can only contain 65K files, this will not work (I'm using Java 5). I guess I can put it in two or more jar files, but that's pretty messy. Also, that still doesn't address why this doesn't