Giter Club home page Giter Club logo

maven-dependency-management-extension's Issues

Add supplemental property override

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

  • Overriding project properties that use non-standard version formats.
  • Populating the model with extra versions for when projects have two group:artifact that are the same but with different versions (See #10 ) : one could be aligned, while the other utilises the property.

Prevent overriding dependencies on a module basis.

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).

Maven Dependency manager throwing an exception (Plugin exception)

What steps will reproduce the issue?

  1. Open the IntelliJ IDEA ULTIMATE 2021.3.1 (Build #IU-213.6461.79)
  2. Have installed the Maven Dependency manager
  3. Observe the exception thrown by the IDE

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.

stacktrace.txt

Please solve it...

Exception Propagation

Should the extension log exceptions as warnings (e.g. in loadRemoteDepVersionOverrides) or allow them to be propagated out and fail the Maven build) ?

Adding the extension to the POM does not work in Maven 3.1

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.

Avoid need for colon in property names

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.