GeeCON Prague 2014*
The moose likes Ant, Maven and Other Build Tools and the fly likes wants to know the basic things about maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "wants to know the basic things about maven" Watch "wants to know the basic things about maven" New topic
Author

wants to know the basic things about maven

sreedevi kv
Greenhorn

Joined: Jun 20, 2008
Posts: 2
hi i am new to this topic.
to create a new project in maven i got this command from some site
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
but wen i execute this command in command promt i am getting error

C:\Documents and Settings\srealku>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central du
e to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be
found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31 seconds
[INFO] Finished at: Fri Jun 20 19:41:38 IST 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------


i searched for solutions for this problem in google ..but it s mentioned that they solved this problem by changing settings.xml file in .m2 folder ..but i can't find any such folder in apache-maven folder ..
kindly provide some solutions for this .
thanks in advance
sreedevi
Sam Nabil
Greenhorn

Joined: Jun 20, 2008
Posts: 1
For .m2 did you look under:

C:\Documents and Settings\<user>\.m2 ?
Eric Nielsen
Ranch Hand

Joined: Dec 14, 2004
Posts: 194
Were you connected to the internet when you tried the command? Any proxy/etc getting in the way? The fact that Maven couldn't connect to the standard central repository would have me a little worried
 
GeeCON Prague 2014
 
subject: wants to know the basic things about maven