Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shai ban
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
That new kid is a freak. Show him this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic