Maven: The Definitive Guide - POM for 'asm:asm-commons:pom:3.2:runtime' is invalid -


i'm trying go through examples in maven: definitive guide. in chapter '4.3. creating simple weather project' has me run following command.

mvn archetype:create -dgroupid=org.sonatype.mavenbook.ch04 -dartifactid=simple-weather -dpackagename=org.sonatype.mavenbook -dversion=1.0 

i think these errors problem.

[warning] pom 'asm:asm-commons:pom:3.2:runtime' invalid. ignored artifact resolution. reason: failed validate pom project asm:asm-commons @ artifact [asm:asm-commons:pom:3.2:runtime] [warning] pom 'asm:asm-util:pom:3.2:runtime' invalid. ignored artifact resolution. reason: failed validate pom project asm:asm-util @ artifact [asm:asm-util:pom:3.2:runtime] [warning] pom 'asm:asm-analysis:pom:3.2:runtime' invalid. ignored artifact resolution. reason: failed validate pom project asm:asm-analysis @ artifact [asm:asm-analysis:pom:3.2:runtime] [warning] pom 'asm:asm-tree:pom:3.2:runtime' invalid. ignored artifact resolution. reason: failed validate pom project asm:asm-tree @ artifact [asm:asm-tree:pom:3.2:runtime] 

because later on message this

[info] failed resolve artifact.  missing -------- org.apache.maven.archetype:archetype-catalog:jar:1.0 org.apache.maven.archetype:archetype-common:jar:1.0 org.apache.maven.archetype:archetype-registry:jar:1.0 org.apache.maven.archetype:archetype-descriptor:jar:1.0 

i ran command again debug on , i've included output in pastebin link

mvn archetype:create -dgroupid=org.sonatype.mavenbook.ch04 -dartifactid=simple-weather -dpackagename=org.sonatype.mavenbook -dversion=1.0 --debug > mvnoutput.txt 

http://pastebin.me/e50a3e5fa84cd8e8ff9336b3c3062d7f

i have no idea why failing. tried navigate poms manually using the

http://search.maven.org/remotecontent?filepath=asm/asm-commons/3.2/asm-commons-3.2.pom along other poms , fine me (but i'm trying learn maven.)

here mvn effective settings. left out schema stuff @ beginning. behind proxy, else seems download fine. appreciated. i'll answer questions or post more information if leave them comments.

<localrepository>c:\documents , settings\~removed~\.m2\repository</localrepository> <proxies> <proxy>   <active>true</active>   <username>~removed~</username>   <password>~removed~</password>   <host>~removed~</host>   <nonproxyhosts>~removed~</nonproxyhosts>   <id>optional</id> </proxy> 

the important thing start maven 3.0.4 instead of maven 2.0.8. furthermore need use:

mvn archetype:generate  

instead of

mvn archetype:create 

take docs of archetype plugin.

and 1 thing recognized using old book: take "maven example" book , "maven: complete reference".


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -