Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MDEP-650] - dependency:unpack doesn't seem to handle version ranges #12

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

alehane
Copy link

@alehane alehane commented Apr 26, 2019

  • [MDEP-650] - dependency:unpack doesn't seem to handle version ranges:

Attempt to enable version range resolution for the dependency:unpack goal by first checking to see whether the version range has already been resolved by the project's dependency resolution. If there is no resolution, attempt to use the DependencyResolver maven component to resolve the range. If resolution is successful, then update the artifactItem object with the resolved version, otherwise, leave the version un-changed.

Tests and verification:

  • mvn clean verify - Run locally in development environment, no issues.
  • mvn -Prun-its clean verify - Run locally in development environment, no issues.

Licence info:

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@khmarbaise
Copy link
Member

Can you please first squash your changes...into a single commit ...so it's easier to take a look at it...

asfgit pushed a commit that referenced this pull request Sep 29, 2021
[MGPG-80] implement GpgVersion equality in adherence to comparibility
@@ -30,7 +30,7 @@ under the License.
</parent>

<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2-SNAPSHOT</version>
<version>3.1.1.alehane-SNAPSHOT</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

* If the dependency is not found or the range does not match, then the version
* is not changed.
*
* @param artifactItem The artifact item to update, if required.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the artifact item to update, if required

per oracle javadoc conventions

@Override
protected void tearDown()
{
super.tearDown();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comes last, not first

@@ -0,0 +1,98 @@
package org.apache.maven.plugins.dependency.testUtils.stubs;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

above package

@Override
public Artifact getArtifact()
{
// TODO Auto-generated method stub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants