File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Build Error In creating new project in Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Build Error In creating new project in Maven" Watch "Build Error In creating new project in Maven" New topic
Author

Build Error In creating new project in Maven

Manish Doomra
Greenhorn

Joined: Sep 05, 2008
Posts: 21
Hello all,

I am referring the book 'Better Build with Maven'

For creating my first project in maven, I am passing this command


But it is giving the following build error:-

[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: centr
al due 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 coul
d be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Sat Nov 08 18:21:44 IST 2008
[INFO] Final Memory: 12M/64M
[INFO] ------------------------------------------------------------------------


I have downloaded and installed using the instructions given on:-
http://maven.apache.org/download.html

PS:But I have not made any changes in settings.xml


Manish Doomra
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

Are you behind a firewall? You might have to configure Maven to use proxy. See this guide


[My Blog] [JavaRanch Journal]
Manish Doomra
Greenhorn

Joined: Sep 05, 2008
Posts: 21
Are you behind a firewall? You might have to configure Maven to use proxy. See this guide


Thanks Jai, It worked fine

For others, who face the same situation, optional tags are commented out in configuration file(settings.xml).

After Changing parameters make sure you uncomment the tags (First time I also missed it)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Build Error In creating new project in Maven