File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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]
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 agree. Here's the link:
subject: Maven Project Running Problem
jQuery in Action, 3rd edition