Thursday, 15 September 2011

creating new project in java with maven -



creating new project in java with maven -

i wanna create java project maven, when type command in cmd instead of creating project gives error, guess because of net problems don't know how solve it. don't utilize proxy , i've tried command when pc's firewall turned off. command write in cmd is:

mvn archetype:generate -dgroupid=com.companyname.bank -dartifactid=consumerbanking -darchetypeartifactid=maven-archetype-quickstart -dinteractivemode=false

the rezult is:

[info] scanning projects... downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom [warning] failed retrieve plugin descriptor org.apache.maven.plugins:maven-clean-plugin:2.5: plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-clean-plugin:jar:2.5 downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom [warning] failed retrieve plugin descriptor org.apache.maven.plugins:maven-install-plugin:2.4: plugin org.apache.maven.plugins:maven-install-plugin:2.4 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2.4 . . . [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 5.167 s [info] finished at: 2012-05-18t21:09:38-07:00 [info] final memory: 3m/254m [info] ------------------------------------------------------------------------ [error] no plugin found prefix 'archetype' in current project , in plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available repositories [local (c:\users\a\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [help 1] [error]

you're posting in 2014, log says:

[info] finished at: 2012-05-18t21:09:38-07:00

if local clock wrong, ssl won't work because certificate appear invalid, , connection https://repo.maven.apache.org/ fail.

fix clock.

java maven

No comments:

Post a Comment