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

Send test reports to different directory using maven-surefire-plugin

I want to generate my reports so I used maven-surefire-plugin. This is my pom.xml: org.apache.maven.plugins maven-surefire-plugin 2.10
Amira Manai
  • 2,599
  • 8
  • 40
  • 60
1
vote
0 answers

Maven plugin dependency in the same project

Here is a sample repository for this case: https://github.com/xShadov/maven-plugin-dependency-sample When maven plugin uses a plugin dependency, and that dependency comes from the same project, maven cannot do it - it fails immediately. That is not…
Shadov
  • 5,421
  • 2
  • 19
  • 38
1
vote
1 answer

Unable to Deploy war using maven 3.x

I am trying to deploy my web-application to tomcat using maven 3.x here is the snap shot of the pom.xml file
Umesh Awasthi
  • 23,407
  • 37
  • 132
  • 204
1
vote
0 answers

How to set custom icon for javafx native package icon in .exe file(i will answer all questions)

I gonna cry,i don't know how to make this i have been in this for the last 8 hours of my life and i'm not capable to make this in solo. i made the code part-per-part here is my pom:
1
vote
1 answer

Spring Boot with multiple entry points applications via Maven profiles

I'm trying to prototype a structure in which several @SpringBootApplications are segregated by means of their packaging namespaces, like so: In Maven pom.xml, to build, I'm relying on profiles, as shown below, and described here and here: …
1
vote
1 answer

Maven plugin plugin descriptor goal does not generate mojo description documentation when using annotations

According to the Maven Plugin Plugin documentation, when creating a Mojo, you are supposed to use an @Mojo(...) annotation to denote that your class is a Mojo. Then, when you run the plugin:descriptor goal, you should have various XML files created…
1
vote
1 answer

jar file in maven Local .m2 directory not found in Android project

I've set up a Kotlin multiplatform project. I have a shared project and an Android project. I've compiled the shared project and it creates .AAR and .Jar files with 1 method. For easy syncing of changes, I've added the maven-publish plugin: plugins…
Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94
1
vote
0 answers

Determine container image digest via maven

I'm currently using the fabric8io - docker maven plugin to build container images. I need to specify further container image labels - especially the opencontainer image labels documented here. The label org.opencontainers.image.base.digest has a…
Volker Raschek
  • 545
  • 1
  • 6
  • 21
1
vote
2 answers

Skip maven plugin with property from parent pom?

I like to skip a maven plugin by setting the skip-docker-build property via a profile. skip-docker-build false
René Winkler
  • 6,508
  • 7
  • 42
  • 69
1
vote
1 answer

Wildfly Maven Plugin: add-resource - No resources were provided

Is it possible to add a datasource or jdbc-driver by executing the wildfly:add-resource goal. I only get a warning when executing the goal which says "No resources were provided". I used the "Adding Datasource" example from the projects…
schth
  • 11
  • 2
1
vote
1 answer

java.lang.NoSuchMethodError: 'java.util.Map jakarta.servlet.SessionCookieConfig.getAttributes()

I am using spring boot war file to bring up a web application. The server boots fine. When i open the url in the browser, i get this exception in the spring boot logs. The internet does not seem have solution for this problem may be because this…
1
vote
0 answers

org.springframework.beans.factory.BeanCreationException occurs while running jar file of a springboot application

There is a Spring boot application with REST APIs and I need to run the program with its jar file. After I created the jar file from that application, the program returns the following error. The same application is running successfully when it runs…
Nuvindu Nirmana
  • 230
  • 1
  • 8
1
vote
2 answers
1
vote
1 answer

OpenAPI Generator (jaxrs-spec) generates separate classes for AllOf enum object

I've created a specification that has objects with enum values. Some methods should support all enum values and therefore I thought just to put the enum objects as allOf reference, however that doesn't seems to be working. In the example below the…
1
vote
0 answers

How to resolve Maven Plugin connectors issue in eclipse?

I am facing issue while importing maven project in eclipse. I have already added maven plugin/software in eclipse. Please let me know if I am missing anything here. ejbgen-maven-plugin:1.0.0:ejbgen maven-dependency-plugin:3.1.1:properties
Hanamant Jadhav
  • 627
  • 7
  • 12