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
1 answer

Unable to resolve the class util in gmaven plugin

org.codehaus.gmaven gmaven-plugin 1.5
Maha
  • 77
  • 1
  • 8
1
vote
0 answers

Is there a way to use an older version of Java with scala-maven-plugin

I would need to compile a legacy scala project (Scala version 2.8.0). The version is incompatible with JDK8. So I would like to ideally compile the project using JDK 7. I am looking for a configuration something like the following in…
Jack
  • 11
  • 3
1
vote
1 answer

Proguard Maven Plugin Doesn't Use The Specified Proguard Version

The Proguard Maven Plugin is not using the specified proguard version and thus I am getting the following error: (Can't process class [com/sun/javafx/charts/ChartLayoutAnimator.class] (Unsupported class version number [54.0] (maximum 52.0, Java…
DeveloperKurt
  • 758
  • 1
  • 7
  • 21
1
vote
1 answer

How to make Maven run plugins downloaded from 3rd party repositories

With Maven 3.8.2 I have a plugin that I download from a custom Maven repository: $ mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get \ -DremoteRepositories=excelfore.private::::https://some_url…
Pawel Veselov
  • 3,996
  • 7
  • 44
  • 62
1
vote
1 answer

How to run the maven plugin via cmd in the root directory without running this plugin in all modules?

We have a plugin that needs to be run via cmd, for example: mvn com.test.plugins:some-plugin:2.1.0:generate There is a root pom.xml, which has 3 modules first second
oliaaa_s
  • 59
  • 5
1
vote
1 answer

Spring-Boot-Maven-Plugin issue "could not transfer"

I have got an issue with a cloned project: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.1.7.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for…
1
vote
1 answer

Why I use frontend-maven-plugin build vue have an empty error

I use frontend-maven-plugin to build my spring boot program,but I have an error. Error Message: [INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ monitor-admin --- [INFO] Node v10.16.0 is already installed. [INFO]…
1
vote
1 answer

Missing artifact error and The container 'Maven Dependencies' references non existing library

I start a new project in Maven and I had some code while searching for dependencies ,I get this error/message "Missing artifact com.google.common:google-collect:jar:1.0-rc1" and this in the code how to solve it ? I found an answer
Vladi
  • 1,662
  • 19
  • 30
1
vote
1 answer

Jenkins Build Failure, is this a Path variable issue?

I am new to Jenkins and currently doing a course on Udemy, I am working on Windows. I am trying to build a sample project using the Maven plugin. I am getting the following error in the console output after the build failure. ERROR: Failed to parse…
ShashankAC
  • 1,016
  • 11
  • 25
1
vote
1 answer

no mssql-jdbc_auth-8.4.0.x64 in java.library.path | Alternate to copying it manually to java home / bin

I am trying to develop a command line utility which is using "mssql-jdbc_auth-8.4.0.x64.dll" To build the utility I am using a maven-plugin - org.codehaus.mojo
horizon
  • 453
  • 2
  • 12
1
vote
1 answer

What is a java.io.File[] in a Maven POM?

I often stumble over the documentation of typed values for Maven plugin parameter. Take for example excludeRoots of the maven-pmd-plugin. It is a java.io.File[]. This could mean that it…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
1
vote
1 answer

Difference between apache:velocity 1.6.4 and org.apache.velocity:velocity-engine-core 2.3

Can anyone please suggest, what dependencies need to be modified while moving from apache:velocity 1.6.4 to org.apache.velocity:velocity-engine-core 2.3 ? and also please explain, what are the major changes are brought under velocity-engine-core 2.3…
1
vote
0 answers

WADL2JAVA Mavaen Plugin Not generating the classes

Using CXF WADL2JAVA Maven Plugin to generate the java rest client classes. But getting below error from cxf tool org.apache.cxf.tools.common.ToolException: java.lang.IllegalStateException: Single WADL resources element is expected to replicate in…
1
vote
1 answer

Automatic versioning dependencies in child modules using parent pom, Java+maven

I have 3 repositories. In one there is parent-pom.xml, which is a parent for A1 and B1 repository. The B1 repository also has A1-repository in dependencies. If I change the version in parent-pom.xml, I have to manually change it also in A1-pom.xml…
1
vote
0 answers

Maven dependency pom files showing html instead of the correct pom file

This is the pom file that it generated: This should be the pom file I think: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom. I have tried putting a mirror in my settings.xml…
Mrxbox98
  • 11
  • 1