Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing artifact log4j:log4j:bundle:1.2.16 when using Maven in Eclipse simplistic example

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

like image 842
Suzan Cioc Avatar asked Jan 28 '12 20:01

Suzan Cioc


People also ask

How do you solve missing artifacts?

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”.


1 Answers

Remove

<type>bundle</type>

and it will be fine.

log4j:log4j is actually of type jar.

like image 137
Stijn Geukens Avatar answered Oct 16 '22 03:10

Stijn Geukens