If you want to get this working with Nexus, you will have to set up two
repositories.  One is a proxy of the java.net maven 1 repo which is the only
repo that seems to be fully populated.  Next you have to set up a virtual
repo that points to the proxy.  This virtual repo will map the maven 2 repo
format requests from your maven build to the m1 repo.  If you are new to
Maven this sounds like a nightmare but the java.net repo is the only place I
have encountered this.

BTW, if you use Nexus you will get used to setting up new repositories.
When you have a missing artifact, look in the pom.xml for any external
repositories ( in the <repositories> sections ) and add them to your Nexus
if they are missing.  Also make sure that you add the repository to a group
in Nexus or else it won't be used.

Chris

--
Chris Custine
My Blog :: http://blog.organicelement.com
Apache ServiceMix :: http://servicemix.apache.org
Apache Directory Server :: http://directory.apache.org


On Tue, Sep 9, 2008 at 10:16 AM, Aaron Crickenberger <
[EMAIL PROTECTED]> wrote:

> FWIW, I'm running into a similar issue.  Maven noob alert.  I'm trying to
> get camel to build with a stock install of Nexus, since all the IONA folks
> have been going nuts over it :)  Problem is, I can't get Nexus to find
> com.sun.xml.bind:jaxb-impl-2.1.6 in even the JBoss repo you mention.  It
> also shows up in a legacy repo at http://download.java.net/maven/1/
>
> Any maven/nexus veteran want to point me in the right direction?
>
> - aaron
>
> On Mon, Aug 25, 2008 at 7:00 AM, Christian Schneider <
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > when I try to build a project that includes camel-cxf from a clean
> > repository I get the error that maven can“t find
> > com.sun.xml.bind:jaxb-impl:jar:2.1.6,
> > com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2,
> > com.sun.xml.bind:jaxb-xjc:jar:2.1.6
> >
> > I have found only one repository that holds this versions. The jboss
> > repository. So I had to include this into my pom.
> > <repository>
> > <id>jboss</id>
> > <name>JBoss</name>
> > <url>http://repository.jboss.org/maven2</url>
> > </repository>
> >
> > Is that expected? I think the libs should be uploaded to the maven
> central
> > repo or the sun repo. Or is it possible to depend on other versions
> > that are available?
> >
> > Best regards
> >
> > Christian
> >
> > --
> >
> > Christian Schneider
> > ---
> > http://www.liquid-reality.de
> >
> >
> > -----
> >
> >
> > 1) com.sun.xml.bind:jaxb-impl:jar:2.1.6
> >
> >  Try downloading the file manually from the project website.
> >
> >  Then, install it using the command:     mvn install:install-file
> > -DgroupId=com.sun.xml.bind -DartifactId=jaxb-impl -Dversion=2.1.6
> > -Dpackaging=jar -Dfile=/path/to/file
> >
> >  Alternatively, if you host your own repository you can deploy the file
> > there:     mvn deploy:deploy-file -DgroupId=com.sun.xml.bind
> > -DartifactId=jaxb-impl -Dversion=2.1.6 -Dpackaging=jar
> -Dfile=/path/to/file
> > -Durl=[url] -DrepositoryId=[id]
> >
> >  Path to dependency:        1) eu.cschneider:cameltest:jar:1.0.0-SNAPSHOT
> >        2) org.apache.cxf:cxf-rt-core:jar:2.1.1
> >        3) com.sun.xml.bind:jaxb-impl:jar:2.1.6
> >
> > 2) com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2
> >
> >  Try downloading the file manually from the project website.
> >
> >  Then, install it using the command:     mvn install:install-file
> > -DgroupId=com.sun.xml.fastinfoset -DartifactId=FastInfoset
> -Dversion=1.2.2
> > -Dpackaging=jar -Dfile=/path/to/file
> >
> >  Alternatively, if you host your own repository you can deploy the file
> > there:     mvn deploy:deploy-file -DgroupId=com.sun.xml.fastinfoset
> > -DartifactId=FastInfoset -Dversion=1.2.2 -Dpackaging=jar
> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> >
> >  Path to dependency:        1) eu.cschneider:cameltest:jar:1.0.0-SNAPSHOT
> >        2) org.apache.cxf:cxf-rt-core:jar:2.1.1
> >        3) com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2
> >
> > 3) com.sun.xml.bind:jaxb-xjc:jar:2.1.6
> >
> >  Try downloading the file manually from the project website.
> >
> >  Then, install it using the command:     mvn install:install-file
> > -DgroupId=com.sun.xml.bind -DartifactId=jaxb-xjc -Dversion=2.1.6
> > -Dpackaging=jar -Dfile=/path/to/file
> >
> >  Alternatively, if you host your own repository you can deploy the file
> > there:     mvn deploy:deploy-file -DgroupId=com.sun.xml.bind
> > -DartifactId=jaxb-xjc -Dversion=2.1.6 -Dpackaging=jar
> -Dfile=/path/to/file
> > -Durl=[url] -DrepositoryId=[id]
> >
> >  Path to dependency:        1) eu.cschneider:cameltest:jar:1.0.0-SNAPSHOT
> >        2) org.apache.camel:camel-cxf:jar:1.4.0
> >        3) org.apache.cxf:cxf-tools-common:jar:2.1.1
> >        4) com.sun.xml.bind:jaxb-xjc:jar:2.1.6
> >
> >
>

Reply via email to