You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "G. Richard Bellamy (JIRA)" <ji...@apache.org> on 2016/07/16 19:53:20 UTC

[jira] [Created] (MNG-6066) Continuous Delivery friendly versions break with multi-module projects

G. Richard Bellamy created MNG-6066:
---------------------------------------

             Summary: Continuous Delivery friendly versions break with multi-module projects
                 Key: MNG-6066
                 URL: https://issues.apache.org/jira/browse/MNG-6066
             Project: Maven
          Issue Type: Bug
    Affects Versions: 3.3.9
            Reporter: G. Richard Bellamy


When I have a multi-module maven project, and one of the sub-modules is a mult-module POM itself, the use of a continuous delivery friendly version in the parent <version/>  breaks the build from within either {{sub-module-1}} or {{sub-module-2}}.

Some Maven multi-module project like so:
{noformat}
parent
     + sub-module 1
     |            + child 1-1
     |            |
     |            + child 1-2
     |
     + sub-module 2
                  + child 2-1
{noformat}

{code}
2016-07-16 12:49:59
rbellamy@terraspark i ~/Development/test-cd-ci-friendly-versions master % mvn -o -DskipTests compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] child-1-1
[INFO] child-1-2
[INFO] sub-module-1
[INFO] child-2-1
[INFO] sub-module-2
[INFO] test-cd-ci-friendly-versions
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building child-1-1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ child-1-1 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ child-1-1 ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/rbellamy/Development/test-cd-ci-friendly-versions/sub-module-1/child-1-1/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building child-1-2 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ child-1-2 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ child-1-2 ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/rbellamy/Development/test-cd-ci-friendly-versions/sub-module-1/child-1-2/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sub-module-1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building child-2-1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ child-2-1 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ child-2-1 ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/rbellamy/Development/test-cd-ci-friendly-versions/sub-module-2/child-2-1/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sub-module-2 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test-cd-ci-friendly-versions 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] child-1-1 .......................................... SUCCESS [  0.756 s]
[INFO] child-1-2 .......................................... SUCCESS [  0.111 s]
[INFO] sub-module-1 ....................................... SUCCESS [  0.000 s]
[INFO] child-2-1 .......................................... SUCCESS [  0.045 s]
[INFO] sub-module-2 ....................................... SUCCESS [  0.001 s]
[INFO] test-cd-ci-friendly-versions ....................... SUCCESS [  0.000 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.030 s
[INFO] Finished at: 2016-07-16T12:50:08-07:00
[INFO] Final Memory: 16M/305M
[INFO] ------------------------------------------------------------------------
2016-07-16 12:50:08
rbellamy@terraspark i ~/Development/test-cd-ci-friendly-versions master % cd sub-module-2
2016-07-16 12:50:23
rbellamy@terraspark i ~/Development/test-cd-ci-friendly-versions/sub-module-2 master % mvn -o -DskipTests compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] child-2-1
[INFO] sub-module-2
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building child-2-1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] child-2-1 .......................................... FAILURE [  0.091 s]
[INFO] sub-module-2 ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.180 s
[INFO] Finished at: 2016-07-16T12:50:29-07:00
[INFO] Final Memory: 8M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project child-2-1: Could not resolve dependencies for project com.terradatum:child-2-1:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.terradatum:child-1-2:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for com.terradatum:child-1-2:jar:1.0-SNAPSHOT: Cannot access nexus (https://nexus.terradatum.com/content/groups/public) in offline mode and the artifact com.terradatum:sub-module-1:pom:1.${revision} has not been downloaded from it before. -> [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.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
zsh: exit 1     mvn -o -DskipTests compile
{code}

Link to reproduction to be added shortly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)