-
Notifications
You must be signed in to change notification settings - Fork 175
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
base: master
Are you sure you want to change the base?
Conversation
…ck" goal - add tests and improve error handling
…ck" goal - add tests and improve error handling
…- correct file name
Change the snapshot version in the pom.xml file to allow for internal use while the pull request is considered.
Can you please first squash your changes...into a single commit ...so it's easier to take a look at it... |
[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> |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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; | |||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
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:
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.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.