I am getting these warnings when I attempt to run package.
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[WARNING] The artifact axis:axis-ant:jar:1.4 has been relocated to org.apache.axis:axis-ant:jar:1.4
A Maven artifact is a reference to a Maven artifact stored in a Maven repository. These artifacts are generally consumed by stages that deploy application artifacts, such as a Deploy stage.
Maven is a project development management and comprehension tool. Based on the concept of a project object model: builds, dependency management, documentation creation, site publication, and distribution publication are all controlled from the declarative file.
The error in pom. xml “missing artifact maven” occurs when the artifact is missing in local repository and remote repository. In eclipse, missing artifact maven error shows in the programs window. Maven is a software tool for building artifacts.
in your dependency declaration change groupId
from org.apache.commons
to commons-io
JFYI: it works this way: org.apache.commons:commons-io:jar:1.3.2 pom contains new groupId/artifactId of artifact to avoid possible jar hell with intersecting classpaths from different artifacts:
<distributionManagement>
<relocation>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<message>https://issues.sonatype.org/browse/MVNCENTRAL-244</message>
</relocation>
</distributionManagement>
and maven replaces the dependency automatically. Another example: org.hibernate:hibernate-validator relocates to another groupId.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With