[ANN] Apache Maven Surefire 3.0.0-M7 Released

2022-06-06 Thread Olivier Lamy
Hi
The Apache Maven team is pleased to announce the release of the Apache
Maven Surefire version 3.0.0-M7.

https://maven.apache.org/surefire/index.html

Apache Maven Surefire is a test framework which include the surefire plugin
which is used during the test phase of your build.

https://maven.apache.org/plugins/maven-surefire-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-surefire-plugin
  3.0.0-M7


You can download the appropriate sources etc. from the download page:

https://maven.apache.org/surefire/download.cgi

Release Notes - Maven Surefire - Version 3.0.0-M7


** New Feature
* [SUREFIRE-2086] - Management of temporary files


** Improvement
* [SUREFIRE-2055] - Always show random seed
* [SUREFIRE-2059] - includeJUnit5Engines and excludeJUnit5Engines have
wrong user property
* [SUREFIRE-2062] - Remove code corresponding to jdk 7 from IT tests
* [SUREFIRE-2066] - Wrong documentation "List of System properties to
pass to the JUnit tests." of systemProperties and systemPropertyVariables
* [SUREFIRE-2067] - Improve site configuration


** Bug
* [SUREFIRE-2056] - BufferOverflowException when encoding message with
null testId
* [SUREFIRE-2057] - JPMS Regression: requires static module not include
anymore
* [SUREFIRE-2058] - Corrupted STDOUT by directly writing to native
stream in forked JVM 1 with UTF-8 console logging
* [SUREFIRE-2061] - BLOCKED in surefire-forkedjvm-stream-flusher
* [SUREFIRE-2063] - Adding argLine with tab characters fails
* [SUREFIRE-2064] - Implementation of TestNG "parallel" option fails
with default value
* [SUREFIRE-2075] - Implementation of TestNG "threadCount" option
improperly overrides default value
* [SUREFIRE-2076] - BufferOverflowException when encoding message with
null runMode
* [SUREFIRE-2077] - argLine with two spaces doesn't work
* [SUREFIRE-2083] - Redundant configuration of maven-shade-plugin
* [SUREFIRE-2089] - Fail message with one non-ASCII characters and a
lot of characters lead to corruption

Enjoy,

-The Apache Maven team


Re: MultiMaven project with by sharing dependencyManagement on parent pom

2022-06-06 Thread Nils Breunese
I don’t believe you can _include_ plugins and plugin dependencies, as far as I 
know you can only _inherit_ them from a parent. And an artifact can only have 
one parent.

There’s import for BOM artifacts, but that only ‘includes’ the 
entries from the BOM’s  section, and doesn’t do anything 
with plugins.

Nils.

> Op 6 jun. 2022, om 20:13 heeft Philipp Kraus  
> het volgende geschreven:
> 
> Hello,
> 
> I have got a MultiMaven project and within this project I have got two parent 
> poms. One of these parent inherits from an external parent. So I would like 
> to share all my build plugins and pluginManagemnt section, like
> 
> My-multi-maven-pom.xml
> 
>   my-plugins-and-pluginDependencies-pom.xml
> 
>   my-parent-pom.xml 
>   -> includes -> my-plugins-and-pluginDependencies-pom.xml
> 
>   my-external-parent-pom.xml 
>   -> inherits -> external-parent-pom.xml 
>   -> includes -> my-plugins-and-pluginDependencies-pom.xml
> 
> How is this possible?
> 
> Thanks a lot
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Kubernetes Build Environment

2022-06-06 Thread Bernd Eckenfels
Hello,

Well there are so many plugins, so I don’t know what would be enough. Hopefully 
somebody else would have a few recommendations.

And also starting test classes or groovy scripts from Maven Invoker could be 
considered pure Maven. However I would not say that credential management, 
workflows, orchestration and native applications are Mavens forté. And from my 
experience in this area you safe time and gain reliability/automation if you 
don’t try to force it into mavens structure.

