How to "Specifies OSGI bundle instructions" for confluence plugins?

On this page, the third step is to

Specifies OSGI bundle instructions: Specify the bundledArtifact entries required by the Licensing API.

Then on another page, it says:

The generator adds the following <bundledArtifact> entries to the maven-jira-plugin configuration.

<plugin>
    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>maven-jira-plugin</artifactId>
    <version>${amps.version}</version>
    <extensions>true</extensions>
    <configuration>
        <instructions>
            ...
        </instructions>
        <productVersion>${jira.version}</productVersion>
        <productDataVersion>${jira.version}</productDataVersion>
        <bundledArtifacts>
            <bundledArtifact>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>atlassian-universal-plugin-manager-plugin</artifactId>
                <version>1.6.3</version>
            </bundledArtifact>
            <bundledArtifact>
                <groupId>com.atlassian.upm</groupId>
                <artifactId>plugin-license-storage-plugin</artifactId>
                <version>${upm.license.compatibility.version}</version>
            </bundledArtifact>
        </bundledArtifacts>
    </configuration>
</plugin>

I cannot see this piece of bundleArtifcats in my POM file. I am writing for Confluence platform. Is it required?

The docs really need to be improved. Finding useful information is like a hide-and-seek game.

The generator in the above context means atlas-create-confluence-plugin-module. It is not mentioned on https://developer.atlassian.com/platform/marketplace/adding-licensing-support-to-server-apps/, where only manual process is there.

1 Like