Trying to add a Java library to the local Maven repository using a clean install of Apache Maven 3.1.0, with Java 1.7. Here is how the Java archive file was
The scope
gives you an opportunity to tell that the jar would be available at runtime, so do not bundle it. It does not mean that you do not need it at compile time, hence maven would try to download that.
Now I think, the below maven artifact do not exist at all. I tries searching google, but not able to find. Hence you are getting this issue.
Change groupId
to
to get the latest jar.
net.sourceforge.ant4x
ant4x
${net.sourceforge.ant4x-version}
provided
Another solution for this problem is:
Where http://localhost/repo is your local repo URL:
wmc-central
http://localhost/repo
<-- Other repository config ... -->