NikosDim
NikosDim

Reputation: 1518

How to get cxf 3.0.0-milestone1 bundle through maven

I am trying to go from cxf 2.7.5 to 3.0.0 but I am having an issue with the pom dependencies.

Currently I have

<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>

which it works just fine.

I used the pom editor to get the newer version of the vcf framework and now I have

<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>

but this gives me a lot of Missing artifact errors

I looked on my local maven directory and there are no .jar files under the org/apache/cxf/ dirs

Why isn't maven downloading the required jar files?

Upvotes: 2

Views: 1095

Answers (1)

DB5
DB5

Reputation: 13998

The problem is with the <type>bundle</type> that you have on each of the three dependencies. There is no artifact of type bundle under these groupId and artifactIds. I presume what you want is the corresponding jars. Either change the value from bundle to jar or remove the type tags completely (and then the default of jar will be used automatically).

Upvotes: 2

Related Questions