Closed alliSoftwareAG closed 7 years ago
Can you add the corrupt XML file and the pom.xml of the project?
I am adding them as .txt, due to the fact, that github is not accepting xml files. Just change the end of the file back to .xml . pom.txt maven-metadata-allisoftwareag.txt
May be adding a snapshot repository in the distribution management helps:
<distributionManagement>
<snapshotRepository>
<id>...</id>
<name>...</name>
<url>http://...</url>
</snapshotRepository>
</distributionManagement>
Why do you want to publish this project to a Maven repository?
Also, the Kevoree registry is Kevoree-related only, it is not a Maven repository. So this:
<distributionManagement>
<repository>
<id>allisoftwareag</id>
<name>allisoftwareag</name>
<url>https://registry.kevoree.org/#/ns/allisoftwareag/</url>
</repository>
</distributionManagement>
Makes no sense.
Maven deployment (see this) is not related to Kevoree publication. Publishing a Kevoree model to the Kevoree registry is just giving that registry an abstraction of your project in .json
. Deploying an artifact on a Maven repository is publishing your project .jar
to that repository. Both are separate concerns.
Do not hesitate to close this if it solved the issue :+1:
Yes, thank you.
Hi, I am trying to work with the new registry, but when I give mvn deploy it fails with the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project ApamaComponent: Failed to update metadata org.kevoree.project:ApamaComponent:1.0.0-SNAPSHOT/maven-metadata.xml: Could not parse metadata /home/alli/.m2/repository/org/kevoree/project/ApamaComponent/1.0.0-SNAPSHOT/maven-metadata-allisoftwareag.xml: attribute value must start with quotation or apostrophe not n (position: START_DOCUMENT seen ... <html class=n... @1:265) -> [Help 1]
If I have a look at this xml file, I can see, that there is really no quotation or apostrophe at this point: ... ...
I cannot fix this, due to the fact, that every time I give mvn deploy, this file is downloaded new from the registry.
Can somebody help me with this?
@maxleiko do you have an idea, where the problem is and what I am doing wrong?
Thank you :)