Maven无法下载sencha gxt发布。我在我的pom.xml中有以下内容
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt-release</artifactId>
<version>3.0.1</version>
</dependency>
以下是我的settings.xml
中的代码段 <repository>
<id>thirdparty-uploads</id>
<name>JBoss Thirdparty Uploads</name>
<url>https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads</url>
</repository>
<repository>
<id>maven central</id>
<name>maven central repo</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
这是maven错误输出
Downloading: https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads/com/sencha/gxt/gxt-release/3.0.1/gxt-release-3.0.1.jar
Downloading: http://repo1.maven.org/maven2/com/sencha/gxt/gxt-release/3.0.1/gxt-
release-3.0.1.jar
Downloading: http://repository.jboss.org/nexus/content/groups/public/com/sencha/
gxt/gxt-release/3.0.1/gxt-release-3.0.1.jar
Downloading: http://repo.maven.apache.org/maven2/com/sencha/gxt/gxt-release/3.0.
1/gxt-release-3.0.1.jar
[ INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] xxxx............................................... SUCCESS [0.147s]
[INFO] yyyyyy ........................................... FAILURE [5.065s]
显然,上面maven trace中gxt-release-3.0.1.jar的链接不起作用。 我下载了用于gxt-release的zip,并且事实上注意到它没有文件&#34; gxt-release-3.0.1.jar&#34; 以下是来自中央存储库
的gxt-release-3.0.1.jar的pom.xml的片段 <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>
<parent>
<artifactId>gxt-parent</artifactId>
<groupId>com.sencha.gxt</groupId>
<version>3.0.1</version>
</parent>
<artifactId>gxt-release</artifactId>
**<packaging>pom</packaging>**
<name>Sencha GXT Release package</name>
<description>This project represents a full ExtGWT release, available for download by non-maven users. Maven users should make use of the artifacts in central, or the snapshots made available by the ExtGWT team.</description>
<dependencies>
<dependency>
我的问题是: 1)当打包类型(如上面的gxt发行版的pom.xml中突出显示)是pom类型时,为什么maven正在寻找下载不存在的jar文件
2)任何可能导致我的maven构建/下载失败的线索。
答案 0 :(得分:0)
改为战争包装并且有效
<packaging>war</packaging>