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

Maven Goal not getting executed

I have some maven goals defined as follows: org.apache.maven.plugins maven-resources-plugin 3.2.0
Prabal Rakshit
  • 417
  • 1
  • 6
  • 16
1
vote
0 answers

Can't get system parameter from custom maven MOJO

I try to get the value of a system property in a custom maven MOJO, like described here : https://maven.apache.org/developers/mojo-api-specification.html. The property which I try to get the value is "releaseVersion" from the following command line…
1
vote
1 answer

How does Stream map leads to a index out of bounds error

Context : I'm developing a Maven Plugin. I'm using MavenProject's list of dependencies, so I want to convert to an array of Strings. import org.apache.maven.project.MavenProject; @Parameter(...) private MavenProject project; // Getting…
1
vote
1 answer

Is it possible to publish multiple android libraries to the same package on github using the maven-plugin? then import the libraries together or alone

I'm trying to publish multiple libraries to github from the same project in android using the maven-publish plugin. I'm trying to make it so that a person can either consume the whole project with all the libraries eg import com.example.libraries;…
1
vote
0 answers

Maven should stop if detect process exit code 1

I have built one solution for my application and in order to detect errors from frontend packages, I have done another application which throws an error and gives exit code 1 if something is wrong. For that I…
1
vote
2 answers

What does "SCM" in "Maven SCM Plugin" stands for?

I have checked the official documentation of Maven SCM Plugin, and the SCM is always used only as abbreviation, but they never describe what does this abbreviation mean. So what does it mean?
Vladimir Shefer
  • 661
  • 3
  • 19
1
vote
2 answers

Databricks - spark-submit Error | org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType

Spark-submit in Databricks cluster.. is giving this error. I am using Spark 3.1.2 Scala 2.12 Springframeworkboot 2.6.3 However spark-submit is running good in mac and other local machines. But not in Databricks cluster. Note: Also Added…
Prakash Raj
  • 149
  • 3
  • 13
1
vote
1 answer

Maven Apache - Terminal error [cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment]

I'm debugging a code not mine, as the first compilation with Maven Apache I get this error. Has anyone managed to fix it? I assume there is a compactability problem in the pom file. [ERROR] Failed to execute goal…
1
vote
1 answer

Execute mvn archetype:generate with User Input from Java Code

I am creating a project from a custom archetype in Spring Boot Here are the steps Created a Template Project Executed mvn archetype:create-from-project -Darchetype.properties=../myCustom.properties command from Java Code and created a custom…
Ashish
  • 341
  • 2
  • 7
  • 17
1
vote
1 answer

Version unspecified in dependencies of file pom

I'm running into an error in my .pom files when building builds. I have separated the project into different daughter libraries but now when uploading a version to be able to use this library in other apps I have encountered a problem. In my…
1
vote
2 answers

Maven, how to trigger install of parent from child module? (command prompt)

This is more of aesthetic question since I want to make my life easier. I have maven project structure like this: foo-project (parent) foo-business (child-module) foo-dao (child-module) foo-app (child-module) I run my maven commands from…
Haris Krajina
  • 14,824
  • 12
  • 64
  • 81
1
vote
1 answer

Maven Integration Testing Framework forces dependency resolution from central repository

I'm using the Maven Integration Testing Framework plugin to test one goal of a custom-developed plugin. As far as the tests go, everything works well. However, there is one unexpected and undesired technicality that I have noticed: The local…
sensenkri
  • 71
  • 5
1
vote
0 answers

mvn Liquibase:diff A required class was missing while executing org.liquibase:liquibase-maven-plugin:3.8.1:diff: javax/xml/bind/annotation/XmlSchema

I am trying to generate liquibase changelogs based on jpa entities using maven-hibernate-plugin so I can use the generated chagelogs to create my database. I followed the https://www.baeldung.com/liquibase-refactor-schema-of-java-app sample but with…
1
vote
0 answers

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources

Can any one help me? Why this is happen, and how to solve this error? I try to run mvn clean package -DskipTests [INFO] [INFO] -------------------< com.hybris.hybris123:hybris123 >------------------- [INFO] Building hybris123 1.1 [INFO]…
Renumb
  • 23
  • 3
1
vote
1 answer

How to insert null values for an Avro map

I have a usecase where I need to have null values allowed for an Avro Map, but it seems like Avro doesn't allow unions for Map values. Basically, I need to implement the functionality of a POJO defined as Map>>. How can I…
Mehul
  • 47
  • 5