4 Replies Latest reply on Aug 21, 2012 12:17 PM by sandeep16

    mvn command not working in fuse fabric 7.0

    sandeep16

      when trying to execute below command

      mvn deploy:deploy-file -Dfile=/home/ubuntu/Cumulus-Configuration-Blueprint-1.0.0-SNAPSHOT.jar -DartifactId=Cumulus-Configuration-Blueprint -DgroupId="com.camstar" -Dversion=1.0.0-SNAPSHOT -Dtype=jar  -Durl="~/.m2/repository/"

       

      Fabric says "Command not found: mvn"..I do have "fabric-maven-proxy" feature installed and is active..

       

      I am trying to run above on root container of my fabric..

       

      do you knnow if I am missing any requirements?

        • 1. Re: mvn command not working in fuse fabric 7.0
          iocanel

          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

            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

              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

                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