Drew,

I must thank you for this help as it did work. I also feel that I should share 
the findings with the group.
Somehow, both of these commands did not work for me ( to skip tests ).
 mvn -Darguments="-DskipTests=true" release:prepare ...
 mvn -Darguments="-Dmaven.test.skip" release:prepare ...

But this one did work :
 mvn -DpreparationGoals="clean compile" release:prepare ...

Apart from this, there was one more thing related to Heap Size Error that I 
experienced while building the release. 
I had to 
export _JAVA_OPTIONS="-Xmx1g"
to get rid of the Heap Size Error.
Setting JAVA_OPTS did not help. I don't know why.

I will update the "How To Release" page with these.

Paritosh

________________________________________
From: Paritosh Ranjan
Sent: Friday, June 08, 2012 10:35 PM
To: [email protected]
Subject: RE: Mahout Release : 0.7

Thanks Drew. This certainly looks like the way to do it.
However, the tests have already executed. Will use it if the upload fails again.

Thanks,
Paritosh
________________________________________
From: Drew Farris [[email protected]]
Sent: Friday, June 08, 2012 10:25 PM
To: [email protected]
Subject: Re: Mahout Release : 0.7

Paritosh,

If you end up needed to do another release:prepare, try something like:

 mvn -Darguments="-DskipTests=true" release:prepare
 mvn -Darguments="-Dmaven.test.skip" release:prepare

Or to skip the verify goal entirely:

 mvn -DpreparationGoals="clean compile" release:prepare

See: http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html

- Drew

On Fri, Jun 8, 2012 at 3:11 PM, Paritosh Ranjan <[email protected]> wrote:
> Tried with -DskipTests also. Tests still run. Not a issue, rebuilding again ( 
> tests are made to run :)).
> And, maven.test.skip does exist, I use it. Its even written on the link 
> (page) you have shared.
> ________________________________________
> From: Sean Owen [[email protected]]
> Sent: Friday, June 08, 2012 8:55 PM
> To: [email protected]
> Subject: Re: Mahout Release : 0.7
>
> I have never seen maven.test.skip, so looked it up -- it's really
> supposed to be skipTests:
>
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html
>
> On Fri, Jun 8, 2012 at 7:45 PM, Paritosh Ranjan <[email protected]> wrote:
>> No, it did not skip tests through -Dmaven.test.skip.
>> Rebuilding from scratch ( with tests ).

Reply via email to