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

org.xml.sax.SAXParseException: 'GovernmentIDType' is already defined

I a trying to generate Java classes from XSDs provided by third party. However I am getting the error…
1
vote
0 answers

maven Failed to collect dependencies spark commons-code

Seeing maven build errors but I don't see commons-codec:jar:1.15 in jests3t as a dependency. Could not resolve dependencies for project XXXX: Failed to collect dependencies at org.apache.spark:spark-core_2.11:jar:2.3.3 ->…
vkt
  • 1,401
  • 2
  • 20
  • 46
1
vote
1 answer

Building docker image for multi module project pushing jars to classpath

I am trying to create docker image for my project which is having multiple modules. The need is to build the image in such a way that the image should contain the child module jar in a given classpath. The structure of my project is parent_project …
Ashit_Kumar
  • 601
  • 2
  • 10
  • 28
1
vote
2 answers

package javax.xml.bind.annotation does not exist

I have tried to build a springboot application via commandpromt using command mvn clean install but its giving following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project…
SHILPA
  • 57
  • 1
  • 3
  • 11
1
vote
0 answers

Include javadocs of dependencies inside dependencies

I am working on two things: The main project and its library. I update the library regularly and use it in the main project. My library gets released on Github and I get the release through https://jitpack.io. Now I simply want to read the javadocs…
1
vote
1 answer

frontend-maven-plugin failing in npm install with error "npm ERR! cb() never called"

I am trying to use frontend-maven-plugin to build springboot + react project,I am successfully able to run the build in local machine but when the build runs in a teamcity agent it fails. I have to bypass corporate proxy so that npm install works as…
abs
  • 35
  • 7
1
vote
1 answer

Specify a xml catalog file to the maven 2 axis plugin

When I use the maven axis plugin to generate java code from a given wsdl file, it tries to reach out to the internet to resolve soap, wsdl etc schemas. Is there a way to specify the xml catalog file to the plugin or to maven in general?
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
vote
1 answer

Eclipse Apache ISIS HelloWorld archetype errors: flatten, QHelloWorldObject, maven build java.sql.SQLException missing

I'm trying to get an apache ISIS project to work correctly in Eclipse. I encounter some problems: compile error in src/main/java/domainapp.dom.impl/HelloWorldObjects.findByName(...): QHelloWorldObject cannot be resolved to a type pom.xml…
Koen
  • 81
  • 3
1
vote
2 answers

protoc did not exit cleanly and Missing: ---------- 1) com.google.protobuf:protoc:exe:${os.detected.classifier}:3.6.1

I am trying to build maven, every time when I build on eclipse using maven update getting Missing: ---------- 1) com.google.protobuf:protoc:exe:${os.detected.classifier}:3.6.1 error. From the command line I am getting below error. [ERROR] Failed…
Maana
  • 640
  • 3
  • 9
  • 22
1
vote
1 answer

Maven plugin - How to configure element for each item of a list

I'm trying to setup and enforce code coverage at the parent module but allow overrides from the child modules. Specifically jacoco-maven-plugin and exclusions for rules coming from child modules. I've been…
1
vote
0 answers

Intellij: Fatal error compiling: invalid flag: --release [Help 1]

I am really new to this. I am trying to push my GitHub code to Heroku for a discord bot. When I push my code to Heroku, I get the error saying [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile…
ßuddhα
  • 11
  • 2
1
vote
1 answer

Unable to use maven in Eclipse IDE

I am trying to create Maven project in my eclipse IDE after choosing File->new->other->Maven Project-> maven-archetype-quickstart version 1.1 and i am getting this error Could not resolve archetype…
Sankar
  • 11
  • 2
1
vote
1 answer

WSO2 ESB Integrator - While doing Maven build on proxy service

Am having the integrator service (proxy service) in which local-entry is getting used. Now when am trying to do the maven build on the service, am getting following error on the build. ESB Local Entry plugin dependency added in…
Raju
  • 11
  • 3
1
vote
1 answer

Passing parameters to Custom Lifecycle from a mojo

i have written a custom maven plugin which extends the axis2 wsdl2java plugin with the concept of creating custom lifecycle where the wsdl2java plugin is executed before goal of my custom plugin is executed. The code for invoking the custom…
Aadhya
  • 11
  • 2
1
vote
1 answer

Maven does not see my updated java file to compile

I am trying to run a java file build in maven by using /zhome/9e/b/129343/Maven/apache-maven-3.6.3/bin/mvn exec:java -Dexec.mainClass="org.matsim.contrib.ev.example.MyRunEvExample" However, although the location of an input file is: final String…
user3474218
  • 51
  • 1
  • 7