Hi,

The latest Version of CXF is 2.2-SNAPSHOT[1].
You can't get any CXF 2.0 from maven repository, Since CXF did graduate
from Apache incubator when it released the 2.0-incubator version.

>From 2.1.2 and 2.0.8, cxf is full releases from the Apache CXF Top Level
Project. Thus, they are synced into the maven central repository:
http://repo1.maven.org/maven2/
Before that, we were using
http://people.apache.org/repo/m2-incubating-repository
and the version has the '-incubator' suffix.

[1] http://cwiki.apache.org/CXF/download.html

Willem


Drone42 wrote:
> Based on the tutorial for web service integration I'm trying to use the CXF
> compiler as part of a project. But I have problems (see errors below) when
> compiling a Camel component with the pom.xml file (see below).
> 
> I have tried changing the version of the CXF to 1.4 (= camel core version)
> 2.07 (found in another thread as a suggestion) and to 2.0-SNAPSHOT (which
> from the CXF page seems to be the latest). No luck.
> 
> I have seen a few threads on security proxies, but I have used Maven before
> without problems...
> 
> 
> --- ERROR ------------------------
> 
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Hummingbird Packet Archive :: New
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apach
> e/cxf/cxf-codegen-plugin/2.0/cxf-codegen-plugin-2.0.pom
> Downloading:
> http://repo1.maven.org/maven2/org/apache/cxf/cxf-codegen-plugin/2.0
> /cxf-codegen-plugin-2.0.pom
> Downloading:
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apach
> e/cxf/cxf-codegen-plugin/2.0/cxf-codegen-plugin-2.0.pom
> Downloading:
> http://repo1.maven.org/maven2/org/apache/cxf/cxf-codegen-plugin/2.0
> /cxf-codegen-plugin-2.0.pom
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> 
> 
> Project ID: org.apache.cxf:cxf-codegen-plugin
> 
> Reason: POM 'org.apache.cxf:cxf-codegen-plugin' not found in repository:
> Unable
> to download the artifact from any repository
> 
>   org.apache.cxf:cxf-codegen-plugin:pom:2.0
> 
> from the specified remote repositories:
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
>   central (http://repo1.maven.org/maven2)
>  for project org.apache.cxf:cxf-codegen-plugin
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 27 seconds
> [INFO] Finished at: Fri Nov 21 17:45:41 CET 2008
> [INFO] Final Memory: 5M/9M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> 
> --- ./pom.xml ----------------
> 
> <?xml version="1.0" encoding="UTF-8"?><project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.hummingbird.packet.archive</groupId>
>   <artifactId>hummingbird-packet-archive</artifactId>
>   <packaging>jbi-service-unit</packaging>
>   <name>Hummingbird Packet Archive :: New</name>
>   <version>1.0</version>
>   <url>http://www.myorganization.org</url>
>   <build>
>     <defaultGoal>install</defaultGoal>
>     <plugins>
>       <plugin>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>1.5</source>
>           <target>1.5</target>
>         </configuration>
>       </plugin>
> 
>       <plugin>
>               <groupId>org.apache.cxf</groupId>
>                       <artifactId>cxf-codegen-plugin</artifactId>
>                       <version>${cxf-version}</version>
>                       <executions>
>                               <execution>
>                                       <id>generate-sources</id>
>                                       <phase>generate-sources</phase>
>                                       <configuration>
>                                               
> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
>                                               <wsdlOptions>
>                                                       <wsdlOption>
>                                                       
> <wsdl>${basedir}/src/main/webapp/WEB-INF/wsdl/report_incident.wsdl</wsdl>
>                                                       </wsdlOption>
>                                               </wsdlOptions>
>                                       </configuration>
>                                       <goals>
>                                               <goal>wsdl2java</goal>
>                                       </goals>
>                               </execution>
>                       </executions>
>               </plugin>
> 
>       <plugin>
>         <groupId>org.apache.servicemix.tooling</groupId>
>         <artifactId>jbi-maven-plugin</artifactId>
>         <version>${servicemix-version}</version>
>         <extensions>true</extensions>
>       </plugin>
>       <plugin>
>         <groupId>org.apache.camel</groupId>
>         <artifactId>camel-maven-plugin</artifactId>
>         <version>${camel-version}</version>
>       </plugin>
>     </plugins>
>   </build>
>   <repositories>
>     <repository>
>       <releases />
>       <snapshots>
>         <enabled>false</enabled>
>       </snapshots>
>       <id>apache</id>
>       <name>Apache Repository</name>
>       <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
>     </repository>
>     <repository>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>       <snapshots />
>       <id>apache.snapshots</id>
>       <name>Apache Snapshots Repository</name>
>       <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>     </repository>
>   </repositories>
>   <pluginRepositories>
>     <pluginRepository>
>       <releases />
>       <snapshots>
>         <enabled>false</enabled>
>       </snapshots>
>       <id>apache</id>
>       <name>Apache Repository</name>
>       <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
>     </pluginRepository>
>     <pluginRepository>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>       <snapshots />
>       <id>apache.snapshots</id>
>       <name>Apache Snapshots Repository</name>
>       <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>     </pluginRepository>
>   </pluginRepositories>
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.servicemix</groupId>
>       <artifactId>servicemix-camel</artifactId>
>       <version>${servicemix-version}</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.servicemix</groupId>
>       <artifactId>servicemix-core</artifactId>
>       <version>${servicemix-version}</version>
>       <scope>provided</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.camel</groupId>
>       <artifactId>camel-ibatis</artifactId>
>       <version>2.0-SNAPSHOT</version>
>       <scope>bundle</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.camel</groupId>
>       <artifactId>camel-cxf</artifactId>
>       <version>$(cxf-version)</version>
>       <scope>bundle</scope>
>     </dependency>
>   </dependencies>
>   <properties>
>     <servicemix-version>3.2.3</servicemix-version>
>     <camel-version>1.4.0</camel-version>
>     <cxf-version>2.0</cxf-version>
>   </properties>
> </project>

Reply via email to