Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Updated test to demonstrate incorrect resolution of ${project.version} values #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nickcodefresh
Copy link

@nickcodefresh nickcodefresh commented Feb 15, 2017

Added dependency between level-one module and level-three module in order to demonstrate incorrect ${project.version} resolution (see #7)

In see this issue, run mvn install -Dexternal.version-qualifier=abc and then mvn dependency:tree -Dexternal.version-qualifier=abc from within maven-external-version-plugin/src/it/multi-module. You'll get the error:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.345 s
[INFO] Finished at: 2017-02-15T09:00:30+00:00
[INFO] Final Memory: 15M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project level-one: Could not resolve dependencies for project com.example:level-one:jar:1.0-abc-SNAPSHOT: Failure to find com.example:level-three:jar:1.0-SNAPSHOT in https://artifactory.nativ-systems.com/artifactory/repo was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Maven is trying to resolve com.example:level-three:jar:1.0-SNAPSHOT, not com.example:level-three:jar:1.0-abc-SNAPSHOT

…rder to demonstrate incorrect ${project.version} resolution (bdemers#7)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant