Re: Using POJO Tests: setUp() and tearDown() methods

2019-05-27 Thread Tibor17
Hi Bruce,

We have fixed this issue, see the Jira 
https://issues.apache.org/jira/browse/SUREFIRE-1669

Cheers
Tibor

On 2018/09/28 04:04:38, Bruce Alspaugh  wrote: 
> I was using Surefire's ability to run POJO tests as described here:> 
> 
> https://maven.apache.org/surefire/maven-surefire-plugin/examples/pojo-test.html>
>  
> 
> I noticed my setUp() and tearDown() methods were not being called. > 
> However, when I make those methods static they are called. I didn't see > 
> a requirement that the methods have to be static in the documentation. > 
> Is that a bug in the software or the documentation?> 
> 
> Bruce> 
> 
> 
> -> 
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org> 
> For additional commands, e-mail: users-h...@maven.apache.org> 
> 
> 
Sent from Mail for Windows 10



Re: Maven local repo in a common global directory for multiple parallel execution

2019-05-27 Thread Bernd Eckenfels
Hello,

It is the other way around, there might be situations where one job relies on 
the installed artifacts from the other, in this case you would need a shared 
Repo. It is however bad style. In all other cases you can use a executor- or 
even workspace-local local repository if you have enough space.

The advantage of avoiding concurrent access is that you get less influences 
from one job to the other (especially if you work with snapshots or multiple 
different upstream artifacts with same version in different Repos) and that 
there is no concurrent downloads (which in itself sometimes leads to checksum 
errors).

Gruss
Bernd
--
http://bernd.eckenfels.net


Von: Debraj Manna 
Gesendet: Montag, Mai 27, 2019 11:29 AM
An: Maven Users List
Betreff: Re: Maven local repo in a common global directory for multiple 
parallel execution

Yes disk required will be more .

I don't have a requirement where one of my projects requires artifact
created by another. So I can use a common local repo for all parallel
executions?

On Mon, May 27, 2019 at 11:34 AM Golan, Yaron 
wrote:

> Please remember that you need much bigger disk space as you are
> duplicating binaries.
>
>
> -Original Message-
> From: Debraj Manna 
> Sent: Sunday, May 26, 2019 4:49 PM
> To: Maven Users List 
> Subject: Maven local repo in a common global directory for multiple
> parallel execution
>
> I have a machine in which multiple parallel maven execution happen . Each
> execution executes the below command in a seperate workspace directory
>
> mvn -f main/pom.xml clean package -DskipTests -T 6
>
> Can someone let me know should I use a seperate maven local repo path (
> -Dmaven.repo.local=$MAVEN_REPO) for each execution or I can use a common
> .m2 directory for all parallel runs? What is the best practice?
>
>
> - Maven Version 3.5
> - Java 8
>


Re: Maven local repo in a common global directory for multiple parallel execution

2019-05-27 Thread Debraj Manna
Yes disk required will be more .

I don't have a requirement where one of my projects requires artifact
created by another. So I can use a common local repo for all parallel
executions?

On Mon, May 27, 2019 at 11:34 AM Golan, Yaron 
wrote:

> Please remember that you need much bigger disk space as you are
> duplicating binaries.
>
>
> -Original Message-
> From: Debraj Manna 
> Sent: Sunday, May 26, 2019 4:49 PM
> To: Maven Users List 
> Subject: Maven local repo in a common global directory for multiple
> parallel execution
>
> I have a machine in which multiple parallel maven execution happen . Each
> execution executes the below command in a seperate workspace directory
>
> mvn -f main/pom.xml clean package -DskipTests -T 6
>
> Can someone let me know should I use a seperate maven local repo path (
> -Dmaven.repo.local=$MAVEN_REPO) for each execution or I can use a common
> .m2 directory for all parallel runs? What is the best practice?
>
>
>- Maven Version 3.5
>- Java 8
>


RE: Maven local repo in a common global directory for multiple parallel execution

2019-05-27 Thread Golan, Yaron
Please remember that you need much bigger disk space as you are duplicating 
binaries.


-Original Message-
From: Debraj Manna  
Sent: Sunday, May 26, 2019 4:49 PM
To: Maven Users List 
Subject: Maven local repo in a common global directory for multiple parallel 
execution

I have a machine in which multiple parallel maven execution happen . Each 
execution executes the below command in a seperate workspace directory

mvn -f main/pom.xml clean package -DskipTests -T 6

Can someone let me know should I use a seperate maven local repo path (
-Dmaven.repo.local=$MAVEN_REPO) for each execution or I can use a common .m2 
directory for all parallel runs? What is the best practice?


   - Maven Version 3.5
   - Java 8