About AMPS Build Options

When you create a new plugin project with the SDK, the generated POM file specifies the Atlassian Maven Plugin Suite (AMPS) as a build plugin for the project.

If using the SDK, you do not need to install AMPS or configure your project to use it yourself. However, there are a number of settings you can use to control its behavior.

You can pass AMPS parameters to Maven in one of two ways:

  • On the command line as Java system variables. For example:

    mvn jira:run -D<parameter1Name>=<parameter1Value> -D<parameter2Name>=<parameter2Value> ...
    
  • In the POM, by using the configuration element in the AMPS declaration:

    <project>
      ...
      <build>
        <plugins>
          <plugin>
            <groupId>com.atlassian.maven.plugins</groupId>
            <artifactId>maven-jira-plugin</artifactId>
            <version>3.2.3</version>
            <extensions>true</extensions>
            <configuration>
                <!-- parameter key/value pairs go here -->
                <parameter1Name>parameter1Value</parameter1Name>
            </configuration>
          </plugin>
        </plugins>
      </build>
      ...
    </project>

Values specified on the command line override values in the POM.

For details on AMPS configuration settings, see:

Was this page helpful?
Powered by Confluence and Scroll Viewport