[maven] better support for multi module project configuration #1540
-
|
I have a maven multi module project that has a parent and some modules: In the parent pom I have defined the jreleaser maven plugin. See simplified pom.xml: For that project I want to publish artefacts to Maven Central. If I now execute To only have 1 deployment upload I added the following plugin definition for each sub module: Does jreleaser provides different / better way to handle that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The https://jreleaser.org/guide/latest/tools/jreleaser-maven.html Make sure that
You may also use the non recurse option assuming the plugin has been configured at the root
|
Beta Was this translation helpful? Give feedback.
The
jreleaser-maven-plugindoes not collect artifacts during a reactor like thenexus-staging-maven-pluginnormaven-deploy-plugindo. Instead, you're supposed to configurejreleaser-maven-pluginat a single location, typically the root project.https://jreleaser.org/guide/latest/tools/jreleaser-maven.html
Make sure that
<inherited>is set tofalse; you'd also use-plto invoke the plugin just on the root (or the project that has the plugin applied). In your case the command line could bemvn -pl :sample-parent jreleaser:full-release.You may also use the non recurse option assuming the plugin has been configured at the root
mvn -N jreleaser:full-releaseormvn --non-recursive jreleaser:f…