Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Transclusion
document@self
idsp_for_build_profiles


Section
titleAlternative Configuration

This configuration has advantages when environments need to be added or removed.

With the configuration explained above you would need to alter the POM file of every project. You can keep this configuration effort local to the settings file if you use the following configuration in your POMs:

Code Block Placeholder
code-languageHTML and XML
code-titlepom.xml
<build>
  ...
  <pluginManagement>
    <plugins>
      ...
      <plugin>
        <groupId>de.smartics.maven.plugin</groupId>
        <artifactId>apptools-maven-plugin</artifactId>
        <version>${project.version}</version>
        <configuration>
          ... <!-- same as above, plus: -->

          <serverId>${my-project.apptools.remote.server.id}</serverId>
          <serverUrl>${my-project.apptools.remote.server.url}</serverUrl>
        </configuration>
      </plugin>
    </plugins>
  </pluginManagement>
  ...
</build>

Then in your settings.xml add the following as a profile element for each of your environments.

Code Block Placeholder
code-languageHTML and XML
code-titlesettings.xml
<settings>
  ...
  <servers>
    <server>
      <id>my-server-id</id>
      <username>janedoe</username>
      <password>{swldfcm .... ssdfsdaf323=}</password>
    </server>
  </servers>

  ...

  <profiles>
    <profile>
      <id>MY_ENV_ID</id>
      <properties>
        <projectdoc.apptools.remote.server.id>my-server-id</projectdoc.apptools.remote.server.id>
        <projectdoc.apptools.remote.server.url>https://myserver/confluence</projectdoc.apptools.remote.server.url>
      </properties>
    </profile>
  </profiles>
</settings>



Section
titleSubordinate Topics
Display Table
doctypetopic
render-no-hits-as-blanktrue
render-modedefinition
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...