Why are property keys not replaced dynamically in atlassian-plugin.xml

Peter Leschev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2011

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}">

When I use this type of reference in my atlassian-plugin.xml descriptor it does not read the values from pom.xml

What needs to be configured to get this to work?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Peter Leschev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2011

Resource Filtering needs to be enabled in your pom.xml:

<build>

<resources>

<resource>

<directory>src/main/resources</directory>

<filtering>true</filtering>

</resource>

</resources>

3 votes
Stefan Kohler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2011

If created your plugin using the Atlassian SDK, this should be set for you. (atlas-create-<product>-plugin)

In some cases you have to do it by hand, so I wrote a little guide once: http://confluence.atlassian.com/x/MwUpDg

TAGS
AUG Leaders

Atlassian Community Events