permaculture playing cards*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Project Running Problem 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 Project Running Problem" Watch "Maven Project Running Problem" New topic
Author

Maven Project Running Problem

nayan rami
Ranch Hand

Joined: Dec 28, 2010
Posts: 30
when i am running my project in maven then it will create problem like
........>>>>>>>>
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project com.icijapan.onit:servlet:1.0.M3-SNAPSHOT (C:\WorkSpace\ONiT\servlet\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.primefaces:primefaces:jar -> duplicate declaration of version 2.1 @ com.icijapan.onit:servlet:${parent.version} (C:\WorkSpace\ONiT\servlet\pom.xml)
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You've declared a dependency twice. Look carefully through your pom for duplicates...


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Project Running Problem
 
Similar Threads
Maven project running problem
How to change jetty binding port number in maven.
MAVEN Skipp Project
Maven Project Running Problem
Trouble with running Maven Tomcat plugin through Eclipse