Re: Plugin goal that will trigger "verify"

2022-03-10 Thread Thomas Broyer
On Thu, Mar 10, 2022 at 5:22 AM Nils Breunese  wrote:

> Thomas Broyer  wrote:
>
> > Le mer. 9 mars 2022 à 23:48, Nils Breunese  a écrit :
> >
> >> The Maven build lifecycle consists of phases [0] and you can bind plugin
> >> goals to phases. As far as I know it doesn’t work the other way around,
> so
> >> you can’t make a plugin goal execute particular phases, which seems to
> be
> >> what you’re asking. It should be the other way around: you can
> associate a
> >> plugin goal with a phase and then when you execute that phase all
> previous
> >> phases will have been executed, and your plugin goal will be executed.
> >
> > This is not entirely true. A mojo can be annotated with @Execute() to
> > execute a lifecycle up to a given phase before the mojo itself is
> executed.
> > That's the difference between jar:jar and jar:jar-no-fork for instance.
>
> Ah, interesting, I didn’t know that. But that can only controlled by the
> Maven plugin developer then.


Indeed (
https://maven.apache.org/developers/mojo-api-specification.html#the-descriptor-and-annotations),
but that was what Steve was asking about, right?

-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/ 


Dependency version change on dependency import

2022-03-10 Thread Rimvydas Vaidelis
Hello,

I have a multi-module project and I want to create a bill of materials
(BOM) module. BOM module contains dependencyManagement. My parent module
imports BOM module. BOM module will be used in another project that is
going to use my library. In development environment I would like to change
version of one dependency. I tried to do that using a profile but it seems
that maven does not activate the profile while performing import. Is it a
normal behavior? Maybe you could recommend any other way to implement
dependency version change in development environment.

Thanks in advance for the answers.


[ANN] Apache Maven Compiler Plugin 3.10.1 Released

2022-03-10 Thread Olivier Lamy
The Apache Maven team is pleased to announce the release of the Apache
Maven Compiler Plugin, version 3.10.1

The Compiler Plugin is used to compile the sources of your project.

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

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


  org.apache.maven.plugins
  maven-compiler-plugin
  3.10.1


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

https://maven.apache.org/plugins/maven-compiler-plugin/download.cgi

Release Notes - Maven Compiler Plugin - Version 3.10.1

** Bug
* [MCOMPILER-346] - workaround to jdk bug: assertionError inside javac
when using javax.tools API
* [MCOMPILER-485] - Incorrect internal string format in generated
package-info.class files on Windows

** New Feature
* [MCOMPILER-426] - dedicated option for enabling preview feature

Enjoy,

-The Apache Maven team