Then add profiles to configure the Confluence servers you want to deploy to. The following shows the deployment to the locally started Confluence on a developer machine (with default password and user admin). Code Block |
---|
language | xml |
---|
title | profile in pom.xml |
---|
| <profiles>
<profile>
<id>LOCAL</id>
<activation>
<activeByDefault />
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>de.smartics.maven.plugin</groupId>
<artifactId>apptools-maven-plugin</artifactId>
<configuration>
<username>admin</username>
<password>admin</password>
<serverUrl>http://localhost:1990/confluence</serverUrl>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
...
</profiles> |
Then deploy the OBR artifact to the local server by specifying the profile. Code Block |
---|
mvn apptools:deploy -PLOCAL |
|