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

How to create an event listener that can push keycloak event logs to s3?

I have built an Event Listener SPI (Plugin) for Keycloak by referring https://dev.to/adwaitthattey/building-an-event-listener-spi-plugin-for-keycloak-2044. By copying the generated JAR file to $KEYCLOAK_DIR/standalone/deployments/ and adding the…
1
vote
1 answer

mvn test failing with SecurityException: Invalid signature file digest for Manifest main attributes (scala spark project)

mvn test failing with [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ project-name --- [INFO] [INFO] --- scalatest-maven-plugin:1.0:test (test) @ project-name --- Discovery starting. *** RUN ABORTED *** …
Imran K
  • 81
  • 1
  • 12
1
vote
2 answers

Compilation failure while executing wsgen task using maven 3.0.3

I am trying to get the NHIN-Direct Secure email gateway to compile. One of the projects craps out with the following error. [ERROR] Failed to execute goal org.codehaus.mojo:jaxws-maven-plugin:1.12:wsgen (default) on project config-service:…
MSVictim4_0
  • 11
  • 1
  • 3
1
vote
2 answers

Get all 3rd Party dependencies module is using in Maven

We have a multi-module maven project. I have a use case where I want to know to get a list of all the dependencies which is being used in code with version: If its declared in pom and being used. Not declared in pom but still being used…
bewithaman
  • 768
  • 8
  • 16
1
vote
1 answer

Cannot find ContractVerifierUtil class while trying to generate spring cloud contracts

I'm trying to generate cloud contracts for my API but the build is failing as the generated test class cannot find the below class from the dependency. Compilation failure--import static…
1
vote
0 answers

how can i copy multiple dependencies to multiple folders using maven dependency plugin

we are going with a ant-Maven configuration, how i build the application : through ant's build.xml called from maven's ant-run plugin what is needed to run build.xml: to have dependencies in a lib folder issue faced : we have two folders for…
1
vote
1 answer

maven, get execution id of goal at runtime in mojo execute()?

Is there a way to get the current execution id of a goal at runtime from the mojo implementation? I would like to use the execution id in the mojo code to avoid the need for an extra configuration parameter. Here is an execution…
Martin Hauner
  • 1,593
  • 1
  • 9
  • 15
1
vote
0 answers

The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java are missing or invalid

I am getting this error while adding exec-maven-plugin in my pom.xml file. My project structure is : Main project -> 2 sub projects and in 1 of sub project I have added exec-maven-plugin in the pom.xml. When I am running mvn clean compile exec:java…
ankit
  • 380
  • 4
  • 16
1
vote
0 answers

Download specific jars with dependency using maven plugin

I need to download a set of specific jars with there dependency and place it in a separate folder. Below is my code from pom.xml copy-dep
Kashyap
  • 385
  • 3
  • 13
1
vote
0 answers

Invalid signature file digest for Manifest main attributes while running jar

I am trying to run the jar file of my project. I am working on STS. a But every time i am trying to run my jar file its giving me exception like Error: A JNI error has occurred, please check your installation and try again Exception in thread "main"…
1
vote
2 answers

maven: How to load tools.jar/classes.jar in an OS independent way?

I am using a maven plugin that requires a class that is contained in the jdk's (windows) tools.jar (mac it's in classes.jar). I add this as an explicit dependency of the plugin as follows:
Jon Lorusso
  • 458
  • 1
  • 7
  • 19
1
vote
0 answers

How to get properties from .yaml files?

I am new to maven and yaml. I wanted to include the values from the key value pairs in .yaml file. I tried searching for an answer but could find any useful resource. Where should I save the .yml file in my maven project so that I can access…
Akash Singh
  • 73
  • 1
  • 9
1
vote
1 answer

Sharding-jdbc: preciseAlgorithmClassName: java -jar project.jar error:Caused by: java.lang.ClassNotFoundException

https://github.com/apache/shardingsphere/issues/5657 dependency: org.apache.shardingsphere sharding-jdbc-spring-boot-starter 4.0.0-RC1
1
vote
1 answer

How to convert a maven plugin into a gradle plugin (maven-surefire-puglin )?

I am trying to use this plugin but with gradle: 1.8.10 io.qameta.allure allure-junit4
FelipeCaparelli
  • 135
  • 3
  • 13
1
vote
2 answers

Unable to deploy using wildfly-maven-plugin 2.0.1 in JBoss EAP 6.4 environment

Getting the below error while trying to deploy in JBoss EAP 6.4 environment using wildfly-maven-plugin 2.0.1. While changing the native port from default (9999) to any other port it's failing with the below error. java.net.ConnectException:…
Debojyoti
  • 13
  • 6