Replace the deploy phase with my own plugin

2009-11-25 Thread Gajo Csaba
Hello, I was looking at components.xml of the rpm plugin, and see that it uses Maven's standard deploy plugin for the deploy phase. Is there a way to replace that phase in the pom.xml with a plugin of my own, without modifying components.xml, or I have to change the plugin itself? Regards,

Maven - ant build.

2009-11-25 Thread pinky.muralidhar
Hi, I have few some modules in a project. Out of which few are maven build and few are ant builds. Using modules tag maven is only able to build sub modules pom.xml. Is there any way by which maven's pom.xml call submodules ant build. Thanks, Pinky Muralidhar. Please do not print this email

Re: phase war:war-Copying webapp resources overwrites already processed resources

2009-11-25 Thread David . Benes
Yes, we are filtering some resources using maven-resources-plugin, but not those resources that are being overwriten. I have already found a working solution. First of all, I defined in yui compressor alternative output directory in /target. For example /target/preassembly. Then I defined in

Re: Maven - ant build.

2009-11-25 Thread Anders Hammar
Nope, but I guess you could try to wrap the ant build in a pom. Have a look ant the antrun plugin. But, I don't really understand why you would like to keep some parts of a project as Maven builds and some as Ant builds. Are these modules more of independent projects? If so, I'm not sure that

Re: Replace the deploy phase with my own plugin

2009-11-25 Thread Anders Hammar
In general, no. There is today no way of unbinding a plugin bound to a phase. But you can always add an extra binding of your choice. However, some plugins have a parameter that makes the plugin skip its execution. Close to what you want to accomplish, but not as clean. For the deploy plugin, that

Re: How to skip testResources execution when tests are skipped

2009-11-25 Thread Nick Stolwijk
Skipping based on the skipTests parameter is a plugin issue. As far as I can see there is no way to skip the execution outside the plugin. I also didn't find an issue requesting this, so if you want to see this, please file an issue. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus

Best practice on releasing a webapp (war-file)

2009-11-25 Thread Ludwig Magnusson
Hi! We are developing a webapp which is packaged in a war-file. I wonder how we can use maven for releasing new versions to our actual server and our staging server. I have tested the deploy function and read about the release function but these seem to serve a different purpose than the one I'm

Re: How to skip testResources execution when tests are skipped

2009-11-25 Thread Anders Hammar
Also, I really don't think that setting the skipTests param in the configuration for the surefire plugin would affect the compiler plugin. At least not without the compiler plugin reading the configuration of the surefire plugin. I don't have enough plugin experience to say if that's even

Re: Best practice on releasing a webapp (war-file)

2009-11-25 Thread Joe Hindsley
Hi Ludwig, The cargo plugin is what you're looking for: http://cargo.codehaus.org/Maven2+plugin Cheers, Joe Hindsley Ludwig Magnusson wrote: Hi! We are developing a webapp which is packaged in a war-file. I wonder how we can use maven for releasing new versions to our actual server and

Re: Best practice on releasing a webapp (war-file)

2009-11-25 Thread Anders Hammar
What you could have is a separate project that uses some plugin to do this. For example, you could use the Cargo plugin ( http://cargo.codehaus.org/Maven2+plugin) to undeploy and then deploy an app. There are also lots of other server specific plugins. You could even bind this plugin in your

Re: How to skip testResources execution when tests are skipped

2009-11-25 Thread Stephen Connolly
skipTests will compile the tests but not run them there is a second property -Dmaven.test.skip=true which is picked up by the compiler plugin and completely ignores the tests. The feature request for the resources plugin would be to honour the maven.test.skip property. 2009/11/25 Anders

Re: Subject: Adding version numbers to artifacts

2009-11-25 Thread Jeff French
Thanks, Anders. I guess you could call it a nightly release. The version numbering scheme is major.minor.patch.build, so while working on a given version, the build component would increase each night. I looked at the release plugin, but it appears to require some manual involvement, and I'd

filter resources with version of a certain dependency

2009-11-25 Thread Andreas Ebbert-Karroum
Hi, is it possible to use version information of a certain dependency for resource filtering? Use-Case is that we have a content management system that needs the dependency information in another format than the pom.xml, and we would like to automate that. So the question is, can we use

Re: Subject: Adding version numbers to artifacts

2009-11-25 Thread Anders Hammar
Relase plugin batch mode: http://maven.apache.org/plugins/maven-release-plugin/examples/non-interactive-release.html /Anders On Wed, Nov 25, 2009 at 13:52, Jeff French j...@mdbconsulting.com wrote: Thanks, Anders. I guess you could call it a nightly release. The version numbering scheme is

Error installing artifact's metadata:

2009-11-25 Thread Ekaterina Ilina
Hi! We got such a problem during deployment - an error (log is below) Error installing artifact's metadata: Error installing metadata: Error updating group repository metadata in epilog non whitespace content is not allowed but got s (position: END_TAG seen .../metadata\ns... @13:2).

RE: Why would 'mvn dependencies:tree' fail while 'mvn compile' works?

2009-11-25 Thread Jamie Whitehouse
I was about to reply with the same thing. The Maven way is to install artifacts. Many plugins, rightly or not, depend on artifacts being located in the local repository. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Tuesday, November 24, 2009 4:53 PM To: Maven

how to preserve artifact time from repository to local repository

2009-11-25 Thread Henri Gomez
Hi to all, I'm faced a weird problem. On our nexus repository, artifacts have the correct time stamp, ie : log4j-1.2.15.jar file is Thu Aug 30 19:41:16 CEST 2007 Same timestamp in both repo1 and our nexus repo. When maven get the artifact from nexus to my local repository (~m2/repository),

Upload files to remote host

2009-11-25 Thread Aleksey Didik
Hello all, Do you have any ideas, how to upload some project files to another host? I have found wagon-maven-plugin, but it's upload goal is very poor (imho). I want to upload 2 files from different folders, but I can define only one fromDir. But if I define fromDir as ${basedir} and set

Re: merging testng into surefire..

2009-11-25 Thread Mick Knutson
Can you post the results please? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental:

RE: Best practice on releasing a webapp (war-file)

2009-11-25 Thread Ludwig Magnusson
It certainly seems so. Thank you :O) -Original Message- From: Joe Hindsley [mailto:jhinds...@gmail.com] Sent: den 25 november 2009 13:39 To: Maven Users List Subject: Re: Best practice on releasing a webapp (war-file) Hi Ludwig, The cargo plugin is what you're looking for:

Re: how to preserve artifact time from repository to local repository

2009-11-25 Thread Wayne Fay
When maven get the artifact from nexus to my local repository (~m2/repository), the timestamp is not conserved, the files get the timestamp of creation on the local repo. You are certainly welcome to file it as an enhancement, but it seems like an edge case and I doubt it will be addressed

Re: Error installing artifact's metadata:

2009-11-25 Thread Wayne Fay
It occurred, that maven-metadata.xml was corrupted (maven-metadata.xml is attached). It seems that it was corrupted because 2 processes tried to deploy the same jar. We removed this file (maven-metadata.xml) and it helped. Is it possible to do smth to prevent such a situation? What MRM tool

Re: Thoughts on build vs deploy time property filtering

2009-11-25 Thread John Prystash
Thanks Matt. I'll be sure to bring up this approach as an option. From: Matt Milliss matt.mill...@gmail.com To: Maven Users List users@maven.apache.org Sent: Mon, November 23, 2009 7:45:03 PM Subject: Re: Thoughts on build vs deploy time property filtering To

Re: how to preserve artifact time from repository to local repository

2009-11-25 Thread Henri Gomez
When maven get the artifact from nexus to my local repository (~m2/repository), the timestamp is not conserved, the files get the timestamp of creation on the local repo. You are certainly welcome to file it as an enhancement, but it seems like an edge case and I doubt it will be addressed

Re: how to preserve artifact time from repository to local repository

2009-11-25 Thread Marat Radchenko
timestamps isn't the only versioning mechanism for java webstart. it's just the most fragile (as you already see) one. Why don't you use maven-webstart-plugin? it creates webstart descriptor with artifact version-based versioning. 2009/11/25, Henri Gomez henri.go...@gmail.com: When maven get

Re: how to preserve artifact time from repository to local repository

2009-11-25 Thread Wayne Fay
Question, If I should file it as an enhancement, it should be for : 2.1.x, 2.2.x and 3.0.x ? I would file for 3.0.x simply because that is where the most activity is happening lately. But it sounds like Marat has a better suggestion, which I would pursue before going down this road. Wayne

[ANN] Signatures of Java Runtimes for use with Animal Sniffer released

2009-11-25 Thread David J. M. Karlsen
The Mojo team is pleased to announce the release of a number of signatures of various versions of the Java Runtime for use with the Animal Sniffer set of utilities. The following signatures have been released: Generic Signatures (only includes public API classes) * Java 1.2

Re: how to preserve artifact time from repository to local repository

2009-11-25 Thread Henri Gomez
timestamps isn't the only versioning mechanism for java webstart. it's just the most fragile (as you already see) one. Why don't you use maven-webstart-plugin? it creates  webstart descriptor with artifact version-based versioning. We allready use maven to feed the jnlp, the problem is

Re: how to preserve artifact time from repository to local repository

2009-11-25 Thread Henri Gomez
3.0.x, good, that's the target version for us (m2eclipse users) 2009/11/25 Wayne Fay wayne...@gmail.com: Question, If I should file it as an enhancement, it should be for : 2.1.x, 2.2.x and 3.0.x ? I would file for 3.0.x simply because that is where the most activity is happening lately.

Re: Resources in source folder

2009-11-25 Thread John Patrick
Have you tried: mvn eclipse:m2eclipse. Does it exibit the same behaviour. John 2009/11/20 Martin Seebach martin.seeb...@assursoft.com Hi, I have an Eclipse-project that are managed with Maven2. This project depends on resource-files in the source-folders (HTML-files, it's a Wicket

SOS error downloadig, for compilation, the jaxb-api. can you help me?

2009-11-25 Thread Koxkorrita
Hello i have one great problem i have several days trying to compile one Webservice using jaxb. the pom i have writte bellow. whe y ry to make one mvn package always appears this error: [INFO] [ERROR] BUILD FAILURE

Failsafe forkMode=pertest and AccessControlException

2009-11-25 Thread dreedyman
Hi all, Cant figure my way out of this one... am I getting a nasty AccessControlException when I set the forkModepertest/forkMode when running plugin groupIdorg.codehaus.mojo/groupId artifactIdfailsafe-maven-plugin/artifactId version2.4.3-alpha-1/version configuration

Re: SOS error downloadig, for compilation, the jaxb-api. can you help me?

2009-11-25 Thread Henri Gomez
Where did you get the jar home/jboss/.m2/repository/com/sun/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar ? 2009/11/25 Koxkorrita koxkorr...@laudio.info: Hello i have one great problem i have several days trying to compile one Webservice using jaxb. the pom i have writte bellow. whe y ry to

Re: Resources in source folder

2009-11-25 Thread Barrie Treloar
On Sat, Nov 21, 2009 at 12:45 AM, Martin Seebach martin.seeb...@assursoft.com wrote: Hi, I have an Eclipse-project that are managed with Maven2. This project depends on resource-files in the source-folders (HTML-files, it's a Wicket project), but recently Eclipse stopped copying those files

Re: SOS error downloadig, for compilation, the jaxb-api. can you help me?

2009-11-25 Thread Anders Hammar
What's all the declared repositories for - do you really need them? When checking, it looked to me that some of them were actually the same repo. I'd start by cleaning this to the minimum. Also, check where the jar is being downloaded from (as Henri asked). Do that by deleting it in your local

Re: Resources in source folder

2009-11-25 Thread Martin Seebach
Hi, Thanks for the response. 2009/11/26 Barrie Treloar baerr...@gmail.com Did you check the plugin's documentation? http://maven.apache.org/plugins/maven-eclipse-plugin/ I tried to look for it, but I guess I focused too much on the resources plugin, rather than the eclipse plugin. See the

Calling an other Mojo from own Mojo ?

2009-11-25 Thread Wurzelseppi
Hi All, i trying to develop an maven plugin and have problems at a certain point. My Mojo has to call an other mojo and needs to pass required parameters which i´m defining in my own plugins configuration section. The question is: how do i do that ? somehow i can´t get a handle to the

Calling an other Mojo from own Mojo ?

2009-11-25 Thread Wurzelseppi
Hi All, i trying to develop an maven plugin and have problems at a certain point. My Mojo has to call an other mojo and needs to pass required parameters which i´m defining in my own plugins configuration section. The question is: how do i do that ? somehow i can´t get a handle to the

Re: Calling an other Mojo from own Mojo ?

2009-11-25 Thread James William Dumay
Take a look at the mojo executor. I think this is what you want http://code.google.com/p/mojo-executor/ James Sent from my iPhone On 26/11/2009, at 6:45 PM, Wurzelseppi findmein...@yahoo.de wrote: Hi All, i trying to develop an maven plugin and have problems at a certain point. My