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

Fatal error compiling: invalid target release: 12 -> [Help 1]

I am using Codeanywhere and I need to run a web server with maven. But it gives me this error: Fatal error compiling: invalid target release: 12 -> [Help 1], as also seen in the image but I don't understand how to fix it.
1
vote
1 answer

When try to mvn clean install -> an error package does not exist appear

I have been trying to do: mvn clean install on a project which depends on external jar, but got: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:testCompile (default-testCompile) on project automation-service:…
1
vote
0 answers

With 'cxf-xjc-plugin' generated classes do not properly import other generated classes

I want to generate Java classes from multiple, on each other dependent, to me provided XSD files. Because I use Java 11 I try to achieve this with the cxf-xjc-plugin for Maven. The generating part does work fine for the most part but one: the import…
Puck
  • 33
  • 1
  • 9
1
vote
1 answer

Generate and update changelog.md after mvn release:perform

I would like to generate, update changelog.md and commit to Bitbucket repository after mvn release:perform is done. In angular, it has @semantic-release/git, @semantic-release/commit-analyzer, @semantic-release/release-notes-generator,…
bittersour
  • 937
  • 2
  • 11
  • 32
1
vote
1 answer

Version mismatch in pom.xml

I'm fiddling with maven to use with IzPack, but for some reason I keep getting the error that the izpack plugin pom is not a 4.0.0 pom. In the repo1.maven repository, I see this tag in the pom: 4.0.0 So, if my pom is…
Helfdane
  • 113
  • 1
  • 2
  • 5
1
vote
1 answer

Enum not getting generated correctly by jsonschema2pojo-maven-plugin

I have the following field in json schema of a request: "orderType": { "type": "string", "description": "The orderType indicator.", "enum": [ …
humbleCoder
  • 667
  • 14
  • 27
1
vote
0 answers

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java

I used 'mvn install' and 'mvn exec:java' to start my project, but the error occurred as the title. What exact 'Mainclass' should I set to 'mojo:exec-maven-plugin'? I tried to delete full m2.repository but it didn't work for me. I also tried to add…
chao zhang
  • 11
  • 1
1
vote
1 answer

MessageBodyReader not found for media type=application/json;charset=utf-8

While deploying my Mule project with Mule runtime 4.3.0 to cloudhub through maven, i am getting below exception: Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:3.3.5:deploy failed: MessageBodyReader not found for media…
Vikas Puri
  • 23
  • 3
1
vote
1 answer

maven-assembly-plugin: Excluding files

I have this piece of code in my pom.xml file org.apache.maven.plugins maven-assembly-plugin 3.3.0
en Peris
  • 1,537
  • 12
  • 31
  • 63
1
vote
0 answers

How to execute newly developed maven plugin in the same project

I have a maven project with a couple of child modules. One is a new maven plugin. Another one is a test module where I want to run my newly developed plugin to ensure that it works fine. In the test module I do a normal reference to my plugin: build…
Alexey Anufriev
  • 415
  • 6
  • 19
1
vote
1 answer

Maven Sure-Fire - ClassNotFoundException for StartupReportConfiguration

I am running my tests with spring boot. Also I am using OpenJdk-11 and maven version 3.6.3: org.apache.maven.plugins maven-surefire-plugin 3.0.0-M3
Vishnu Dubey
  • 141
  • 1
  • 3
  • 10
1
vote
0 answers

Problems with Java app at runtime due to class references from required .class files unresolved

VS Code with Java plugins, using Maven POMs for a test application that uses classes in a jar that reference classes in another jar results in runtime error saying that the class referenced from the required .class file cannot be resolved. Both jars…
rdiddly
  • 343
  • 1
  • 3
  • 13
1
vote
2 answers

Maven - disable parent distributionManagement in child POM?

We are using third party parent pom where they defined own distributionManagement. We are useing own server to publish artifacts. So whenever i am using mvn clean deploy, then application is trying to upload artifacts on parent server which is…
Abhishek Kumar
  • 435
  • 1
  • 6
  • 16
1
vote
0 answers

Tycho pomless - Configure / prevent plugin execution for individual modules / parent project

I recently started to get my head around using Tycho to build Eclipse plugins with Maven. Currently, I use the Tycho pom-less extension and a single parent POM to configure the build. Now I realized, the plugins configured in the parent POM are not…
Johnson
  • 306
  • 1
  • 15
1
vote
0 answers

How to pass custom input with mvn clean install and access this input in mojo class?

I am creating a custom maven-plugin which requires some json files in the the mojo class and do some further processing on them. I will be taking these files as input from the user. is there any way to pass these files or path of these files with…
akash patel
  • 163
  • 9