fabric8:deploy 如何在目标中设置用户和密码属性?

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

我正在尝试将一个包部署到远程 JBoss Fuse 6.1。 我使用 "fabric8-maven-plugin"。 我正在执行以下命令

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

它需要我的 ~/.m2/settings.xml 文件中的 <server> 部分作为服务器 ID:fabric8.upload.repo

是否可以在命令中设置用户和密码?

参见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