我试图从cxf 2.7.5转到3.0.0,但我遇到了pom依赖项的问题。
目前我有
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-search</artifactId>
<version>2.7.5</version>
</dependency>
它工作得很好。
我使用pom编辑器来获取更新版本的vcf框架,现在我已经
了<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
<version>3.0.0-milestone1</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-search</artifactId>
<version>3.0.0-milestone1</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>3.0.0-milestone1</version>
<type>bundle</type>
</dependency>
但这给了我很多Missing artifact errors
我查看了我的本地maven目录,org / apache / cxf / dirs下没有.jar文件
为什么maven没有下载所需的jar文件?
答案 0 :(得分:2)
问题在于您对三个依赖项中的每一个都有<type>bundle</type>
。在这些groupId和artifactIds下没有类型bundle的工件。我认为你想要的是相应的罐子。将值从bundle
更改为jar
或完全删除type
标记(然后将自动使用默认的jar
)。