I get a error when I use maven to build my project.so please help! thank you for your help
Failed to execute goal org.apache.maven.plugins:maven-ass
And mine has a different solution. I had a POM that had a
entry for the jar without any
, and it had a
entry for the jar with a
. Plus, the parent POM had a
entry with the same
. Apparently this confused Maven (3.3). The build worked fine, but the packaging did not.
Fix: remove
entry in the child POM, and remove the
from the
entry in the child POM.
In code, here is the broken situation:
Parent pom.xml:
org.apache.httpcomponents
httpclient
${httpclient.version}
Child pom.xml:
org.apache.httpcomponents
httpclient
...
org.apache.httpcomponents
httpclient
${httpclient.version}
Post fix: parent POM is the same, child pom has just this
org.apache.httpcomponents
httpclient