BTW i just noticed that JKube really seems to have excellent APIs for stuff 
like building images, so thank you for the hint :) (i Wonder what part works 
without an docker daemon, will have to try this. Docker files are just not very 
flexible for things like repeatable builds and optimized layers (not even with 
builtkit - it seems)

Gruss
Bernd


--
http://bernd.eckenfels.net

Von: Philipp Kraus 
Gesendet: Monday, June 6, 2022 7:47:34 PM
An: Maven Users List 
Betreff: Re: Kubernetes Build Environment



> Am 06.06.2022 um 05:55 schrieb Bernd Eckenfels :
>
> do you need to test K8s or just have some external containers to set up, 
> maybe using Testcontainers with Docker APi is an alternative? (Advantage is 
> you can simpler test it locally)

Yes I’m using TestContainers for some test, but here I would like to focus on a 
full test-case of the whole system, so interaction between all components

>
> Another alternative is to use a CI pipeline script/system instead of 
> orchestrating it in maven - at least if there is no plugin which does what 
> you need, instead from junit/testng (IT) test cases, using the kubernetes or 
> f8 client might also be an option.

Yes this sound something what is possible, I would like to do some 
stress-testing with JMeter and also some integration testing, so I’m think 
about Kubernetes KinD within the CI pipeline. But so you would like to suggest 
to use Maven to build the artifact
And run it in a Kubernetes cluster via some CI pipeline scripts.

So based on your answer there is no pure Maven solution for this testing?

Thanks for the ideas

> 
> Von: Philipp Kraus 
> Gesendet: Monday, June 6, 2022 5:38:58 AM
> An: users@maven.apache.org 
> Betreff: Kubernetes Build Environment
>
> Hello,
>
> I need some idea how to solve this issue. I have got a MultiMaven project, 
> which has got multiple web services. Each service will be run later in a 
> container in Kubernetes.
> I have found this plugin 
> https://www.eclipse.org/jkube/docs/kubernetes-maven-plugin to build 
> everything, but I would like to get integration testing within the Kubernetes 
> environment,
> Because all services has got a Kafka connection and I would like to run some 
> complex integration test directly from the Maven build.
>
> Can you give me some ideas how to do it?
>
> Thanks a lot


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


MultiMaven project with by sharing dependencyManagement on parent pom

2022-06-06 Thread Philipp Kraus
Hello,

I have got a MultiMaven project and within this project I have got two parent 
poms. One of these parent inherits from an external parent. So I would like to 
share all my build plugins and pluginManagemnt section, like

My-multi-maven-pom.xml

my-plugins-and-pluginDependencies-pom.xml

my-parent-pom.xml 
-> includes -> my-plugins-and-pluginDependencies-pom.xml

my-external-parent-pom.xml 
-> inherits -> external-parent-pom.xml 
-> includes -> my-plugins-and-pluginDependencies-pom.xml

How is this possible?

Thanks a lot
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Kubernetes Build Environment

2022-06-06 Thread Philipp Kraus


> Am 06.06.2022 um 05:55 schrieb Bernd Eckenfels :
> 
> do you need to test K8s or just have some external containers to set up, 
> maybe using Testcontainers with Docker APi is an alternative? (Advantage is 
> you can simpler test it locally)

Yes I’m using TestContainers for some test, but here I would like to focus on a 
full test-case of the whole system, so interaction between all components

> 
> Another alternative is to use a CI pipeline script/system instead of 
> orchestrating it in maven - at least if there is no plugin which does what 
> you need, instead from junit/testng (IT) test cases, using the kubernetes or 
> f8 client might also be an option.

Yes this sound something what is possible, I would like to do some 
stress-testing with JMeter and also some integration testing, so I’m think 
about Kubernetes KinD within the CI pipeline. But so you would like to suggest 
to use Maven to build the artifact
And run it in a Kubernetes cluster via some CI pipeline scripts.

So based on your answer there is no pure Maven solution for this testing?

Thanks for the ideas

> 
> Von: Philipp Kraus 
> Gesendet: Monday, June 6, 2022 5:38:58 AM
> An: users@maven.apache.org 
> Betreff: Kubernetes Build Environment
> 
> Hello,
> 
> I need some idea how to solve this issue. I have got a MultiMaven project, 
> which has got multiple web services. Each service will be run later in a 
> container in Kubernetes.
> I have found this plugin 
> https://www.eclipse.org/jkube/docs/kubernetes-maven-plugin to build 
> everything, but I would like to get integration testing within the Kubernetes 
> environment,
> Because all services has got a Kafka connection and I would like to run some 
> complex integration test directly from the Maven build.
> 
> Can you give me some ideas how to do it?
> 
> Thanks a lot


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Re: Maven 3.8 Difference between thread count and forkcount for suitsAndClasses parallelism

2022-06-06 Thread Debraj Manna
I read the link

.

For parallel = classes, mvn test -T 5 , reuseForks = true & forkCount = 2
maven will build and run 5 modules in parallel. During the test phase of
each module surefire is getting called and surefire is spawning 2 JVM to
distribute the tests. Once all the tests are finished in module surefire
fork will be termintated. Again a new surefire fork will be created for
executing tests in another module. Only for a module, surefire fork will be
reused. Is my understanding correct?

What happens for suitesAndClasses? How are the tests distributed?



On Mon, Jun 6, 2022 at 1:19 PM Debraj Manna 
wrote:

> Hi
>
> I am having a surefire configuration like below
>
> 
>  2
>  true
> false
> suitesAndClasses
> 
>
> In a multimodule maven project if I am executing mvn test -T 5 then how
> does parallelism work here? Will it be that in surefire fork1 5 tests
> classes will be running in parallel and same in fork2?
>
> Maven Version 3.8.4
> Surefire version 3.0.0-M6
>
>


Maven 3.8 Difference between thread count and forkcount for suitsAndClasses parallelism

2022-06-06 Thread Debraj Manna
Hi

I am having a surefire configuration like below


 2
 true
false
suitesAndClasses


In a multimodule maven project if I am executing mvn test -T 5 then how
does parallelism work here? Will it be that in surefire fork1 5 tests
classes will be running in parallel and same in fork2?

Maven Version 3.8.4
Surefire version 3.0.0-M6