Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

escaped signs at project.organization.name in pom doesn't work with atlassian-plugin.xml

IT-Services October 1, 2020

Hello,

during developing an App, I have the following problem. Our company name, which I have added at the organization - tag at the pom, contains an & sign. For the pom, this works perfectly when it is escaped like &

<organization>
   <name>Company &amp; name</name>

When I create a plugin via the atlassian sdk, by default, the atlassian-plugin.xml contains the following section
<vendor name="${project.organization.name}" url="${project.organization.url}"/>. E.g. if I run atlas-package, I get the following error: 

ERROR] Failed to execute goal com.atlassian.maven.plugins:confluence-maven-plugin:8.1.0:test-jar (default-test-jar) on project tracking: unable to modify plugin.xml: Error on line 5 of document : Auf "&" in der Entityreferenz muss umgehend der Entityname folgen. Nested exception: Auf "&" in der Entityreferenz muss umgehend der Entityname folgen. -> [Help 1]

If I change <vendor name="${project.organization.name}" url="${project.organization.url}"/> also to <vendor name="Company &amp; name" url="${project.organization.url}"/> it works as a workaround.

This problem occurs generally, independently of the System like Confluence, Jira, ... .

So is it possible, to fix this, that this <vendor name="${project.organization.name}" url="${project.organization.url}"/> works for the atlassian-plugin.xml?

 

Thanks and with friendly regards

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 1, 2020

This is a problem with maven, not the Atlassian stuff.  The simple answer from them is to not use control characters in fields intended for plain text.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events