In case you want to deploy to a remote test server, add a profile like this: Code Block |
---|
language | xml |
---|
title | profile in pom.xml |
---|
| <profile>
<id>TEST</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>de.smartics.maven.plugin</groupId>
<artifactId>apptools-maven-plugin</artifactId>
<configuration>
<serverId>confluence-test</serverId>
<serverUrl>${my.server.url.TEST}</serverUrl>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile> |
Provide the credentials and the URL to access the TEST server in your settings.xml. Code Block |
---|
language | xml |
---|
title | ~/.m2/settings.xml |
---|
| <settings>
...
<servers>
...
<server>
<id>confluence-test</id>
<username>jane.doe</username>
<password>{HllO1A....}</password>
</server>
</servers>
...
<profiles>
<profile>
<my.server.url.TEST>https://www.mycorp.example.com/confluence</my.server.url.TEST>
</properties>
</profile>
...
</profiles>
</settings> |
|