[英]m2eclipse Missing Artifact
I am trying to get started with Maven and m2eclipse but I keep getting missing artifact errors: 我正在尝试开始使用Maven和m2eclipse,但我一直都在丢失人工制品错误:
log4j
is in my local repository. log4j
在我的本地存储库中。 I have m2eclipse set up to use an external installation of Maven although I realize that for dependency resolution it uses the embedded maven. 我已经将m2eclipse设置为使用Maven的外部安装,尽管我意识到为了解决依赖关系,它使用了嵌入式maven。 I don't have any custom settings for maven set up, this is a plain install of m2eclipse and maven.
我没有maven设置的任何自定义设置,这是m2eclipse和maven的简单安装。 I am able to add the dependencies I want through m2eclipse (such as log4j) and it adds them to my pom file.
我可以通过m2eclipse(例如log4j)添加所需的依赖项,并将其添加到我的pom文件中。 I am at home and not behind a corporate or particularly restrictive firewall.
我在家里,而不是在公司防火墙或限制性特别强的防火墙后面。
Can anybody help me figure out what is going on? 有人可以帮我弄清楚发生了什么吗?
Pom file: Pom文件:
<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-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.xonatype.mavenbook.ch04</groupId>
<artifactId>simple-weather</artifactId>
<version>1.0</version>
<name>Simple Weather</name>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<type>bundle</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>20040902.021138</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
将<type>bundle</type>
更改为<type>jar</type>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.