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 2019/01/10 22:52:00 UTC
[jira] [Commented] (MNG-6556) Packaging 'maven-plugin' binding
plugin upgrades
[ https://issues.apache.org/jira/browse/MNG-6556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16739843#comment-16739843 ]
Michael Osipov commented on MNG-6556:
-------------------------------------
Something between Maven Install Plugin 2.4 and 3.0.0-M1 introduced a bug where the {{maven-metadata.xml}} of for the plugin prefix is not written.
One can use this to poke around with:
{noformat}
[mosipov@mika-ion ~/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-3372/direct-using-prefix/plugin]$
~/apache-maven-3.6.0/bin/mvn -Dmaven.repo.local=$(pwd)/../repo-3.6.0 clean install
~/apache-maven-3.6.1-SNAPSHOT/bin/mvn -Dmaven.repo.local=$(pwd)/../repo-3.6.1-SNAPSHOT clean install
[mosipov@mika-ion ~/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-3372/direct-using-prefix/project]$
~/apache-maven-3.6.0/bin/mvn -Dmaven.repo.local=$(pwd)/../repo-3.6.0 -s ../settings.xml mng3372:test
~/apache-maven-3.6.0/bin/mvn -Dmaven.repo.local=$(pwd)/../repo-3.6.1-SNAPSHOT -s ../settings.xml mng3372:test
~/apache-maven-3.6.1-SNAPSHOT/bin/mvn -Dmaven.repo.local=$(pwd)/../repo-3.6.1-SNAPSHOT -s ../settings.xml mng3372:test
~/apache-maven-3.6.1-SNAPSHOT/bin/mvn -Dmaven.repo.local=$(pwd)/../repo-3.6.0 -s ../settings.xml mng3372:test
{noformat}
Maven fails with the error that the plugin with that prefix cannot be found in any repo with the given plugin group from the local settings file.
Here is the diff between those two repos:
!diff in mc.png!
Note that the metadata file is missing in the 3.6.1-SNAPSHOT repo.
I haven't yet started going back in history of the plugin, but I assume it is some dependency which broke it.
[~khmarbaise], any idea?
> Packaging 'maven-plugin' binding plugin upgrades
> ------------------------------------------------
>
> Key: MNG-6556
> URL: https://issues.apache.org/jira/browse/MNG-6556
> Project: Maven
> Issue Type: Sub-task
> Components: core, Dependencies
> Affects Versions: 3.5.0, 3.6.0
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.7.0-candidate
>
> Attachments: diff in mc.png
>
>
> This affects:
> ||groupId||artifactId||[previous version|https://maven.apache.org/ref/3.5.0/maven-core/default-bindings.html#Plugin_bindings_for_maven-plugin_packaging]||target version||
> |org.apache.maven.plugins|maven-resources-plugin|2.6|3.1.0|
> |org.apache.maven.plugins|maven-compiler-plugin|3.1|3.8.0|
> |org.apache.maven.plugins|maven-plugin-plugin|3.2|3.6.0|
> |org.apache.maven.plugins|maven-surefire-plugin|2.12.4|3.0.0-M3|
> |org.apache.maven.plugins|maven-jar-plugin|2.4|3.1.1|
> |org.apache.maven.plugins|maven-install-plugin|2.4|3.0.0-M1|
> |org.apache.maven.plugins|maven-deploy-plugin|2.7|3.0.0-M1|
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)