Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven arhtype take a lot of time

 
taouririt salah eddine
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to generate a simple maven project from the command line (I have maven 3.0.4 on my ubuntu 12.04 machine)
maven take a very very long time to start n I had this output for a 20 mins to start the Interactive mode !!


Please what is the problem (It's a bug or what ) ?
 
Bruno Candido Volpato da Cunha
Greenhorn
Posts: 18
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very strange, maybe it's a problem with the "Interactive Mode". Are you running it from bash?

The same Maven here (3.0.4), but Ubuntu 12.10.

After that "Generating project in Interactive mode", the plugin prints a lot of archetypes, and makes some questions (groupId, artifactId, version), without any interval...





Regards,
Bruno
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was this the first time you ran mvn? On the first run it will download numerous components to your local repository before doing anything.

Also, it would help if you posted the command line you used.
 
taouririt salah eddine
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah, My first time from the command line (bash), but I used it a lot from netbeans (without any problem, fast enough) , all the core plug-ins are available on local
I simply run it in an interactive mode
I get the message

and after long boring minutes I have 698 archetypes to choose between them , it's work but after 8 or 10 minutes .
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect that NetBeans is using a different local repository location than what is being used from the command line. So what is happening is that you are waiting for the archetypes to download before they can be listed. Usually, if you know what archetype you want, it is best to supply if on the command line.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic