You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/01/07 19:14:00 UTC

[jira] [Closed] (MNG-7162) Problem compiling, packaging or installing multimodule project with CI friendly

     [ https://issues.apache.org/jira/browse/MNG-7162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-7162.
-------------------------------
    Resolution: Cannot Reproduce

Works for me:
{noformat}
$ /tmp/apache-maven-3.6.3/bin/mvn verify  -U -V -Dchangelist=-XXX -Dsha1=abc -Drevision=3.0
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /tmp/apache-maven-3.6.3
Java version: 1.8.0_312, vendor: OpenJDK BSD Porting Team, runtime: /usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.3-stable", arch: "amd64", family: "unix"
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.example:module-ear >-----------------------
[INFO] Building module-ear 3.0.abc-XXX
[INFO] --------------------------------[ ear ]---------------------------------
Downloading from lda-public: https://deblndw011x.ad001.siemens.net/nexus/content/groups/lda-public/com/example/module-web/3.0.abc-XXX/module-web-3.0.abc-XXX.pom
Downloading from dynamowerk-public: https://deblndw011x.ad001.siemens.net/nexus/content/groups/dynamowerk-public/com/example/module-web/3.0.abc-XXX/module-web-3.0.abc-XXX.pom
Downloading from central-mirror: https://deblndw011x.ad001.siemens.net/nexus/content/repositories/central/com/example/module-web/3.0.abc-XXX/module-web-3.0.abc-XXX.pom
Downloading from lda-public: https://deblndw011x.ad001.siemens.net/nexus/content/groups/lda-public/com/example/module-ejb/3.0.abc-XXX/module-ejb-3.0.abc-XXX.pom
Downloading from dynamowerk-public: https://deblndw011x.ad001.siemens.net/nexus/content/groups/dynamowerk-public/com/example/module-ejb/3.0.abc-XXX/module-ejb-3.0.abc-XXX.pom
Downloading from central-mirror: https://deblndw011x.ad001.siemens.net/nexus/content/repositories/central/com/example/module-ejb/3.0.abc-XXX/module-ejb-3.0.abc-XXX.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.896 s
[INFO] Finished at: 2022-01-07T20:13:28+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project module-ear: Could not resolve dependencies for project com.example:module-ear:ear:3.0.abc-XXX: Failed to collect dependencies at com.example:module-web:war:3.0.abc-XXX: Failed to read artifact descriptor for com.example:module-web:war:3.0.abc-XXX: Could not transfer artifact com.example:module-web:pom:3.0.abc-XXX from/to lda-public (https://deblndw011x.ad001.siemens.net/nexus/content/groups/lda-public/): Authorization failed for https://deblndw011x.ad001.siemens.net/nexus/content/groups/lda-public/com/example/module-web/3.0.abc-XXX/module-web-3.0.abc-XXX.pom 403 Forbidden -> [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
{noformat}

> Problem compiling, packaging or installing multimodule project with CI friendly
> -------------------------------------------------------------------------------
>
>                 Key: MNG-7162
>                 URL: https://issues.apache.org/jira/browse/MNG-7162
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.6.3
>         Environment: Windows 10
>            Reporter: Mario Jauvin
>            Priority: Major
>
> When using CI friendly properties if I try to compile (or even run the verify phase) on a module that does not include all of the dependencies in the reactor build, maven will attempt to resolve the dependencies not in the reactor build and fail.  If you take the branch ci-friendlies from project https://github.com/marioja/maven-ear-example and cd into module-ear and type {noformat}mvn verify{noformat} you will get this error:
> {noformat}
> [ERROR] Failed to execute goal on project module-ear: Could not resolve dependencies for project com.example:module-ear:ear:2.0.0-SNAPSHOT: Failed to collect dependencies at com.example:module-web:war:2.0.0-SNAPSHOT: Failed to read artifact descriptor for com.example:module-web:war:2.0.0-SNAPSHOT: Could not transfer artifact com.example:application:pom:${revision}.${sha1}${changelist} from/to company.repository- (http://company-maven.company.net:8081/repository/maven-public): Failed to transfer http://company-maven.company.net:8081/repository/maven-public/com/example/application/${revision}.${sha1}${changelist}/application-${revision}.${sha1}${changelist}.pom. Error code 400, Invalid repository path -> [Help 1]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)