Show Table of Contents
Chapter 5. Fabric8 Maven Plug-In
This Maven plug-in makes it easy to create or update a fabric profile from your Maven project.
The Fabric8 Maven plug-in is a technical preview only, and is not supported in JBoss Fuse 6.1.
5.1. Preparing to Use the Plug-In
Edit your Maven settings
First you will need to edit your
~/.m2/settings.xmlfile to add the fabric server's user and password so that the maven plugin can log in to the fabric. For example, you could add the following
serverelement to your
<settings> <servers> <server> <id>fabric8.upload.repo</id> <username>Username</username> <password>Password</password> </server> ... </servers> </settings>
Passwordare the credentials of a Fabric user with administrative privileges (for example, the credentials you would use to log on to the Management Console).
Customising the repository ID
The default Fabric Maven repository ID is
fabric8.upload.repo. You can specify additional
serverelements in your
settings.xmlfile for each of the fabrics you need to work with. To select the relevant credentials, you can set the
serverIdproperty in the Fabric8 Maven plug-in
configurationsection (see Section 5.4, “Configuration Properties”) or set the