[
https://issues.apache.org/jira/browse/MINVOKER-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MINVOKER-283.
-----------------------------------
Fix Version/s: (was: waiting-for-feedback)
Resolution: Information Provided
> Change in behaviour with maven 3.8.2, invoker plugin is trying to install its
> parent
> ------------------------------------------------------------------------------------
>
> Key: MINVOKER-283
> URL: https://issues.apache.org/jira/browse/MINVOKER-283
> Project: Maven Invoker Plugin
> Issue Type: Bug
> Affects Versions: 3.2.1, 3.2.2
> Environment: mvn -f pom.xml -s ..../maven/settings.xml --version
> Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
> Maven home: /usr/local/Cellar/maven/3.8.2/libexec
> Java version: 16.0.2, vendor: Homebrew, runtime:
> /usr/local/Cellar/openjdk/16.0.2/libexec/openjdk.jdk/Contents/Home
> Default locale: en_NZ, platform encoding: UTF-8
> OS name: "mac os x", version: "11.5.2", arch: "x86_64", family: "mac"
> Reporter: Jonathan Tew
> Priority: Major
>
> When running maven 3.8.2, the integration test phase attempts the
> installation of the parent.
>
> It fails when its already present in the respository.
>
> This is a change in behaviour from running on maven 3.8.1.
> h2. maven 3.8.2
>
> [*INFO*] *---* maven-invoker-plugin:3.2.1:install *(...integration-test)* @
> something-v3 *---*
> [*INFO*] Installing
> /..blah../maven/repository/blah/blah-parent/2.10/blah-parent-2.10.pom to
> /..blah../maven/repository/blah/blah-parent/2.10/blah-parent-2.10.pom
> [*INFO*]
> *------------------------------------------------------------------------*
> [*INFO*] *BUILD FAILURE*
> [*INFO*]
> *------------------------------------------------------------------------*
> [*INFO*] Total time: 8.758 s
> [*INFO*] Finished at: 2021-08-27T09:48:34+12:00
> [*INFO*]
> *------------------------------------------------------------------------*
> [*INFO*] Totally detected 0 potential finishing task(s)
> [*ERROR*] Failed to execute goal
> org.apache.maven.plugins:maven-invoker-plugin:3.2.1:install
> *(...integration-test)* on project something-v3: *Failed to install project
> parents: MavenProject: something:something-v3:1.999-SNAPSHOT @
> something-v3/pom.xml*: Failed to install POM: MavenProject:
> blah:blah-parent:2.10 @
> /..blah../maven/repository/blah/blah-parent/2.10/blah-parent-2.10.pom: Failed
> to install artifact: blah:blah-parent:pom:2.10: Failed to install artifact
> blah:blah-parent:pom:2.10: cannot install
> /..blah../maven/repository/blah/blah-parent/2.10/blah-parent-2.10.pom to same
> path -> *[Help 1]*
>
>
>
> h2. maven 3.8.1
> [*INFO*] *---* maven-invoker-plugin:3.2.1:integration-test
> *(....integration-test)* @ something-v3 *---*
> [*INFO*] Building: *sanity/pom.xml*
> [*INFO*] Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
> [*INFO*] Maven home: /usr/local/Cellar/maven/3.8.1
> [*INFO*] Java version: 16.0.2, vendor: Homebrew, runtime:
> /usr/local/Cellar/openjdk/16.0.2/libexec/openjdk.jdk/Contents/Home
> [*INFO*] Default locale: en_NZ, platform encoding: UTF-8
> [*INFO*] OS name: "mac os x", version: "11.5.2", arch: "x86_64", family: "mac"
> [*INFO*] [INFO] Error stacktraces are turned on.
> [*INFO*] [INFO] Scanning for projects...
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)