Hi,

The tutorial seems to make a few assumptions about Maven. It assumes
artifacts to be present in your local repository.

You might want to add a couple of additional parameters to the mvn command
as shown below (both to the Camel SU and SA).

This will ensure that all the artifacts are downloaded automatically and
stored in the local repository as well as add version awareness

I would recommend

-          mvn archetype:create
-DarchetypeArtifactId=servicemix-camel-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeVersion=3.3.1.13-fuse
-DartifactId=tutorial-camel-su
-DremoteRepositories=http://repo.fusesource.com/maven2/

That will do the trick.

Cheers,

Ashwin...


Nawaz wrote:
> 
>  
> 
> Hello Everybody,
> 
>     
> 
>      I was going through service mix tutorial available in the link
> 
>      http://servicemix.apache.org/31-starting-a-new-project.html
> 
>  
> 
>      After creating the POM.xml, executed the following maven commands
> successfully:
> 
> -          mvn archetype:create
> -DarchetypeArtifactId=servicemix-camel-service-unit
> -DarchetypeGroupId=org.apache.servicemix.tooling
> -DartifactId=tutorial-camel-su
> 
> -          mvn archetype:create
> -DarchetypeArtifactId=servicemix-service-assembly
> -DarchetypeGroupId=org.apache.servicemix.tooling
> -DartifactId=tutorial-camel-sa
> 
>  
> 
>     also added the SU as a dependency in the SA Pom.xml successfully 
> 
>     
> 
>     but on executing the command mvn install
> 
>     I get the following error:
> 
>     
> 
> Missing:
> 
> ----------
> 
>        1) org.apache.xbean:xbean-kernel:jar:3.3-SNAPSHOT
> 
>            Try downloading the file manually from the project website.
> 
>  
> 
>           Then, install it using the command:
> 
>           mvn install:install-file -DgroupId=org.apache.xbean
> -DartifactId=xbean-kernel -Dversion=3.3-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
> 
>  
> 
>           Alternatively, if you host your own repository you can deploy
> the file there:
> 
>           mvn deploy:deploy-file -DgroupId=org.apache.xbean
> -DartifactId=xbean-kernel -Dversion=3.3-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> 
>  
> 
>           Path to dependency:
> 
>           1)
> org.apache.servicemix.tutorial.camel:tutorial-camel-su:jbi-service-unit:
> 1.0-SNAPSHOT
> 
>           2) org.apache.servicemix:servicemix-core:jar:3.2.2
> 
>           3) org.apache.xbean:xbean-server:jar:3.3
> 
>           4) org.apache.xbean:xbean-kernel:jar:3.3-SNAPSHOT
> 
>  
> 
> ----------
> 
>        1 required artifact is missing.
> 
>  
> 
> for artifact:
> 
>  
> org.apache.servicemix.tutorial.camel:tutorial-camel-su:jbi-service-unit:
> 1.0-SNAPSHOT
> 
>  
> 
> from the specified remote repositories:
> 
>       central (http://repo1.maven.org/maven2),
> 
>       apache.snapshots
> (http://people.apache.org/repo/m2-snapshot-repository),
> 
>       apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> 
> 
>    
> 
>   
> 
> I have searched the file but was unable to find it.
> 
> Could any please give me the solution for this? Eagerly waiting for the
> solution.
> 
>  
> 
>   
> 
>  
> 
> Thanks and Regards,
> 
> Nawaz Ahmed
> 
>  
> 
> 
> 


-----
--- 
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
--- 
+1-972-304-9084 (Office) 
+1-972-971-1700 (Mobile) 
---- 
Blog: http://opensourceknowledge.blogspot.com/


-- 
View this message in context: 
http://www.nabble.com/Problem-in-Service-Mix-tp22121316p22130517.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to