Search code examples
javamavenjbossfusefabric8

fabric8:deploy how to set user and password properties in goals?


I am trying to deploy a bundle to remote JBoss Fuse 6.1. I use "fabric8-maven-plugin". I am executing the following command

mvn fabric8:deploy -Dfabric8.profileVersion=1.0 -Dfabric8.jolokiaUrl=http://host:8181/jolokia -Dfabric8.parentProfiles=parent -Dfabric8.profile=child

It requires <server> section in my ~/.m2/settings.xml file for the server id: fabric8.upload.repo

Is it possible to set user and password in command?


Solution

  • See Fabric8 Maven Plugin, Specifying credentials from command line:

    The fabric8:deploy goal will by default read the username and password from the local Maven settings.xml file. This may not be desired to store password as plain-text. The option jolokiaUrl can be used to specify the url for the remote fabric server including username and password. For example to use username scott and password tiger then type:

    fabric8:deploy -Dfabric8.jolokiaUrl=http://scott:tiger@localhost:8181/jolokia