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
0 answers

lost maven after eclipse update

I use a from customer installed eclipse with different maven projects: After the last (automatically) update I don't see: Window->Preferences->Maven I don't see menu point: Run As->Maven buid I can not create a maven project In…
1
vote
1 answer

how to load a jar package in a maven plugin

I have created a maven plugin, the plugin will parse java source code and submit the results to my console. But now I have a problem, some java classes are written by a third-party or by other groups at my company, then my plugin can't get these…
jerry.yang
  • 11
  • 1
1
vote
2 answers

Not able to integrate AspectJ with Maven

I banged my head for two days to integrate aspectj with maven, But did not work. I am writing a simple program with two advices (which works fine in eclipse, so I am sure it's not a code side error). I have recently started using maven for project…
Panks
  • 601
  • 1
  • 11
  • 20
1
vote
0 answers

Gradle fails to find custom plugin when building in the CI but succeeds locally

I have a gradle kotlin project that uses a Gradle plugin I wrote and published to a Maven repo. When I build locally my project gradle succeded to download the plugin packages from Github. When I build using the github CI it fails giving the…
RoiA
  • 11
  • 2
1
vote
2 answers

Executing individual maven plugin goals in multi-module project

I'm trying to overcome well-known maven issue, described in various SO questions, for example: Maven exec:java goal on a multi-module project Spring Boot Multi-Module maven project repackage failed before now I was familiar with following…
Andrey B. Panfilov
  • 4,324
  • 2
  • 12
  • 18
1
vote
0 answers

DependencyConvergence error when compiling maven project

We have multimodule project . I could see one place considers SNAPSHOT and another place considers exact version . I get below error when building pom. Could some one please help on this? [WARNING] Dependency convergence error for…
1
vote
0 answers

Spread config files to child poms (maven)

I have a parent pom which is inherited by multiple other poms superpom |--pokemon |--|--app |--|--infrastructure |--yu-gi-oh |--|--app |--|--infrastructure I have multiple config files like: a cve-suppress.xml file for the good old dependency…
Wumba
  • 99
  • 1
  • 12
1
vote
1 answer

Maven build plugin and Bamboo build

I'm using the maven build plugin with the following configuration: org.codehaus.mojo buildnumber-maven-plugin 1.0
HamoriZ
  • 2,370
  • 18
  • 38
1
vote
0 answers

Upgrade to spring 2.4.0 cased problem of MongoDB connection

I upgraded the application from spring boot 2.0.5 to spring 2.4.0. However, I received java.lang.IllegalArgumentException: The connection string is invalid. Connection strings must start with either 'mongodb://' or 'mongodb+srv:// The…
1
vote
1 answer

With the Maven Swagger code generation plugin, how can I generated DTOs from schemas with proper required annotations (e.g. @NotNull)?

I'm using the Maven swagger codegen plugin (v 3.0.17). I was curious how, if possible, would I configure the plugin so that when my DTOs are generated from my defined schemas, the required attributes are marked with "@NotNull" or "@NotEmpty"…
1
vote
2 answers

Unable to get the auto-suggestion for annotations for springframework inspite of using the dependency

I have create a spring project from spring initializer and have imported it to IntelliJ, have included the Web dependency while creation but i am not getting the auto suggestions for annotations though pom.xml has the dependency for it. …
1
vote
0 answers

Jlink not creating runtime image

I'm trying to use mvn clean javafx:jlink but I get an error. At first I noticed Error: Module jdk.jsobject not found but when using mvn -X clean javafx:jlink I saw that jlink.exe from Android Studio\jre\bin\jlink.exe was being used. Could this be…
Dmitriy
  • 375
  • 1
  • 18
1
vote
0 answers

Maven Ear Plugin use missing class on plexus-utils

For project circumstances, I'm using older versions of Maven and Java, when I try to package the project, using maven ear plugin 2.7, uses plexus-utils version 1.1 The problem... It calls org.codehaus.plexus.util.xml.XmlStreamWriter, this class is…
1
vote
0 answers

How to use maven-dependency-plugin:resolve to resolve dependencies of specific POM file

In my maven project, when I use maven-dependency-plugin:resolve, it resolves all the dependencies used by the project in text file. I want to resolve specific dependencies of particular POM file. But there is no inputFile, file, url tags support…
1
vote
1 answer

Pact verify not publishing result to pact broker

I was successful to publish the contract in pact JS to Pact broker and now am trying to verify the contract in Java spring boot, the contract verification pass with no issues but the result of that verification doesn't get published to Pact broker…