Re: forkMode always ignores groups?

2012-06-07 Thread Aliaksei Lahachou
I'm not experienced with maven-surefire plugin (beyond simple use for unit tests), but after merging configurations your execution looks as follows: integration-test integration always integration So, integration group is added and excluded, that could be your problem. You c

RE: newbie example for maven

2012-06-07 Thread Martin Gainty
anders was right..setting M2_HOME to the maven deploy folder solved the problem cwd $M2_HOME/bootls *.jar plexus-classworlds-2.4.jar Cordialement.. Martin __ > Date: Thu, 7 Jun 2012 11:16:47 +0200 > Subject: Re: newbie example for maven > From: mh

RE: Passing properties to maven POM ran from ant

2012-06-07 Thread Manfred Moser
Use env.smx.home Environment variables are accessible via a prepended env. On Thu, June 7, 2012 9:30 am, Martin Gainty wrote: > > Hi Nicholas I would set an environment variable to smx_home before calling > mvn e.g.SET smx.home=${smx.home}cmd.exe /c mvn.execmd.exe /c only executes > the windows

RE: Passing properties to maven POM ran from ant

2012-06-07 Thread Martin Gainty
Hi Nicholas I would set an environment variable to smx_home before calling mvn e.g.SET smx.home=${smx.home}cmd.exe /c mvn.execmd.exe /c only executes the windows binary following /cunless of course if you pass /V:ON to Enable delayed environment variable expansion (where using !var! will inpl

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Benson Margulies
I think the bottom line here is that there are nuances to 'don't fight maven.' Rearranging the tree within the reach of the various POM elements is not a big deal. The big pain comes when you try to fight with the workflow and artifact architecture. ---

forkMode always ignores groups?

2012-06-07 Thread Billy
I am trying to separate my unit and integration tests into testng groups. I have them separated into different executions the maven-surefire-plugin section of the pom (included at the bottom of this message). When forkMode is set to never, the grouping is obeyed however in the tests the @Before* m

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Ron Wheeler
I am not religious in either direction. My comment was more of an invitation to try to see the difference between what Ron has and what Eclipse and M2 would setup, given their own devices. From that, Ron could make a decision. At Artifact, we try to follow Maven conventions as closely as possi

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Curtis Rueden
Hi RonA, Antonio & everyone, On Thu, Jun 7, 2012 at 9:15 AM, Antonio Petrelli wrote: > However I disagree with Ron, once you move to Maven, you'd better move > in a clean way, so it's better to move directory as the Maven standard > layout suggests. Why? Maven does not require it. You can keep

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Antonio Petrelli
2012/6/7 Ronald Albury : > I have the project layout pretty clean - with one artifact per project (jar > library, executable jar, war/ear).  There are three top level applications > that come out of the workspace - an ear and two runnable jar files.  The > jar libraries are shared across the three

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Ronald Albury
Thanks Ron The other fly in the ointment is that this is an IBM shop and we are required to develop in IBM's RAD flavor of Eclipse. That doesn't mean we can't add plugins - only that we can't go to STS. I have the project layout pretty clean - with one artifact per project (jar library, executab

Re: Cannot properly deploy WAB, getting NullPointerException

2012-06-07 Thread Wayne Fay
> I'm getting very strange error in Glassfish 3.1.2. I have a WAB package > with Primefaces. The WAB file is not deployed properly. This is the POM > file: First off, please don't post massive logs from someone else's product here -- what do you expect the Maven Users list to do about your problem

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Ron Wheeler
On 07/06/2012 8:59 AM, Ronald Albury wrote: I have seen much documentation of importing a Maven project into Eclipse. However, many of us have the opposite situation - we are starting with an Eclipse set-up and have decided to migrate to Maven for the builds. I did find one posting on the subj

Re: migrating from Eclipse to a Maven build

2012-06-07 Thread Ron Wheeler
My 2 cents. Move from Eclipse to Eclipse STS from Springsource. This gives you an Eclipse ready to go out-of-the-box with Maven and everything else you need to develop in Java. I believe that you can then add the maven nature to your project. Adjust the Maven POM, if required, to point to your

migrating from Eclipse to a Maven build

2012-06-07 Thread Ronald Albury
I have seen much documentation of importing a Maven project into Eclipse. However, many of us have the opposite situation - we are starting with an Eclipse set-up and have decided to migrate to Maven for the builds. I did find one posting on the subject - the author, like myself, was intimidated

Passing properties to maven POM ran from ant

2012-06-07 Thread nicolasduminil
Greetings, I need to execute a mavem pom from an ant script. here is the code of the ant script: The property smx.home is correctly displayed in the echo task but, as soon in the maven pom it's definition is lost. However, it is defined with -Ds

Re: Cannot properly deploy WAB, getting NullPointerException

2012-06-07 Thread Peter Penzov
Would you please explain more clearly your idea? On Thu, Jun 7, 2012 at 2:33 PM, Martin Gainty wrote: > > Hi PeterI tested with earlier version of 1.4.0insert a valid > Bundle-Activator java class > comment out Bundle-ClassPath which does not seem to be working properly > with v=1.4.0 >

RE: Cannot properly deploy WAB, getting NullPointerException

2012-06-07 Thread Martin Gainty
Hi PeterI tested with earlier version of 1.4.0insert a valid Bundle-Activator java class comment out Bundle-ClassPath which does not seem to be working properly with v=1.4.0 org.apache.felix maven-bundle-plugin 1.4.0 true ejb war bundle jar

Re: Maven clean install throws Checksum failed on download

2012-06-07 Thread DK
OK, Its downloading from Nexus repos and I guess they have been around for a while. I'm on Maven 2.2.1. So I guess there's not much that can be done the fix Nexus other than deleting its artifacts and redeploy them. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-clea

Re: newbie example for maven

2012-06-07 Thread Mohamed SIDI
It seems a Maven configuration problem, if you are working with Windows, can you make : c> maven -version pour ensure thant maven is well installed 2012/6/7 abhijith tn > Ensure you set the bin of Maven installation in classpath. Just google, > setting classpath of maven. > > I think this should

Re: newbie example for maven

2012-06-07 Thread abhijith tn
Ensure you set the bin of Maven installation in classpath. Just google, setting classpath of maven. I think this should resolve the problem. On Thu, Jun 7, 2012 at 10:27 AM, Anders Hammar wrote: > Have you defined the M2_HOME env variable? > > /Anders > > On Thu, Jun 7, 2012 at 9:56 AM, Yaprak

Re: Maven clean install throws Checksum failed on download

2012-06-07 Thread Stephen Connolly
Did you see if the artifact in the repo has an incorrect checksum deployed to the repo? There are a couple of repos that did not enforce checksum validation/repair... And maven 2.1.0 through 2.2.0 deploy incorrect checksums to remote repos (which is why we say don't use those versions) On Thursday

Maven clean install throws Checksum failed on download

2012-06-07 Thread DK
I'm getting a number of errors in my build like the following: *** CHECKSUM FAILED - Checksum failed on download: local = '2b0cd22fcfe2c88328b8c30eb57bc24b4b20ed'; remote = '746e3c8abfad7fdc3d6384dd1a9b6b448140ef' - RETRYING *** CHECKSUM FAILED - Checksum failed on download: local = '2b0cd22fcfe2c

Re: newbie example for maven

2012-06-07 Thread Anders Hammar
Have you defined the M2_HOME env variable? /Anders On Thu, Jun 7, 2012 at 9:56 AM, Yaprak Ayazoglu wrote: > Hi, > > I'm trying to understand whether maven works or not. > > Depending on the lines below maven seems not working at all. How can I fix > this > problem? Can you help? > > ya@yaprak:~$

Cannot properly deploy WAB, getting NullPointerException

2012-06-07 Thread Peter Penzov
I'm getting very strange error in Glassfish 3.1.2. I have a WAB package with Primefaces. The WAB file is not deployed properly. This is the POM file: http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/PO

newbie example for maven

2012-06-07 Thread Yaprak Ayazoglu
Hi, I'm trying to understand whether maven works or not. Depending on the lines below maven seems not working at all. How can I fix this problem? Can you help? ya@yaprak:~$ mvn Error: Could not find or load main class org.codehaus.classworlds.Launcher -- Yaprak