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

Avro maven plugin throws No type error for following avro schema

I am trying to build an avro schema with following structure: { "namespace": "com.myclass.avro", "name": "myclass", "type": "record", "fields": [ { "name": "field1", "type": { "name":…
overhead
  • 11
  • 1
1
vote
1 answer

Log4j2 security issue

Currently , I am using apachie.logging.log4j. artifact is log4j-slf4j-impl . Version 2.12.0. My question is that log4j-slf4j-impl is also affected by this recent security vulnerability.
Vinee-the-Pooh
  • 835
  • 3
  • 10
  • 27
1
vote
1 answer

SVN Backed Maven Repo

We are using SVN as a Maven Repositary. We knew that it isn't advisable to have SVN backed maven repository, but still we have to go with it due to limitation within our organization. SVN backed repository used currently is partially implemented.We…
Arunkumar
  • 61
  • 2
1
vote
1 answer

Test are not executed during build time

I use this Maven configuration in order to execute TestNG collection of tests:
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
1
vote
2 answers

Upgrading Maven plugins to Java 11

I am upgrading my Maven-built, Java 8 app to Java 11. In my POM I specify: 1.11 ${java.version}
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
1
vote
2 answers

Eclipse Project with Dependency Management by Maven

I have a Eclipse project where Maven manages the dependencies. I have also few jar files that are not Maven enable and I locate them at src/main/webapp/WEB-INF/lib. I have no issue to build/run the project in Eclipse. I have no issue also to run…
Lee Chee Kiam
  • 11,450
  • 10
  • 65
  • 87
1
vote
0 answers

maven-war-plugin basedir /target/dist does not exist

We're trying to build a Java-based project with Maven (v3.5.4) and with the JDK 1.8.92 but we getting an error Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project embedded-analytics: Execution…
mansing shinde
  • 445
  • 7
  • 25
1
vote
1 answer

Skip git-code-format-maven-plugin from cosium during mvn install

I have a project that is using git-code-format-maven-plugin from com.cosium.code to format code as a pre-commit hook. I am setting up a build pipeline to install this project and the runner machines do not have git installed. So the plugin is…
javaDeveloper
  • 1,403
  • 3
  • 28
  • 42
1
vote
3 answers

Maven: copying directories using exec plugin

I'm using Maven 3.0.3. I'm having trouble using the Maven exec plugin to copy the contents of one directory to another. Sadly, when I include this plugin in my pom.xml … org.codehaus.mojo
Dave
  • 8,667
  • 25
  • 72
  • 90
1
vote
1 answer

Open Api code generator maven plug in tag details

Below is my open api code gen maven plug in org.openapitools openapi-generator-maven-plugin 5.2.0
1
vote
1 answer

When compiling plugins:maven throws an error

When compiling plugins:maven throws an error Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project user-lib: Fatal error compiling: java.lang.IllegalAccessError: class…
alex
  • 324
  • 1
  • 8
  • 28
1
vote
1 answer

How can I get all plugins from java code including default plugins? Maven

When I build an effective model using help:effective-pom I get such plugins maven-checkstyle-plugin 2.15
oliaaa_s
  • 59
  • 5
1
vote
2 answers

Flex Mojo Maven Compile Question

I am trying to get the flex mojos maven compiler to run my projects. Anyone with feedback on the below information is appreciated. I am using this configuration for the maven compiler plugin and for some reason every time I run the clean install on…
adam
1
vote
1 answer

How can I stop a default plugin execution?

I'm using a javascript maven plugin. I like the war-package goal and want to use it. However it also comes with a jsunit goal bound to the test phase. This part of the plugin isn't great so I want to just turn it off. How can I do this? Plugin xml…
Programming Guy
  • 7,259
  • 11
  • 50
  • 59
1
vote
1 answer

Jenkins PMD details from docker: Copying the source file failed

I'm running Jenkins maven task inside docker image. My task generates pmd.xml which is then parsed by Jenkins plugin. The problem is that path inside docker image is different that Jenkins workspace. This results in PMD view to crash when…
makozaki
  • 3,772
  • 4
  • 23
  • 47