That was it; I was editing in the SU pom.xml file not the SA pom.xml file. 







Gert Vanthienen wrote:
> 
> L.S.,
> 
> I agree the deprecation warnings don't look nice, but you can safely 
> ignore them for now.
> The real problem is that you added a dependency for the file-sue to the 
> ./pom.xml file, which leads to the exception you mention.
> 
> That dependency should go into the SA pom.xml and not into the project's 
> root pom.xml file.   Does that help?
> 
> Regards,
> 
> Gert
> 
> Drone42 wrote:
>> I'm trying to run the example in the tutorial section 2 and failing
>> misserably. I'm using servicemix 3.2.2.
>>
>> When running the commands 'mvn archetype:create
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DartifactId=tutorial-file-su' in section 2.1 and 'mvn archetype:create
>> -DarchetypeArtifactId=servicemix-service-assembly
>> -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DartifactId=tutorial-sa'
>> in section 2.3 I get the warnings 
>>
>> [WARNING] org.apache.velocoty.runtime.exception.ReferenceException:
>> reference : template = arhetype-resources/pom.xml [line 93,column 18] :
>> ${servicemix-version} is not a valid reference.
>>
>> ... however the build seems to work (structure is created). So I just
>> ignored this. I update the pom and xbean files (see below) as described
>> in
>> the tutorial (I think...).
>>
>> But when I run the 'mvn install' in the end of section 2.3 it fails with
>> the
>> warning (I used the -e switch to get details, but didnt get clever) 
>>
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: The projects in the reactor
>> contain
>> a cy
>> clic reference: Edge between
>> 'Vertex{label='org.apache.servicemix.tutorial:tutor
>> ial-file-su'}' and
>> 'Vertex{label='org.apache.servicemix.tutorial:tutorial-file-s
>> u'}' introduces to cycle in the graph
>> org.apache.servicemix.tutorial:tutorial-fi
>> le-su --> org.apache.servicemix.tutorial:tutorial-file-su
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:313)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: hidden.org.codehaus.plexus.util.dag.CycleDetectedException:
>> Edge
>> betw
>> een 'Vertex{label='org.apache.servicemix.tutorial:tutorial-file-su'}' and
>> 'Verte
>> x{label='org.apache.servicemix.tutorial:tutorial-file-su'}' introduces to
>> cycle
>> in the graph org.apache.servicemix.tutorial:tutorial-file-su -->
>> org.apache.serv
>> icemix.tutorial:tutorial-file-su
>>         at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:127)
>>         at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:107)
>>         at
>> org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:104)
>>
>>         at
>> org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java:
>> 59)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:302)
>>         ... 10 more
>>
>> The pom.xml and xbean.xml files are shown below.
>>
>>
>>
>> -- ./pom.xml ----------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd";> 
>> <modelVersion>4.0.0</modelVersion> 
>> <groupId>org.apache.servicemix.tutorial</groupId> 
>> <artifactId>parent</artifactId> 
>> <version>1.0-SNAPSHOT</version> 
>> <packaging>pom</packaging> 
>> <name>Tutorial :: SA</name> 
>> <url>http://servicemix.org</url>
>>   <modules>
>>     <module>tutorial-file-su</module>
>>     <module>tutorial-sa</module>
>>   </modules>
>>
>>   <dependencies>
>>     <dependency>
>>       <groupId>org.apache.servicemix.tutorial</groupId>
>>       <artifactId>tutorial-file-su</artifactId>
>>       <version>1.0-SNAPSHOT</version>
>>     </dependency>
>>   </dependencies>
>>
>> </project>
>>
>>
>> -- ./tutorial-file-su/pom.xml
>> ----------------------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?><project>
>>   <parent>
>>     <artifactId>parent</artifactId>
>>     <groupId>org.apache.servicemix.tutorial</groupId>
>>     <version>1.0-SNAPSHOT</version>
>>   </parent>
>>   <modelVersion>4.0.0</modelVersion>
>>   <groupId>org.apache.servicemix.tutorial</groupId>
>>   <artifactId>tutorial-file-su</artifactId>
>>   <packaging>jbi-service-unit</packaging>
>>   <name>A custom project</name>
>>   <version>1.0-SNAPSHOT</version>
>>   <url>http://www.myorganization.org</url>
>>   <build>
>>     <resources>
>>       <resource>
>>         <directory>src/main/resources</directory>
>>         <includes>
>>           <include>**/*</include>
>>         </includes>
>>       </resource>
>>     </resources>
>>     <plugins>
>>       <plugin>
>>         <groupId>org.apache.servicemix.tooling</groupId>
>>         <artifactId>jbi-maven-plugin</artifactId>
>>         <version>${servicemix-version}</version>
>>         <extensions>true</extensions>
>>       </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>junit</groupId>
>>       <artifactId>junit</artifactId>
>>       <version>3.8.1</version>
>>       <scope>test</scope>
>>     </dependency>
>>
>>   <dependency>
>>     <groupId>org.apache.servicemix</groupId>
>>     <artifactId>servicemix-file</artifactId>
>>     <version>${servicemix-version}</version>
>>   </dependency>
>>
>>   </dependencies>
>>   <properties>
>>     <servicemix-version>3.2.2</servicemix-version>
>>   </properties>
>> </project>
>>
>>
>> -- ./tutorial-file-su/src/main/resources/xbean.xml
>> --------------------------------------
>> <beans xmlns:file="http://servicemix.apache.org/file/1.0";
>> xmlns:tut="urn:servicemix:tutorial"> 
>> <!-- add the sender endpoint here -->
>> <file:sender service="tut:file" 
>>              endpoint="sender"
>>              directory="file:/home/gert/sender" />
>> <!-- add the poller endpoint here --> 
>> <file:poller service="tut:file" 
>>              endpoint="poller"
>>              file="file:/home/gert/poller" 
>>              targetService="tut:file"
>>              targetEndpoint="sender"/>
>> </beans>
>>
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: 
http://www.nabble.com/Deprecated-archetypes-in-tutorial-and-error-building-tp20529803p20547031.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to