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
17
votes
1 answer

Import maven plugin configuration by composition rather than inheritance. Can it be done with build extensions?

Import maven plugin configuration by composition rather than inheritance. Can it be done with build extensions? I have used maven for more than 3 years and there's one shortcoming that has always bugged me. It's time to find a solution for that…
Tony Lâmpada
  • 5,301
  • 6
  • 38
  • 50
11
votes
3 answers

Maven 3 profile with extensions

My question had been addressed in this thread, but the explanation is not clear. I have this build definition in one of my pom.xml files: ${my.project}
forhas
  • 11,551
  • 21
  • 77
  • 111
5
votes
1 answer

Configuration Issue with Tycho/Maven: "Tycho build extension not configured"

I have been following Vogella's tutorial (http://www.vogella.com/articles/EclipseTycho/article.html) on using Tycho to set up a Maven build environment for my project. My project is already quite big with several plugins, features and an update…
Erika Redmark
  • 479
  • 1
  • 5
  • 15
4
votes
1 answer

Enable maven3 extension only on specified profile(s)

I have an extension I use in my Maven 3 build that outputs build information for me. It's a bit verbose so I would like to run it only in some build profiles. But are only allowed in the main and not in the profiles. So my…
vertti
  • 7,539
  • 4
  • 51
  • 81
4
votes
1 answer

How to modify default properties in Maven extension

I want to write a maven plugin (extension) which implements lifecycles for javascript projects so projects with a pom.xml like this can be compiled:
kayahr
  • 20,913
  • 29
  • 99
  • 147
4
votes
2 answers

"Unable to initialise extensions" error while building maven project with "wagon-ssh"

Getting below error when building Maven (version 2.2.1) Project with wagon-ssh extention pom.xml: org.apache.maven.wagon wagon-ssh 2.4
user2358247
  • 41
  • 1
  • 3
3
votes
1 answer

Failed to read extensions descriptor. Could not find artifact in central

I have created a maven extension, and now I am trying to use it without installing it locally. So I have deployed it to our own repository (not maven central yet) but for some reason maven is trying to download it from…
Salvatorelab
  • 11,614
  • 6
  • 53
  • 80
2
votes
0 answers

Conditionally adding build extension

Is there a way to conditionally run build plugin extensions. More specifically : co.leantechniques
Mite Mitreski
  • 3,596
  • 3
  • 29
  • 39
1
vote
1 answer

What is the exact meaning of "extensions" parameter in maven

I mean in the extensions parameter in a plugin as follows: ... ... ... ... ...
window
  • 67
  • 5
1
vote
0 answers

Import profile from different pom

I know that you cannot inherit two parent POMs, but I need to get around a situation where I would need just that. In short, the situation is: Company A requires every project to use the company parent POM. Some plugins/configurations are essential…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
0 answers

Maven Enforcer Extension

I have just discovered the Maven Enforcer Extension https://maven.apache.org/enforcer/maven-enforcer-extension/usage.html I wonder whether it is possible to configure it outside the actual project, e.g. in the settings.xml, the Maven installation or…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
1
vote
3 answers

kie-maven-plugin:7.36.1.Final Plugin extension dependency error using Maven

Migrating Drools from 6.5.0.Final to Drools 7.36.1.Final , I am facing issue in resolving org.kie:kie-maven-plugin:7.36.0.Final dependency issue as below [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable…
1
vote
0 answers

Maven extension is not active during build

I'm trying to create a new maven extension. However when I run a maven build with the extension declared in ${maven.projectBasedir}/.mvn/extensions.xml the ExecutionListener of the extension won't be listening. The pom.xml of my extension…
SpaceTrucker
  • 13,377
  • 6
  • 60
  • 99
1
vote
0 answers

Can Dependency Management define version for Maven extension

Have defined wagon-webdav-jackrabbit as an extension in Parent POM, the Parent POM makes use of Dependency Management POM. Parent POM has extension defined for wagon-webdav-jackrabbit
User
  • 81
  • 2
  • 9
1
vote
1 answer

Maven plugin/extension to dynamically update dependency version

I would like to dynamically assign versions of dependencies of my Maven project (please do not ask why - I know it is not a preferable pattern). As far as I understand I have to create Maven Extension to achieve this as regular plug-in is invoked…
Daniel Man
  • 21
  • 5
1
2