Does this Maven plugin really have an invalid handle?

COMMAND:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate -DarchetypeGroupId=org.beardedgeeks -DarchetypeArtifactId
=gae-eclipse-maven-archetype  -DarchetypeVersion=1.1.2 -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/repository/release
s

CONCLUSION:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager getting plugin 'org.apache.maven.plugins:maven-archetype-plugin': Plugin 'org.apache.maven
.plugins:maven-archetype-plugin:2.0-alpha-4' has an invalid descriptor:
1) Plugin descriptor contains the wrong group ID: net.kindleit
2) Plugin descriptor contains the wrong artifact ID: maven-gae-plugin
3) Plugin descriptor contains the wrong version: 0.5.9
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Jun 09 20:48:35 CEST 2010
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------

It's hard for me to believe that this Maven plugin has an invalid descriptor, as other people seem to use it without problems. Am I doing something wrong?

+3
source share
3 answers

Unable to reproduce your problem, the following command works fine for me (copied and pasted from GAE + Eclipse + Maven Archetype ):

mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \
  -DarchetypeGroupId=org.beardedgeeks \
  -DarchetypeArtifactId=gae-eclipse-maven-archetype \
  -DarchetypeVersion=1.1.2 \
  -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/repository/releases

Tested by Maven 2.2.1:

$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-22-generic" arch: "i386" Family: "unix"
+1
source

I often have problems with crappy metadata in my local repository. This error usually disappears after I do

rm -Rf my/home/dir/.m2/repository/net/kendleit/maven-gae-plugin

, Pascal, , Pascal url http://beardedgeeks.googlecode.com/svn/repository/releases, url http://beardedgeeks.googlecode.com/svn/repository/release ( s, , 404)

rm, , URL


: , , . , :

+2

: GAV (groupid, artifactid, version) Nexus (, pom.xml) jar \META-INF\maven\plugin.xml

, Nexus ( maven)

:

  • , , GAV plugin.xml
  • upload the jar to Nexus by transferring GAV information from the plugin.xml file
  • Update pom.xml accordingly

Be sure to remove the old inconsistent artifact from Nexus.

0
source

Source: https://habr.com/ru/post/1749273/


All Articles