Elliotte Rusty Harold opened MNG-7055 and commented
explanation: metadata/plugins content in maven-metadata.xml descriptor from plugin's groupId is not updated (ie. plugin/name+prefix+artifactId) on first plugin release deployment, then plugin's prefix is not published
see for example existing plugin data in https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Copying Michael Osipov's comment from mailing list on HEAD with Maven core ITs:
https://markmail.org/message/ggcioupa6yaet4xe#query:+page:1+mid:noyp5d3iyclrfgyp+state:results
[ERROR] Tests run: 834, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 287.261 s <<< FAILURE! - in org.apache.maven.it.IntegrationTestSuite
[ERROR] testitMNG3372(org.apache.maven.it.MavenITmng3372DirectInvocationOfPluginsTest)
Time elapsed: 1.5 s <<< ERROR!
org.apache.maven.it.VerificationException:
Exit code was non-zero: 1; command line and log =
/var/osipovmi/Projekte/maven-integration-testing/core-it-suite/target/apache-maven/bin/mvn
--global-settings
/var/osipovmi/Projekte/maven-integration-testing/core-it-suite/target/test-classes/settings.xml
-s
/var/osipovmi/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-3372/direct-using-prefix/settings.xml
-e --batch-mode
-Dmaven.repo.local=/net/home/osipovmi/var/Projekte/maven-integration-testing/repo
mng3372:test
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.apache.maven.its.mng3372:project:jar:1.0-SNAPSHOT
[WARNING] Version not locked for default bindings plugins [maven-clean-plugin,
maven-resources-plugin, maven-jar-plugin, maven-compiler-plugin,
maven-surefire-plugin, maven-install-plugin, maven-deploy-plugin,
maven-site-plugin], you should define versions in pluginManagement section of
your pom.xml or parent @ line 6, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] Downloading from central: file:target/null/org/apache/maven/its/mng3372/maven-metadata.xml
[INFO] Downloading from central: file:target/null/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading from central: file:target/null/org/codehaus/mojo/maven-metadata.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.056 s
[INFO] Finished at: 2020-06-04T22:03:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'mng3372' in the current project and in the
plugin groups [org.apache.maven.its.mng3372, org.apache.maven.plugins,
org.codehaus.mojo] available from the repositories [local
(/net/home/osipovmi/var/Projekte/maven-integration-testing/repo), central
(file:target/null)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found
for prefix 'mng3372' in the current project and in the plugin groups
[org.apache.maven.its.mng3372, org.apache.maven.plugins, org.codehaus.mojo]
available from the repositories [local (/net/home/osipovmi/var/Projekte/maven-integration-testing/repo), central (file:target/null)]
at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:98)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:269)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescript
Issue Links:
-
MPOM-332 Upgrade maven-deploy-plugin to 3.1.1
("blocks")
-
MSHARED-920 NPE in DefaultArtifactInstaller.install - missing injection of RepositoryManager
-
MNG-7870 Undeprecate wrongly deprecated repository metadata
-
MNG-6556 Packaging 'maven-plugin' binding plugin upgrades
-
MPLUGIN-384 Nexus Staging Plugin - incompatibility
-
MNG-7375 Potential NPE in o.a.m.artifact.repository.metadata.Metadata.merge(...) with invalid/incomplete plugin metadata
-
MDEPLOY-291 Update POM parent and Maven + warn if older Maven is used to build a Maven plugin (as impacted by MNG-7055)
-
MPOM-368 Bump maven-install-plugin from 2.5.2 to 3.0.1
Remote Links:
Backported to: 4.0.0-alpha-2, 3.9.0
0 votes, 11 watchers
Elliotte Rusty Harold opened MNG-7055 and commented
explanation:
metadata/pluginscontent in maven-metadata.xml descriptor from plugin's groupId is not updated (ie.plugin/name+prefix+artifactId) on first plugin release deployment, then plugin's prefix is not publishedsee for example existing plugin data in https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Copying Michael Osipov's comment from mailing list on HEAD with Maven core ITs:
https://markmail.org/message/ggcioupa6yaet4xe#query:+page:1+mid:noyp5d3iyclrfgyp+state:results
Issue Links:
MPOM-332 Upgrade maven-deploy-plugin to 3.1.1
("blocks")
MSHARED-920 NPE in DefaultArtifactInstaller.install - missing injection of RepositoryManager
MNG-7870 Undeprecate wrongly deprecated repository metadata
MNG-6556 Packaging 'maven-plugin' binding plugin upgrades
MPLUGIN-384 Nexus Staging Plugin - incompatibility
MNG-7375 Potential NPE in o.a.m.artifact.repository.metadata.Metadata.merge(...) with invalid/incomplete plugin metadata
MDEPLOY-291 Update POM parent and Maven + warn if older Maven is used to build a Maven plugin (as impacted by MNG-7055)
MPOM-368 Bump maven-install-plugin from 2.5.2 to 3.0.1
Remote Links:
Backported to: 4.0.0-alpha-2, 3.9.0
0 votes, 11 watchers