Maven generate-sources target issues

2008-03-04 Thread Bjorn Townsend

Hello,

I'm trying to generate sources for a client using the wsdl2java Maven  
plugin for CXF with the generate-sources target described in the docs,  
and it seems to depend on a nonexistent dependency:


Missing:
--
1) com.sun.xml.bind:jaxb-impl:jar:2.0.5

  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.0.5 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) com.mydomain:myproject:jar:1.0.0
2) org.apache.cxf:cxf-rt-core:jar:2.0.4-incubator
3) com.sun.xml.bind:jaxb-impl:jar:2.0.5

--
1 required artifact is missing.

for artifact:
  com.mydomain:myproject:jar:1.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.incubating.releases (http://people.apache.org/repo/m2-incubating-repository 
)



Googling around has shown me that this issue has cropped up when  
trying to build the 2.0.5 snapshots, but I'm using the 2.0.4 release  
version. Is there any way I can work around this problem?


Thanks,
Bjorn


Re: Maven generate-sources target issues

2008-03-04 Thread Willem Jiang

Hi,

Please add the below repository into your pom:
repositories
  repository
 idjava.net/id
 urlhttp://download.java.net/maven/1//url
 layoutlegacy/layout
   /repository
/repositories
Then you will get the jar.

Willem

Bjorn Townsend wrote:

Hello,

I'm trying to generate sources for a client using the wsdl2java Maven 
plugin for CXF with the generate-sources target described in the docs, 
and it seems to depend on a nonexistent dependency:


Missing:
--
1) com.sun.xml.bind:jaxb-impl:jar:2.0.5

  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.0.5 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
  1) com.mydomain:myproject:jar:1.0.0
  2) org.apache.cxf:cxf-rt-core:jar:2.0.4-incubator
  3) com.sun.xml.bind:jaxb-impl:jar:2.0.5

--
1 required artifact is missing.

for artifact:
  com.mydomain:myproject:jar:1.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.incubating.releases 
(http://people.apache.org/repo/m2-incubating-repository)



Googling around has shown me that this issue has cropped up when 
trying to build the 2.0.5 snapshots, but I'm using the 2.0.4 release 
version. Is there any way I can work around this problem?


Thanks,
Bjorn