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

maven 3.6.2 mvn help:system report errors

The following is the error logs and I didn't use a network agent. And I had set the mirrors and repository, so I'm very confused what's wrong with it. I can open the mirrors site in my browser, so I think my network is OK. Downloading from…
Beview
  • 11
  • 3
1
vote
2 answers

How to include custom folder in Maven Package?

Below is my project structure: META-INF/abc.jpg META-INF/xyz.jpg src/com/hcc/files.java pom.xml Below are the contents of pom.xml:
Naveen Kumar
  • 1,266
  • 1
  • 21
  • 50
1
vote
2 answers

no main manifest attribute maven build even after adding class path and main class

I am facing a error while running application jar no main manifest attribute, in jaspr2-0.0.1-SNAPSHOT.jar. In all the answers I find that add class path and main class should be mentioned. In my POM i have mentioned both. After the build I find…
1
vote
0 answers

how to avoid Shutting down ExecutorService while running mvn compiler:testCompile programmatically?

I have maven project with Spring boot, in which I am using Process command as below: Process process = Runtime.getRuntime().exec("cmd /c mvn compiler:testCompile", null, new File(UPLOADED_FOLDER)); UPLOADED_FOLDER: contains the path of main…
Das Khatri
  • 93
  • 6
1
vote
1 answer

Maven build is not using the updated version of model(pom.xml)

I have a maven project which I do get the new project version from user with: Current Version = 1.0.0 org.codehaus.mojo versions-maven-plugin 2.7
frdsprtrdr
  • 384
  • 1
  • 2
  • 11
1
vote
2 answers

Cannot find class from jar in maven plugin

I'm making a maven plugin to start, stop and clear a database. I'm using hsqldb for it. I have a class (called ServerStart) to start the database: import java.io.File; import java.sql.Connection; import java.sql.DriverManager; import…
Walle
  • 540
  • 1
  • 9
  • 32
1
vote
1 answer

Why is Tomcat Maven Plugin failing to redeploy with error 404?

A 404 error is occurring after trying to redeploy via Tomcat Maven plugin, which uses Tomcat Manager to perform this action. It was verified that the Manager application is not available at http://localhost:8080/manager. pom.xml:
1
vote
0 answers

Quarkus: quarkus:dev goal cannot use properly jax-rs resource defined in another module

I have 2 maven modules. 1st one defines a simple PingResource (code below) 2nd (main) module references 1st module and uses quarkus-maven-plugin to a) create uber jar, main-runner.jar b) launch the application by mvn quarkus:dev If I launch the…
Lonestar
  • 51
  • 6
1
vote
0 answers

Skip plugin execution for root pom

can you tell me how to skip plugin execution of root pom? This pom contains only defined modules:
Denis Stephanov
  • 4,563
  • 24
  • 78
  • 174
1
vote
1 answer

How can I import or use Maven pom snippets or macros in the main pom file?

The Eclipse IDE requires the snippet below in the (details don't matter). Is there a way to import such a Maven fragment from another file? Does Maven have any macro/import/snippet/sub-pob support? I would like to obtain…
Gabriel Petrovay
  • 20,476
  • 22
  • 97
  • 168
1
vote
0 answers

Executing Project through Maven Invoker is throwing a compilation error

I am trying to execute the maven project from java main Please refer the code below. public static void main(String args[]) throws MavenInvocationException { InvocationRequest request = new DefaultInvocationRequest(); …
1
vote
1 answer

Add specific package from provided dependency into jar

How to add one package with all classes and subpackage from provided dependency into the Jar. I have got dependency like : com.a dependencyA provided What…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
1
vote
1 answer

Maven changing the maven repository from {user}/.m2/repository to projectfolder using pom.xml

I am just wondering is it possible to change the repository from m2 to my project folder using pom.xml setting? Or is there another self contained way to do it, except using settings.xml from maven?? Cheers, Andrei
JustMe
  • 289
  • 3
  • 10
1
vote
1 answer

maven-war-plugin does not change .war default directory

I try to change default .war directory by using maven-war-plugin org.apache.maven.plugins maven-war-plugin 3.2.2
Jelly
  • 972
  • 1
  • 17
  • 40
1
vote
1 answer

What version of Java should I use for developing my MOJO Maven Plugin?

I am currently implementing a new Maven Plugin and I would like to use Java 11 for compilation and execution. However, I would like my Maven plugin to be used by most of our projects. Some of them are running in Java 8, some in Java 11. Is it…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
1 2 3
99
100