I created a simple project from maven-achetype-quickstart in Eclipse Indigo, then I went to the pom.xml gui editor and the log4j dependency was added to the dependency tab by searching in the corresponding dialog box. Now my pom.xml looks like
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org xsd/maven-.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>mygroup</groupId> <artifactId>Test_Maven_03</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>Test_Maven_03</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> </dependency> </dependencies> </dependencyManagement> </project>
Eclipse says my POM has a lot of problems like
Missing artifact javax.jms: jms: jar: 1.1 pom.xml / Test_Maven_03 line 2 Maven dependency problem
What does it mean and how to see the maven function to automatically load jar.
EDIT 1 If I choose log4j 1.2.16 instead of 1.2.15, I get another error: Missing artifact log4j:log4j:bundle:1.2.16 . Therefore, I do not see the automatic management of banks at all.
Suzan Cioc Jan 28 '12 at 19:34 2012-01-28 19:34
source share