-
1. Re: mvn command not working in fuse fabric 7.0
iocanel Aug 21, 2012 10:58 AM (in response to sandeep16)The command that you are using is not a fabric command and can't be used directly inside the fabric shell.
The command that you are using is a maven command that would allow you to deploy a jar file as a maven artifact on any maven repository manager (that is used from your os shell like mvn clean install).
The fabric-maven-proxy feature adds a lightweight maven repository manager on top of your fabric container, that would allow you to deploy maven artifacts to it, so that it can later on provision them.
I am not sure what exactly is your goal here.
Can you please share a few more details on what exactly are you trying to do?
Edited by: iocanel on Aug 21, 2012 5:58 PM
-
2. Re: mvn command not working in fuse fabric 7.0
sandeep16 Aug 21, 2012 11:01 AM (in response to iocanel)thanks for quick reply..
what I am trying to do is:
a) In my fabric, I want to deploy this artifact/bundle to maven proxy, associate it to a profile and then deploy to cloud managed containers..
do you know we can achieve it in some other way?
-
3. Re: mvn command not working in fuse fabric 7.0
iocanel Aug 21, 2012 11:19 AM (in response to sandeep16)You can have a look at the community docs, which contain a section about fabric maven proxy: http://fuse.fusesource.org/fabric/docs/fabric-maven-proxy.html
The command:
mvn deploy:deploy-file -Dfile=/path/to/target/file.jar -DartifactId=myartifactId -DgroupId=mygroupId -Dversion=1.0.0 -Dtype=jar -Durl=http://username:password@exampleHost:8040/maven/upload
where exampleHost is the hostname of the container that runs the fabric-maven-proxy feature. Username and password are the credentials of the container (admin/admin by default).
Now if your project is a maven project you could use add distributionManagement section in your project to define the location of your fabric maven proxy:
-
4. Re: mvn command not working in fuse fabric 7.0
sandeep16 Aug 21, 2012 12:17 PM (in response to iocanel)never mind got it.. it hass to be run from OS shell not from karaf shell...
thanks
Edited by: sandeep16 on Aug 21, 2012 4:17 PM