Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

The reference to entity "c" must end with the ';' delimiter

I have a maven project and I need to add server details in settings.xml to gain access to a repo that needs authentication.

I have the following, where mypass includes this &c% substring.

<server>
    <id>myid-releases</id>
    <username>myusername</username>
    <password>mypass</password>
</server>

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

A & is a special character in xml because it marks the start of a so-called entity.

If your xml parser (or the one that maven uses) tries to resolve entities, they need to be valid. Thus, you need to place the entity that resolves to & into your xml: &amp;

TL;DR:
Replace the & in in your password with &amp;

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading