Re: How to find out which parameters can be specified as command-line properties?

2010-03-12 Thread Anders Hammar
Look for "Expression" in the docs. For example, the surefire:test skip param: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skip /Anders On Sat, Mar 13, 2010 at 03:06, sebb wrote: > Some plugin parameters are settable as command-line properties. > For example, the Surefir

Combining modules' jars into one war ?

2010-03-12 Thread smallufo
Hi I am new to Maven , I have a problem about splitting a project into modules and combining them into WAR. I first build a parent project , naming 'destiny' with a POM (packaging 'pom') , and create 3 modules (sub-projects) : 1st is destiny-core (packaging : jar) : pure POJOs 2nd is destiny-weba

Re: Setting custom varaibles

2010-03-12 Thread Maven User
Pull the trigger - modularize and move completely to maven 2. On Mar 12, 2010, at 8:05 PM, swaroopgr wrote: Here's why: I'm setting up sonar - a tool for code quality analysis. The way sonar is run is: "mvn sonar:sonar" I'm using ANT to build my project. However, sonar requires a dummy

How to find out which parameters can be specified as command-line properties?

2010-03-12 Thread sebb
Some plugin parameters are settable as command-line properties. For example, the Surefire plugin accepts the parameter in the POM and the property -DargLine on the command-line. Surefire also accepts and -DskipTests=true. However, Surefire accepts the parameter, but ignores -Dskip=true. How c

Re: Setting custom varaibles

2010-03-12 Thread swaroopgr
Here's why: I'm setting up sonar - a tool for code quality analysis. The way sonar is run is: "mvn sonar:sonar" I'm using ANT to build my project. However, sonar requires a dummy pom.xml file to trick it into saying it's a maven project. Then, Sonar will go and descend into all the directories

Re: Setting custom varaibles

2010-03-12 Thread Baptiste MATHUS
Hi, First question: why do you need to do this? Maven defines strong conventions principles over config. So doing what you say seems quite uncommon. So you've got three solutions: * if the project can be cleanly refactored to be built, with clear deps and so on => the way to go * if those source

Re: Setting custom varaibles

2010-03-12 Thread Wayne Fay
> Run the "ls" command in the current directory. For each directory listed, I > want to add the name in pom.xml's $DirectoryName > property and run mvn. If there's a way to set name / value > pairs during mvn invocation, that would be best. If not, what's the best way If your build requires this,

Setting custom varaibles

2010-03-12 Thread swaroopgr
I'm need to use custom variables in maven. Here's what I do: Run the "ls" command in the current directory. For each directory listed, I want to add the name in pom.xml's $DirectoryName property and run mvn. If there's a way to set name / value pairs during mvn invocation, that would be best. If

RE: Test fail for release:perform only - no failure info

2010-03-12 Thread Randall Fidler
Hmm... just tried with Maven 2.2.1 and surefire plugin vesion 2.5. Still none of the tests are failing but the build fails because there are test errors. I thought it was one particular test, but I removed it from the project and same result. All tests pass on release:prepare but I get the "b

Re: Leakage from pluginManagement to plugins

2010-03-12 Thread Benson Margulies
Je pense que je ne mange pas des castor. On Fri, Mar 12, 2010 at 8:27 AM, Baptiste MATHUS wrote: > Yes, it's better. This way, it will take seconds for one to check if we're > having the same problem. > Just "design" your test project the best you can, like kind of a testcase. > So that the erro

maven-deploy-plugin — inconsistent unique Version, upload and download issues

2010-03-12 Thread Julien CARSIQUE
Hello, I had an issue with Nexus not returning the right artifact, apparently to be due to presence of both -SNAPSHOT and artifacts in its repositories; this seems to be fixed by emptying the snapshot repositories and re-deploy. Before the deletion, Maven was always download -SNAPSHOT artifacts,

Site not working properly

2010-03-12 Thread tmcginni
I have been using Maven and the Site plugin for over a year now and it has been working fine. Today I went to use it and my index.html file is displaying information that is in the tag of the pom and not the index.apt file I have been using. I am also getting the error DEPRECATED: Binding ag

Re: Maven 3.0 Artefact/Dependency version discussion request

2010-03-12 Thread Baptiste MATHUS
2010/3/12 Trojan, Krzysztof > Hi, > > > Well, if I read correctly what you said, you're putting the dependencies > between project with external properties that defines versions. I guess you > know one of the main objectives of maven is letting users be able to have an > always reproducible build

RE: Maven 3.0 Artefact/Dependency version discussion request

2010-03-12 Thread Trojan, Krzysztof
Hi, > Well, if I read correctly what you said, you're putting the dependencies > between project with external properties that defines versions. I guess you > know one of the main objectives of maven is letting users be able to have an > always reproducible build. While a desire to have the bu

Re: New to maven and loving it :) Need a little help please...

2010-03-12 Thread Anders Hammar
Try the cargo plugin or the jboss specific one: http://cargo.codehaus.org/Maven2+plugin http://mojo.codehaus.org/jboss-maven-plugin/ /Anders On Fri, Mar 12, 2010 at 14:06, Yucca Nel wrote: > Hello, google has helped me fantastically up to now and I am in a little > need of further info. > > I a

New to maven and loving it :) Need a little help please...

2010-03-12 Thread Yucca Nel
Hello, google has helped me fantastically up to now and I am in a little need of further info. I am in the process of changing my development environment (JEE5 + JEE6) and have started to utilise Maven. I am looking for a xml pom snippet that can help me deploy directly to Jboss6 or glassfish v

Re: Leakage from pluginManagement to plugins

2010-03-12 Thread Baptiste MATHUS
Yes, it's better. This way, it will take seconds for one to check if we're having the same problem. Just "design" your test project the best you can, like kind of a testcase. So that the error just jumps out when maven is started. Describe the test project, what you wanted to do, what it does, and

Re: Maven 3.0 Artefact/Dependency version discussion request

2010-03-12 Thread Baptiste MATHUS
Answering putting Krzysztof in copy. But please, subscribe to the users maven list, because not sure everybody will think about clicking on "reply all". Well, if I read correctly what you said, you're putting the dependencies between project with external properties that defines versions. I guess

Re: Leakage from pluginManagement to plugins

2010-03-12 Thread Benson Margulies
So, does anyone need an test case of this on a JIRA? On Fri, Mar 12, 2010 at 7:53 AM, Brian Fox wrote: > If the plugin is mentioned _at all_ even just group/artifact, then the > pluginManagement will kick in. This is how it works now. It should be > that you have to mention the executionId you w

Re: Leakage from pluginManagement to plugins

2010-03-12 Thread Brian Fox
If the plugin is mentioned _at all_ even just group/artifact, then the pluginManagement will kick in. This is how it works now. It should be that you have to mention the executionId you want to inherit instead of just assuming all of them. On Thu, Mar 11, 2010 at 10:37 PM, Benson Margulies wrote:

usage of preserveCData with archetypes

2010-03-12 Thread Bernard Lupin
Hi all, I would like the archetype goal create-from-project to replace ALL occurences of my artifactId in my multi-module project. Without -DpreserveCData=true, some occurences are not replaced (in pom comments or in cxf-codegen-plugin configuration). With -DpreserveCData=true, these occurences ar

Re: Maven spitting out "crap" when it can't find locally added dependancies. How to stop it from checking?

2010-03-12 Thread Stephen Connolly
On 10 March 2010 21:48, Ron Wheeler wrote: > Post things to JIRA (especially with patches) to get things changed. I > >> assure you, patches with good/useful changes in content will be >> well-received and the site/documentation will be updated in due >> course. >> >> >> > I am not going to get i

Re: release:perform from a branch?

2010-03-12 Thread Stephen Connolly
the only other gotcha (and it is occasional) is if your branch structure is "non-standard" in which case you'd need to configure the tagBase option inthe maven-release-plugin However that is rather rare -Stephen On 10 March 2010 17:48, Kalle Korhonen wrote: > You don't need any command line op

Re: Maven Eclipse

2010-03-12 Thread Anders Hammar
On the contrary I don't see any issues. As long as you have good naming of your projects (possibly also in separate working sets), this should be ok. It also requires that you have correct versioning av your Maven projects (i.e. the two branches have different versions). I don't see how two eclips

RE: Maven Eclipse

2010-03-12 Thread Arand, Thomas (NSN - DE/Munich)
Hi all, I would not recommend to open those two projects in the same eclipse workspace. As both projects mainly have the same elements, you will be very confused when editing those elements. Additionally, it might be necessary to specify different (local) maven reposistories for both projects. Th