aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes maven arhtype take a lot of time 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 "maven arhtype take a lot of time " Watch "maven arhtype take a lot of time " New topic
Author

maven arhtype take a lot of time

taouririt salah eddine
Greenhorn

Joined: Sep 01, 2012
Posts: 5
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

Joined: Feb 21, 2012
Posts: 18

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

Bruno Candido Volpato da Cunha
Oracle Certified Java Programmer 6
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

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.


JBoss In Action
taouririt salah eddine
Greenhorn

Joined: Sep 01, 2012
Posts: 5
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

Joined: May 14, 2008
Posts: 5830
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maven arhtype take a lot of time