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

No plugin found for prefix 'azure-function' in the current project and in the plugin groups

I have been trying to run a spring-cloud-azure-function on my local machine. But it looks like I am having a hard time in figuring out the pom plugins. I have tried from the Microsoft Doc of how to create an azure function with spring cloud…
1
vote
1 answer

Read properties from .properties file present on internet in project's .xml file [NOT in POM file] to update version of module

I have one .properties file present on the internet/online (you can say it's an external file). I want to read the properties (versions) from it to update the modules' versions in my .XML file. I searched about the PropertyPlaceholderConfigurer, but…
1
vote
1 answer

How can I reduced the maven Jar file size Currently 255 MB?

How can I reduce the Maven Executable Jar file size. Currently its 255 MB. It is not allowing to deploy in Cloudformation. I am doing the deployment via cloudformation --> Lambda and API Getway. If I can reduce the file from 255 MB, Then my problem…
1
vote
2 answers

maven dependency plugin throwing error even if I add flag ignoreunuseddeclareddependecy

I am trying to build my code and I am getting this error: [WARNING] Unused declared dependencies found: [WARNING] com:test-client:jar:v1.0-SNAPSHOT:compile This is the configuration of the dependency plugin in my pom:
1
vote
1 answer

Create XML file from Maven

There are many Maven plugins for file manipulation, filtering, copying etc. But is there also a way to create a new XML file from Maven (without creating my own plugin)? Ideally, I could do something like this:
cnmuc
  • 6,025
  • 2
  • 24
  • 29
1
vote
1 answer

How to fix not finding a plugin artifact?

I am getting this error: [ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Could not find artifact org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 in nexus-xyz-plugin I…
1
vote
0 answers

VSCode Maven For Java autogenerated pom.xml is faulty

I have installed the Maven For Java extension on VS Code on a Mac M1 with jdk17 installed. When I create a new Maven Java Project from the Java Projects tab, and specify the quickstart archetype, a new blank Maven project is created with a default…
1
vote
0 answers

Enable logging for single build plugin in Maven?

I need to see the full logs from dependency-check plugin in Maven (I am looking at running it offline) which -X enables. Unfortunately this generates so much output that the information I'm looking for cannot be kept in the IntelliJ console…
user18619318
  • 103
  • 10
1
vote
1 answer

Errors importing and running codename one maven project using eclipse, windows 10, jdk_8u321

Downloaded Codename one maven project for eclipse. When I import the project, at the end of the import I get this error: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not…
Kyros Nox
  • 173
  • 2
  • 9
1
vote
0 answers

maven error: Could not find artifact hosted in private github repository

Iam trying to pull an artifact hosted in github(company's private repo) but it is throwing an error: [INFO] Scanning for projects... [INFO] [INFO] -------------------------< com.my:package-order >------------------------- [INFO] Building order…
manish
  • 73
  • 1
  • 6
1
vote
0 answers

Commit message with git-commit-id-maven-plugin (Springboot)

I use git-commit-id-maven-plugin exposed git infos with commit message to info endpoint with my Springboot project, but the commit message not appear. Any ideas? Here is how i tried:
István D
  • 152
  • 1
  • 9
1
vote
0 answers

Whitelist dependency for dependencyConvergence rule in Maven Enforcer plugin

I have the following Maven dependency in the tree: ... [INFO] | | | \- io.netty:netty-tcnative-boringssl-static:jar:2.0.50.Final:compile [INFO] | | | +- io.netty:netty-tcnative-classes:jar:2.0.48.Final:compile [INFO] | | | +-…
Vlad
  • 844
  • 1
  • 12
  • 22
1
vote
0 answers

How to extend a Mojo and get other Mojos from the same plugin in the Plexus container?

I'm currently trying to extend org.codehaus.license.mojo:AggregatorAddThirdPartyMojo. I've created a class that extends AggregatorAddThirdPartyMojo. It currently doesn't do anything more than its super class, I'm trying to make it work before…
Adrien H
  • 643
  • 6
  • 21
1
vote
1 answer

Get rid of Jenkins and Hudson Manifest entry

I am getting below look like file in the MANIFEST.MF Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: operations Build-Jdk: 1.6.0_24 Hudson-Build-Number: 158 Hudson-Project: my-dev Hudson-Version:…
sharp
  • 633
  • 3
  • 12
  • 21
1
vote
1 answer

Integration testing maven plugins

There are five choices listed in the maven documentation on testing maven plugins: maven-verifier maven-invoker-plugin shitty-maven-plugin maven-it-plugin maven-plugin-management-plugin I've tried a few of these and had a number of…
hertzsprung
  • 9,445
  • 4
  • 42
  • 77