I have created simple project from maven-archetype-quickstart under Eclipse Indigo, then I went to pom.xml gui editor and in dependencies tab added dependency on log4j-1.2.16 by search in appropriate dialog.
Now my pom.xml includes tags
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<type>bundle</type>
</dependency>
But Eclipse underlines first <dependency>
tag and says Missing artifact log4j:log4j:bundle:1.2.16
.
Why?
The Maven plugin for Eclipse is m2e - Maven Integration for Eclipse version 1.0.100.20110804-1717
Solution 4m2 local repository, delete the local repository and refresh the maven project. Maven is going to try to download all the jars from scratch. If there is a repository related issue, this step will resolve the exception “missing artifact maven”.
Remove
<type>bundle</type>
and it will be fine.
log4j:log4j is actually of type jar.
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