Questions tagged [maven-plugin]

Do not use this tag for the use of specific Maven plugins. Use it only for Maven plugins development related questions.

Maven Plugins, also known as Mojos, are the central feature of Maven that allow for the reuse of common build logic across multiple projects.

From the official Maven documentation

"Maven" is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on. Almost any action that you can think of performing on a project is implemented as a Maven plugin.


Please do not use this tag for the use of specific Maven plugins. Use it only for Maven plugins development related questions.

More information

3670 questions
1
vote
2 answers

Maven set version error only in Jenkins: Only [] formats are supported for change recordings

Tried different version but to know avail - 3.0.0 seems to be the latest: org.apache.maven.plugins maven-release-plugin 3.0.0
pvma
  • 403
  • 8
  • 14
1
vote
0 answers

Right way to read modules in multi-module project

Wondering what would be the best approach to read and resolve all modules in multi-module project? For example i want to build only a single module but at the same time i want to know about all modules around (without building). I've found…
Vladimir I
  • 111
  • 2
  • 5
1
vote
1 answer

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.6:repackage

I am trying to run a sample maven project. Below is my pom.xml file
1
vote
1 answer

git-commit-id-plugin does not print the git branch name

I use git-commit-id-plugin in my pom.xml as follows: pl.project13.maven git-commit-id-plugin 4.9.10
Min Chen
  • 75
  • 1
  • 6
1
vote
1 answer

How can I use the Maven Assembly Plugin to create a ZIP archive that includes a specific folder and all of its files?

I have a project with structure like this I am currently attempting to create a compressed zip folder named "wso2mi.zip" and my goal is to include all files and directories that are contained within the "wso2mi" folder. For this purpose, I have…
Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202
1
vote
1 answer

How to set the order of maven plugins executions in the same phase and from different plugins

I want to print messages before I run the maven plugin and after it. I try something like that: com.soebes.maven.plugins echo-maven-plugin 0.5.0
1
vote
0 answers

SunCertBuilderException in VS Code/Karate/Java/Maven framework

Trying to find a solution for the error in my framework for over a month now. We have Karate/Cucumber project in VS code using Maven/Java, after cloning it to my machine, only me from our team can’t run **mvn clean install ** command I’m getting…
mel-cyber
  • 11
  • 1
1
vote
1 answer

Failed to initialize Quarkus bootstrap Maven artifact resolver (Quarkus ERROR)

I want create a quarkus project but I have a error. I'm following these steps: 1 - open this website: https://code.quarkus.io/ 2 - I select 2.16.4 version. Build tool: maven - java version: 17 and I added RestEasy Reactive extension. Then Generate…
1
vote
0 answers

Maven - timestamp with timezone

My requirement is very simple, I need time in format : yyyyMMdd-HHmm and timezone : EST From this maven bug, I assume the timezone feature is available in maven : https://issues.apache.org/jira/browse/MNG-5452 Tried multiple options, and searched a…
Molay
  • 1,154
  • 2
  • 19
  • 42
1
vote
0 answers

Import profile from different pom

I know that you cannot inherit two parent POMs, but I need to get around a situation where I would need just that. In short, the situation is: Company A requires every project to use the company parent POM. Some plugins/configurations are essential…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
1 answer

error: invalid source release: 1.17 whiling using openJDK17 to build

I updated the maven.compiler.target and maven.compiler.source of my maven project from both 1.8 to 1.17 and I also updated my JDK to openjdk version "17.0.6" 2023-01-17. I confirm my maven version is also using jdk17 by running mvn -v. Apache Maven…
Bostonian
  • 615
  • 7
  • 16
1
vote
0 answers

Maven publication 'maven' cannot include multiple components / Publication only contains dependencies and/or constraints without a version

Here is my project structure: - snow - snow-lib - snow-base-util - snow-web-common - snow-web - snow-user This is the code, very simple. https://github.com/site-weic/snow case 1 When I configure snow-web-common publish to Maven…
Wei
  • 451
  • 1
  • 5
  • 15
1
vote
0 answers

maven-enforcer rule not being inherited

I defined the enforcer plugin within my parent pom like so: org.apache.maven.plugins maven-enforcer-plugin 3.2.1
Pompompurin
  • 165
  • 3
  • 14
1
vote
1 answer

How build exe file in multi module project?

I have created a multi-module maven application where there are 2 modules. The first module plays the role of a library, the second module has the main method. I want to get the assembly of the exe file from the launching (second) module and the lib…
jenigen
  • 128
  • 9
1
vote
2 answers

maven plugin api: @Paramerter using setters doesn't work

I am writing a custom maven-plugin for my project. Following the instructions mentioned here https://maven.apache.org/guides/plugin/guide-java-plugin-development.html#using-setters I added a @Parameter using setters as shown…
Kiran Mohan
  • 2,696
  • 6
  • 36
  • 62