Question

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

Was it helpful?

Solution

Remove

<type>bundle</type>

and it will be fine.

log4j:log4j is actually of type jar.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top