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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

109 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you