Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

IT-Services
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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-
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.
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