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

有帮助吗?

解决方案

Remove

<type>bundle</type>

and it will be fine.

log4j:log4j is actually of type jar.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top