jboss / maven-dependency-management-extension Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jtripath/maven-dependency-management-extension
This project forked from jtripath/maven-dependency-management-extension
I would like to have the ability to, in the remote BOM, specify:
<properties>
<version.org.infinispan.6>6.0.0.Final-redhat-2</version.org.infinispan.6>
</properties>
This should be read by the extension and those properties should then override any existing properties in the model. This would be extremely useful for us for
It would be really helpful to have a property injected that corresponded to each dependency version this extension injects. Something with a predictable naming convention, which would allow projects to use the injected versions for filtering resources and in plugin configurations.
For instance, VMan (https://github.com/jdcasey/pom-version-manipulator) injects a property of the format:
"version." + groupId + '-' + artifactId
Currently there is
https://github.com/jboss/maven-dependency-management-extension#overriding-dependency-versions-of-a-specific-module
to override dependencies on a per module basis. However, it would be useful to block modules from being overridden. This avoids having to pass explicit versions on the command line. So we might do
mvn install -Dversion:junit:[email protected]:moduleB=
and in DepVersionOverrider::applyOverrides if the version is not set, the module would not be aligned. However if we did
mvn install -DdependencyManagement=org.foo:my-dep-pom:1.0 -Dversion:junit:[email protected]:moduleB=
org.foo.moduleA would be aligned (assuming the remote bom contains junit).
What steps will reproduce the issue?
What is the expected result?
Maven dependency manager should work without throwing exceptions at IDE level.
What happens instead?
This stack trace is thrown and this affects the plugin ability to work properly.
Please solve it...
Should the extension log exceptions as warnings (e.g. in loadRemoteDepVersionOverrides) or allow them to be propagated out and fail the Maven build) ?
When the extension is declared in the POM (instead of in the lib/ext directory), it fails when using Maven 3.1 or higher. This appears to be a classpath issue:
[WARNING] Error injecting: org.jboss.maven.extension.dependency.DependencyManagementLifecycleParticipant
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/impl/ArtifactResolver;
The problem can be seen in the pom declaration integration test.
I would like to override a plugin version when building on my local machine. This works on the command line:
mvn compile -DpluginVersion:org.codehaus.groovy:groovy-eclipse-compiler=2.9.0-01-SNAPSHOT
but this is not legal XML for ~/.m2/settings.xml
because of the need for colons in the element name:
<properties>
<pluginVersion:org.codehaus.groovy:groovy-eclipse-compiler>2.9.0-01-SNAPSHOT</pluginVersion:org.codehaus.groovy:groovy-eclipse-compiler>
</properties>
Could you please provide an alternative syntax where the property names are legal in XML?
When using a plugin which has optional dependencies, it would be useful to override the versions of those dependencies.
For instance, see the Groovy-Eclipse compiler plugin for Maven, which uses a dependency declaration to specify which version of groovy-eclipse-compiler to use with maven-compiler-plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.