wood burning stoves
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

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] 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] 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

Joined: Jun 24, 2003
Posts: 3275

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Maven Project Running Problem
It's not a secret anymore!