Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes Unable to create maven project in netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Unable to create maven project in netbeans" Watch "Unable to create maven project in netbeans" New topic
Author

Unable to create maven project in netbeans

Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 38

Hi friends,

Im unable to create a maven project using netbeans 7.2.


Im getting below log while trying to create new maven project. I have just installed netbeans and not sure if anything is missing as its trying to download. its showing 1% downloaded but not proceeding further. I have well connected internet though.

cd D:\temp; JAVA_HOME=C:\\Progra~1\\Java\\jdk1.7.0_03 M2_HOME=D:\\apache-maven-3.0.4-bin\\apache-maven-3.0.4 D:\\apache-maven-3.0.4-bin\\apache-maven-3.0.4\\bin\\mvn.bat -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.1 -DarchetypeRepository=http://repo.maven.apache.org/maven2 -DgroupId=com.mycompany -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mavenproject1 -Dbasedir=D:\\temp -Darchetype.interactive=false --batch-mode archetype:generate
Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar
Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 from/to central (http://repo.maven.apache.org/maven2): GET request of: org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar from central failed
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.jar
Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.1: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.1 or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 from/to central (http://repo.maven.apache.org/maven2): GET request of: org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.jar from central failed
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.0/maven-release-plugin-2.0.jar


Please advise to resolve.

Thanks, Rajasekhar


Thanks
Raja
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

Sounds like you don't have access to Maven Central. Perhaps you need to configure a proxy?


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to create maven project in netbeans
 
Similar Threads
new to maven, error in mvn war:war
(java.net.SocketException) caught when connecting to the target host: Invalid argument: connect
maven java:compile
Creating ear file
maven: mvn clean ERROR