You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Drone42 <ge...@logica.com> on 2008/11/21 17:55:59 UTC

Build error ''

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>
-- 
View this message in context: http://www.nabble.com/Build-error-%27%27-tp20625285s22882p20625285.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Build error ''

Posted by Claus Ibsen <cl...@gmail.com>.
Yes -SNAPSHOT is a build from the latest code committed.

/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/



On Sat, Nov 22, 2008 at 5:34 PM, Drone42 <ge...@logica.com> wrote:
>
> Ok, 2.2-SNAPSHOT.
>
> I have tried to find out what the idea behing the SNAPSHOT is. I understand
> it is a sort-of on-the-fly release, i.e. the latest ongoing version.
> Correct?
>
>
>
>
> willem.jiang wrote:
>>
>> 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>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Build-error-%27%27-tp20625285s22882p20637978.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Re: Build error ''

Posted by Willem Jiang <wi...@gmail.com>.
Yes, you are right.
And the SNAPSHOT version will be removed when the official release come out.

Willem


Drone42 wrote:
> Ok, 2.2-SNAPSHOT.
> 
> I have tried to find out what the idea behing the SNAPSHOT is. I understand
> it is a sort-of on-the-fly release, i.e. the latest ongoing version.
> Correct?
> 
> 
> 
> 
> willem.jiang wrote:
>> 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>
>>
>>
> 


Re: Build error ''

Posted by Drone42 <ge...@logica.com>.
Ok, 2.2-SNAPSHOT.

I have tried to find out what the idea behing the SNAPSHOT is. I understand
it is a sort-of on-the-fly release, i.e. the latest ongoing version.
Correct?




willem.jiang wrote:
> 
> 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>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Build-error-%27%27-tp20625285s22882p20637978.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Build error ''

Posted by Willem Jiang <wi...@gmail.com>.
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>


Re: Build error ''

Posted by Drone42 <ge...@logica.com>.
I have the settings.xml file in my Maven repository (from a previous
project). It is configured to the firewall at work and I'm working home
(damn Pnemonia...) but still it has worked before. I have disabled all
windows security settings with no luck.

I checked the CXF versions available in the repositories I use. Neither of
the versions I specified are available. I have now taken CXF 2.0.7 and it
downloads but fails with another (familiar...) error.

... got it.

I have added CXF (not the plugin, but CXF directly) in the dependencies. So
the build will try to download;

Dependency:
http://repo1.maven.org/maven2/org/apache/camel/camel-cxf/$(cxf-version)/camel-cxf-$(cxf-version).jar

AND

Plugin:
http://repo1.maven.org/maven2/org/apache/cxf/cxf-codegen-plugin/$(cxf-version)/cxf-codegen-plugin-$(cxf-version).pom

As the version numbering of the cxf plugin are different from the ones for
cxf, would one of these always fail... corrected pom.xml below. Now I just
need to debug my WSDL file...


--- ./pom.xml (corrected) ------------------------

<?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-codegen-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>
  </dependencies>
  <properties>
    <servicemix-version>3.2.3</servicemix-version>
    <camel-version>1.4.0</camel-version>
    <cxf-version>1.4.0</cxf-version>
    <cxf-codegen-version>2.0.7</cxf-codegen-version>  </properties>
</project>



Claus Ibsen-2 wrote:
> 
> Hi
> 
> At my current client we have http proxy. So I need this settings.xml
> in my M2_HOME folder
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <settings>
> 
>   <proxies>
>    <proxy>
>       <active>true</active>
>       <protocol>http</protocol>
>       <host>IP TO PROXY</host>
>       <port>8080</port>
>     </proxy>
>   </proxies>
> 
> </settings>
> 
> 
> Maybe you need such a setting as well.
> 
> /Claus Ibsen
> Apache Camel Committer
> Blog: http://davsclaus.blogspot.com/
> 
> 
> 
> On Fri, Nov 21, 2008 at 5:55 PM, Drone42 <ge...@logica.com> 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>
>> --
>> View this message in context:
>> http://www.nabble.com/Build-error-%27%27-tp20625285s22882p20625285.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Build-error-%27%27-tp20625285s22882p20628913.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Build error ''

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

At my current client we have http proxy. So I need this settings.xml
in my M2_HOME folder

<?xml version="1.0" encoding="iso-8859-1"?>
<settings>

  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>IP TO PROXY</host>
      <port>8080</port>
    </proxy>
  </proxies>

</settings>


Maybe you need such a setting as well.

/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/



On Fri, Nov 21, 2008 at 5:55 PM, Drone42 <ge...@logica.com> 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>
> --
> View this message in context: http://www.nabble.com/Build-error-%27%27-tp20625285s22882p20625285.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>