Can tag in war plugin be used with Maven 1.0 ?

2011-11-23 Thread sundeepmalali
Hi, We are using Maven 1 and have a need to provide a war dependency to a jar. I found that this could be addressed using Maven war plug-in's 'attachClasses' tag. I have the following snippet in Project.xml of the war module. But it does not create the jar artifact which contains the class files /

Re: dependency:get complains repositoryUrl missing or invalid

2011-11-23 Thread Olivier Lamy
A space maybe before the second -D ? -- Olivier Le 24 nov. 2011 06:26, "Rice Yeh" a écrit : > Hi, > I am using dependency:get to install a remote jar from the central > repository to my local repository in a folder without a pom.xml with the > following command: > > mvn dependency:get -X > -Dr

dependency:get complains repositoryUrl missing or invalid

2011-11-23 Thread Rice Yeh
Hi, I am using dependency:get to install a remote jar from the central repository to my local repository in a folder without a pom.xml with the following command: mvn dependency:get -X -DrepositoryUrl=http://repo1.maven.org/maven2-DgroupId=org.apache.cxf -DartifactId=cxf-rt-frontend-jaxrs -Dver

Classpath and Properties Files

2011-11-23 Thread Ari King
I've configured my application to search for configuration details in properties files located on the classpath. Does anyone know how to configure maven so that when "jetty:run" is executed it looks for properties files in "${user.home}/${project.artifactId}/"? Thanks. -Ari -

jetty-maven-plugin seems to be looking in wrong places for artifacts

2011-11-23 Thread David Hoffer
I have a multi-module maven project where the UI is Flex and the backend is Java using Jetty for server. I'm using maven-jetty-plugin to host in Jetty and it was working with version 6.1.25, i.e. I could run the run/etc goals in my war maven module. I have one maven module that creates the swf an

md5sum on maven 3.03 download not matching

2011-11-23 Thread Roger Spencer
Downloading maven 3.03 but the checksums are not matching up. Am I missing something? # md5sum apache-maven-3.0.3-bin.tar.gz 93d5d33c26f79977434bb16c4332a11f apache-maven-3.0.3-bin.tar.gz # cat apache-maven-3.0.3-bin.tar.gz.md5 507828d328eb3735103c0492443ef0f0 # md5sum apache-maven-3.0.3-bin.

Maven assembly plugin outputDirectory cannot contain an extension

2011-11-23 Thread glennsilverman
I have a fileSet element in my assembly.bin that looks like this: resources/running.war deploy/running.war **/* However, instead of putting the files in deploy/running.war, the plugin puts it in deploy/running, leaving off the extension. I need the extension on the output direc

Re: default-value are not injected

2011-11-23 Thread epicurio
I've noticed this exact same issue. It seems that you have to explicitly define the values for all your configuration parameters (either in the test plugin pom, or via setVariableValueInObject), even if they have a default-value specified. Or am I missing something as well? -- View this message in

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
Hi, after a longer fight with my build...didn't saw that i had a classloader problem (some dependencies which came via the new dependency (classes)) now this works perfect Many thanks for the support Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www

Re: md5sum on maven 3.03 download not matching

2011-11-23 Thread Roger Spencer
Never mind. My bad. Mirrors always seem to through off my wgets. Sorry to bother everyone. On Wed, Nov 23, 2011 at 12:52 PM, Roger Spencer wrote: > Think I had t subscribe to the mailing list before this goes through -- > which I've done. > > > On Wed, Nov 23, 2011 at 12:47 PM, Roger Spen

Re: md5sum on maven 3.03 download not matching

2011-11-23 Thread Roger Spencer
Think I had t subscribe to the mailing list before this goes through -- which I've done. On Wed, Nov 23, 2011 at 12:47 PM, Roger Spencer wrote: > Downloading maven 3.03 but the checksums are not matching up. Am I > missing something? > > # md5sum apache-maven-3.0.3-bin.tar.gz > 93d5d33c26f799774

Re: Maven assembly plugin outputDirectory cannot contain an extension

2011-11-23 Thread Karl Heinz Marbaise
Hi, have you tried to add a supplemental slash in outputDirectory ? Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/Maven-assem

Re: Need some help with mvn install command

2011-11-23 Thread Karl Heinz Marbaise
Hi, i've taken a look at your problemsthe first things which came to my mind is that the repository you defined (http://repository.jboss.org/nexus/content/groups/public//org/apache) contains only SNAPSHOT's of the maven-surefire-plugin which is wrong...(Maven Central is your friend)... Furthe

Maven assembly plugin outputDirectory cannot contain an extension

2011-11-23 Thread Glenn Silverman
Help! I have a fileSet element in my assembly.bin that looks like this: resources/running.war deploy/running.war **/* However, instead of putting the files in deploy/running.war, the plugin puts it in deploy/running, leaving off the extension. I need the extension

Need some help with mvn install command

2011-11-23 Thread Josh Gooding
Hey guys, I'm a little new to maven here so please bear with me. I'm using Maven 2.2.x on a windows system. I need some help here on a couple of different facets. First off I am using the Eclipse IDE, and I have the m2eclipse plugin installed. I have all of my env. variables and path set. whe

Re: Mojo configuration file

2011-11-23 Thread Jeff MAURY
You can bind the MavenProject to your mojo through the ${project} expression. But you can also bind the ${project.build.resources} expression to access the list of resources directories. Jeff MAURY On Wed, Nov 23, 2011 at 5:53 PM, krwell wrote: > I am developing an in-house mojo to be used acro

Mojo configuration file

2011-11-23 Thread krwell
I am developing an in-house mojo to be used across multiple projects. All of our in-house projects are built off a similar framework that requires an application.xml file. My problem is that mojo I am creating cannot find the application.xml file in the calling project. In the calling project th

Turning on degubbing switch (-g) with javac

2011-11-23 Thread ext-jaakko.t.paakkonen
Hi It should be really easy and straightforward thing to turn on the javac -g option to generate debug information, but for some funny reason I cannot do it. I tried "mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source compile" but what I get is [DEBUG] (f) compilerI

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
No attachments allowed? I'll send it to you directly. On 23.11.2011 17:08, Asmann, Roland wrote: > Here's a small example... Check if it works for you, because it > definitely does for me... > > Roland > > > On 23.11.2011 16:52, Karl Heinz Marbaise wrote: > > Hi, > > > > Asmann, Roland wrote >

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
Here's a small example... Check if it works for you, because it definitely does for me... Roland On 23.11.2011 16:52, Karl Heinz Marbaise wrote: > Hi, > > Asmann, Roland wrote > > > > If you use 'attachClasses', the JAR should NOT be created in the > > lib-folder, but in the target. When usi

Turning on degubbing switch (-g) with javac

2011-11-23 Thread ext-jaakko.t.paakkonen
Hi It should be really easy and straightforward thing to turn on the javac -g option to generate debug information, but for some funny reason I cannot do it. I tried "mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source compile" but what I get is [DEBUG] (f) compilerI

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
Hi, Asmann, Roland wrote > > If you use 'attachClasses', the JAR should NOT be created in the > lib-folder, but in the target. When using 'archiveClasses' it is created > in the lib-folder. It is correct that a file artifactid-version-classes.jar is created in the target folder (with attachCla

Re: copying jaxb.index file to classes folder

2011-11-23 Thread Wayne Fay
> I have jaxb.index files at certain packages in main/java folder. By default > maven does not copy this index file to classes folder in same package. So, > i added below resources plugin. > > But, it is not working. Any advice, pls? Can you not just move these files to src/main/resources? Wayne

copying jaxb.index file to classes folder

2011-11-23 Thread Prashant Neginahal
Hi, I have jaxb.index files at certain packages in main/java folder. By default maven does not copy this index file to classes folder in same package. So, i added below resources plugin. But, it is not working. Any advice, pls? org.apache.maven.plugins *maven*-resources-*plugin* 2.5

Re: How to include the *-sources.jar in a binary distribution?

2011-11-23 Thread Paolo Castagna
Hi Barrie Barrie Treloar wrote: > On Wed, Nov 23, 2011 at 7:16 AM, Paolo Castagna > wrote: >> >> Barrie Treloar wrote: >>> On Wed, Nov 23, 2011 at 3:49 AM, Paolo Castagna >>> wrote: >>> >>> There are 5 dimensions to this field >>> groupId, artifactId, type, version, classifier >>> >>> You have >

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
If you use 'attachClasses', the JAR should NOT be created in the lib-folder, but in the target. When using 'archiveClasses' it is created in the lib-folder. A dependency on that JAR should be on a JAR (not the WAR) and add classifier 'classes'. On 23.11.2011 14:42, Karl Heinz Marbaise wrote:

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
Hi, i've looked into the wrong location oversight ... sorry ;-( the jar file is created in the WEB-INF/lib/ folder and not in the target folder but now i'm trying to use it as dependency for my integration test module and use classes from therebut this seemed to be not working...

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
Strange, that's the same version I am using... Could you post a part of the POM and maybe some output you get? Maybe we can see something in there... On 23.11.2011 14:29, Karl Heinz Marbaise wrote: > Hi, > > > Asmann, Roland wrote > > > > I just tried this on an old project, and with only the

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Dirk Olmes
On 11/23/2011 01:10 PM, Karl Heinz Marbaise wrote: > Hi to all, > > i have a larger structure of modules which built a multi-module-build which > contains (an excerpt of my structure) the following two modules where my > problem is focused on: > > root > +-- mod-war > +-- mod-it > > where the

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
Hi, Asmann, Roland wrote > > I just tried this on an old project, and with only the > 'attacheClasses'-attribute, it works just fine for me... > > Might be a dumb question, but: are you using the right version of the > plugin? > it's not a dump question... ;-) I'm using maven-war-plugin (2.

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
I just tried this on an old project, and with only the 'attacheClasses'-attribute, it works just fine for me... Might be a dumb question, but: are you using the right version of the plugin? Roland On 23.11.2011 13:55, Karl Heinz Marbaise wrote: > hi, > > i have added both parameters to the co

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
hi, i have added both parameters to the configuration of the maven-war-plugin but it doesn't create a separate jar file...so no luck... Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View th

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
Hello Karl Heinz, Where does it say that the sources must be in src/main/webapp? As with all plugins, sources should be in src/main/java (like you have now). I think you need the parameter 'attachClasses', I am not 100% sure if 'archiveClasses' is necessary as well. I've used it before (albeit

[ANN] Maven Archetype 2.2 Released

2011-11-23 Thread Benson Margulies
The Maven team is pleased to announce the release of the Maven Archtetype 2.2 Architype is a collection of tools that allow you to create templates for maven projects. Release Notes - Maven Archetype - Version 2.2 ** Bug * [ARCHETYPE-390] - Several parameters of the create-from-project moj

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
Hi, first thanks for the answer, but the problem is my classes are located in the src/main/java area and not in src/main/webapp folderThe configuration for the war-plugin (archiveClasses) will only create a jar from classes in the src/main/webapp folder...where i don't have any classes only js

Re: Integration Test Dependency and WAR Packaging

2011-11-23 Thread Asmann, Roland
Hi Karl Heinz, Look at the configuration for the WAR-plugin, you can have it create a separate JAR for the classes, which you can then use as a dependency. Roland On 23.11.2011 13:10, Karl Heinz Marbaise wrote: > Hi to all, > > i have a larger structure of modules which built a multi-module-bu

Integration Test Dependency and WAR Packaging

2011-11-23 Thread Karl Heinz Marbaise
Hi to all, i have a larger structure of modules which built a multi-module-build which contains (an excerpt of my structure) the following two modules where my problem is focused on: root +-- mod-war +-- mod-it where the mod-war obviously contains the WAR module with the web-application (packa

Re: Maven surefire 2.11 release date

2011-11-23 Thread Kristian Rosenvold
Den 22.11.2011 13:35, skrev Stephen Connolly: On 22 November 2011 08:51, Kristian Rosenvold wrote: Den 22.11.2011 09:36, skrev Stephen Connolly (in private message): Does that major new piece include the per-method threading you promised you'd deliver for 2.10 in return for me consolidating t

Writing a component for a Maven Plugin

2011-11-23 Thread JF
I wish to write a component to inject into my Maven Mojo whichis running from an 'embedded' Maven deployment. By embedded I mean I am starting up Plexus and Maven like this... import org.apache.maven.Maven; import org.apache.maven.cli.MavenLoggerManager; import org.apache.maven.model.building.M