This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Missing artifact org.apache.cxf:cxf-bundle:bundle:2.6.0 pom.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Missing artifact org.apache.cxf:cxf-bundle:bundle:2.6.0 pom.xml " Watch "Missing artifact org.apache.cxf:cxf-bundle:bundle:2.6.0 pom.xml " New topic
Author

Missing artifact org.apache.cxf:cxf-bundle:bundle:2.6.0 pom.xml

shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Hi All,
I was trying a sample example in eclipse using m2eclipse having below snippet of pom.xml

<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>2.6.0</version>
<type>bundle</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>apache-incubating</id>
<name>Apache Incubating Repository</name>
<url>http://people.apache.org/repo/m2-incubating-repository/</url>
</repository>
</repositories>


Example was using the dependency version of 2.2.5 but I updated the dependency to latest version but I am getting the below error:


Even if I update the dependency to the example version (2.2.5) then also same error comes. I searched in the central reposiroty but it is providing the Mavan Coordinates not the repository url. Please let me know how to resolve the issue. Also let me know how to find the updated repository url for a particular dependency.

Thanks.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

http://people.apache.org/repo/m2-incubating-repository/org/apache/cxf/cxf-bundle/

only goes to 2.0.5, and still does.

Try changing the url to http://repo2.maven.org/ or something else (We use Nexus in here)

WP
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
William P O'Sullivan wrote:http://people.apache.org/repo/m2-incubating-repository/org/apache/cxf/cxf-bundle/

only goes to 2.0.5, and still does.

Try changing the url to http://repo2.maven.org/ or something else (We use Nexus in here)

WP


This url is also not working. However when I remove or change it to 'jar' then it works!!! Any explanation what it is?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The <type> option identifies the type of file to download. It defaults to jar. Usually you want JARs as dependencies. You would use another type only if the artifact is provided as some other type.


JBoss In Action
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Peter Johnson wrote:The <type> option identifies the type of file to download. It defaults to jar. Usually you want JARs as dependencies. You would use another type only if the artifact is provided as some other type.


Also let me know about the below query:
- how to find a suitable repository for a particular dependency because there are many repositories?
- After identifying the repo, what url needs to be given in POM.xm for that dependency because there is only maven coordinates in repo?

Thanks.


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

I usually look in Maven Central first.

If the JAR is not there, I try to find out from the JAR file itself or from the project's web site if they use another repository. The project documentation should tell you the repository URL (you provide only the base URL, not the full URL to the JAR file - Maven builds that from the coordinates).

If the project does;'t use Maven make their repository available, then I manually load the the JAR into my repository using "mvn install:install-file" (or better yet, I load it into our teams Nexus repository - if you plan on doing any serious work with Maven, having a central Nexus (or Artifactory) repository is a must)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Missing artifact org.apache.cxf:cxf-bundle:bundle:2.6.0 pom.xml
 
Similar Threads
Richfaces + Spring + Maven Setup help
java.util.MissingResourceException: Can't find bundle for base name in JSF Spring Maven project
Could not resolve dependencies
Could not resolve dependencies for maven project
Maven dependencies