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 copy files from file system to IntelliJ IDEA 10.5

I have just started using IntelliJ IDEA.I am really novice to this IDE, so please bear if my question sounds silly. I am facing a problem regarding copying of files from OS's File explorer to IntelliJ Project. I am using following versions: …
Jignesh Gohel
  • 6,236
  • 6
  • 53
  • 89
1
vote
0 answers

Maven Mojo leaks static information to subsequent executions

I am working on a Maven compiler plug-in for a new programming language. Like with other Maven compiler plug-ins, this plug-in is invoked in different phases of a module build (e.g., compile, test-compile), and for multiple modules during a reactor…
raner
  • 1,175
  • 1
  • 11
  • 21
1
vote
0 answers

How to resolve required bundle error in maven project for spring boot and batch project?

I am getting the following error in my log while running a spring boot and spring batch project. !SESSION 2023-01-19 14:16:57.128 ----------------------------------------------- eclipse.buildId=unknown java.version=17.0.5 java.vendor=Eclipse…
1
vote
2 answers

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.12:run (default-cli) on project : Application finished with exit code: 1

I have a SpringBoot application with the following version. I plan to update spring-boot-starter-parent 2.1.3-RELEASE to 2.5.12. Below are the upgraded versions,
1
vote
2 answers

maven build works on windows but fails on linux

I use the azure pipeline to build the java spring boot app using maven. when I run the pipeline on a windows machine works fine but when I use a Linux machine gives me error. [ERROR] Failed to execute goal…
1
vote
1 answer

The POM for org.json:json:jar:20210118 is missing, no dependency information available

I am adding jar dependency in pom.xml file in maven project org.json json 20210118 but i got error: The POM for org.json:json:jar:20210118 is…
1
vote
0 answers

Add mvn classifier for POM packaging

Today Maven allows the creations of various versions of a JAR using the classifier option of Maven JAR plugin. Just want to know if there's any plugins to do the same for POM packaging? So that I can have multiple versions of the same POM artefacts…
Antho Christen
  • 1,369
  • 1
  • 10
  • 21
1
vote
0 answers

create spring boot 2.7 'mvn spring-boot:build-image' failed

Building docker image using spring-boot-maven-plugin failing. [INFO] Retrying request to {}->docker://localhost:2376 [INFO] I/O exception (java.io.IOException) caught when processing request to {}->docker://localhost:2376:…
1
vote
1 answer

What mean packaging:bundle mean inside the POM?

When I download the protobuf-javalite-3.17.3 pom: https://repo1.maven.org/maven2/com/google/protobuf/protobuf-javalite/3.17.3/protobuf-javalite-3.17.3.pom I can see inside bundle What packaging : bundle mean exactly? on…
zeus
  • 12,173
  • 9
  • 63
  • 184
1
vote
1 answer

Can't install m2e plugin into IBM RTC Eclipse 6.0.6.1

I want to integrate maven plugin into Eclipse RTC client (Team Concert, version 6.0.6.1). How to fix it? Thks I've tried to use other versions of that plugin: https://download.eclipse.org/technology/m2e/releases/ But the result is the same..
1
vote
2 answers

Empty WEB-INF/classes in the generated war file (Spring boot maven project)

I'm trying to run my spring boot application with maven from my virtual machine with CLI, but I have got this error : Could not find or load main class start.Application Caused by: java.lang.ClassNotFoundException: start.Application I figured out…
alia
  • 163
  • 3
  • 12
1
vote
0 answers

How to determine a frequency of maven dependency usage in a project

Let's say we have an application that pulls in two different dependencies in order to check if a String is null or empty. If the majority of the application is using dependency A for checking the String is Empty and only one class is leveraging…
click
  • 447
  • 1
  • 7
  • 25
1
vote
0 answers

Remote deploying to Tomcat 10 using Cargo maven3 plugin: no container defined

I would like to deploy an artifact to a remote instance of Tomcat 10. For this purpose I have been trying the Codehouse Cargo Maven 3 plugin, but I am getting an error: No container defined. The plugin configuration:
comodoro
  • 1,489
  • 1
  • 19
  • 30
1
vote
0 answers

How to generate Swagger v3 documentation in JSON or YAML?

I'm using the Swagger v3 annotations to document my controller routes, e.g.: @OpenAPIDefinition(info = @Info(title = "swagger-spring", description = "testing swagger in a spring environment", version = "0.1", …
Thilo Schwarz
  • 640
  • 5
  • 24
1
vote
1 answer

What is maven release plugin and what does github to do with it?

What exactly is maven release plugin? What is its purpose? I found it in the middle of a tutorial but don't understand what it is useful for. Also, the teacher is showing us how to create tags on GitHub. What do the maven release plugin and GitHub…