Questions tagged [maven-extension]

Extensions are a list of artifacts that are to be used in this build. They will be included in the running build's classpath. They can enable extensions to the build process, as well as make plugins active which make changes to the build lifecycle

Maven extensions are

a list of artifacts that are to be used in this build. They will be included in the running build's classpath. They can enable extensions to the build process (such as add an ftp provider for the Wagon transport mechanism), as well as make plugins active which make changes to the build lifecycle. In short, extensions are artifacts that activated during build. The extensions do not have to actually do anything nor contain a Mojo. For this reason, extensions are excellent for specifying one out of multiple implementations of a common plugin interface.

More info

29 questions
1
vote
1 answer

Maven3 : How to get all the project dependencies in a Custom Maven Extension

In Maven 3.x , how I can get all the dependencies of a project including the transitive in a custom maven extension (By not using Aether) Currently I have this : @Component(role = AbstractMavenLifecycleParticipant.class, hint = "Test") public…
h-kach
  • 351
  • 2
  • 8
  • 25
1
vote
1 answer

In Maven extensions is it possible to add block in the pom.xml like we do for plugins?

We have a Maven extension which does some post actions at the end of build, but we want to extended its features by adding some flags/properties/something else in block same as the way we do for plugin configurations in pom.xml. Is…
1
vote
2 answers

Can maven repository be added from maven extension in Maven 3.5

Is this code project.getPluginRepositories().add(myCustomRepository); executed inside afterProjectsRead method of a maven extension (class extending AbstractMavenLifecycleParticipant) supposed to work? It executes fine (no errors nor warnings) but…
Milen Dyankov
  • 2,972
  • 14
  • 25
1
vote
1 answer

What'll change about maven extensions according to this line in apache doc?

I found this note in the Maven's documentation: You can add elements to this classloader by extensions. These are loaded into the same place as ${maven.home}/lib and hence are available to the Maven core and all plugins for the current project and…
A.R.K.S
  • 1,692
  • 5
  • 18
  • 40
1
vote
1 answer

session.getCurrentProject() returns null - Maven extensions

I'm trying to write a maven extension to calculate the duration of each build session. Here is my extension : @Parameter( defaultValue = "${project}", readonly = true, required = true ) private MavenProject project; @Component(role =…
A.R.K.S
  • 1,692
  • 5
  • 18
  • 40
1
vote
2 answers

Inherit build plugin/extension/... in Maven

Say a Maven project has a cool build plugin configured: ... ... extensions etc. ... I want this configuration to be reusable, so that I can run the goals provided by the…
Parobay
  • 2,549
  • 3
  • 24
  • 36
0
votes
0 answers

Maven plugin proxying artifacts

I have a Quarkus project and I need to hack one dependency of its extensions, providing my own artifact instead (released at different coordinates). It would be pretty simple using just exclusions and extra dependency in the POM, but Quarkus does…
Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
0
votes
1 answer

Maven extension for adding profile

Can a Maven extension add an additional profile to a POM (during the build)? Or are profiles already resolved when Maven extensions run? Note that I am not talking about Maven plugins, but about Maven extensions.
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
0
votes
0 answers

Overriding ProjectDependenciesResolver and Default Implementation Invoking in Maven Extension

I want to override the ProjectDependenciesResolver class. This usually calls the default implementation in the DefaultProjectDependenciesResolver class. Attempt 1 import org.apache.maven.project.*; import…
Yair
  • 1
  • 1
0
votes
0 answers

Run extension only for parent in multi module project

I have a multi modules project and wrote an extension. I want to use extension only for parent build, but when I add my extension in parent , it is executed for child module too. Is it possible to configure this behavior? UPDATE Parent…
Maxim Popov
  • 1,167
  • 5
  • 9
0
votes
1 answer

Dynamically provision global parent pom.xml

How can one manage a common project parent pom.xml for multiple github organizations and projects, without continuously releasing it to some maven repository?
Andrei Pozolotin
  • 897
  • 3
  • 14
  • 21
0
votes
1 answer

Why maven deployment extension wagon-ftp not working?

Here is the summery of maven project mvn -v Apache Maven 3.3.3 (79941 ... d4a06; 2015-04-22T17:57:37+06:00) Maven home: /path/to/apache-maven-3.3.3 Java version: 1.7.0_67, vendor: Oracle Corporation Java home: /path/to/java/jdk1.7.0_67/jre Default…
0
votes
1 answer

mvn versions:update-parent without tycho extension

How can you easily disable the tycho extension if it is not needed (eg at versions:update-parent)? I have a few dozen eclipse-plugin projects and resolve the target platform slows down the process unbearable.
Nachtgold
  • 539
  • 1
  • 6
  • 27
0
votes
1 answer

Specify dependency for Maven extension

I'm trying to configure org.springframework.build:aws-maven:jar:4.2.0.RELEASE for a project, but stuck in the following problem: seems that some of plugin dependecies requires org.codehaus.jackson:jackson-core-asl, but can't find. Failing…
Igor Artamonov
  • 35,450
  • 10
  • 82
  • 113
1
2