I am reffering to following pom entry for dependencies of htmlunit-driver.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<version>2.27</version>
</dependency>
But while packaging it with a JNLP file, I am getting following error:
Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-6:jnlp-inline (package) on project : Error while updating manifest of unprocessed_htmlunit-driver__V2.27.jar: duplicate entry: META-INF/maven/org.seleniumhq.selenium/htmlunit-driver/pom.xml -> [Help 1]
Investigating further I found that the htmlunit-driver-2.27.jar file contains two pom.properties
and pom.xml
.
Please help me to solve the issue:
- Should I rectify the JAR and use my own version .
- Is there any maven plugin available which can automatically resolve such corrupted JAR files.
- Any other available option.