Closed JohanLorenzo closed 3 years ago
Hi Johan,
Please add the plugin to ${project.root}/.mvn/extensions.xml
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>com.google.cloud.artifactregistry</groupId>
<artifactId>artifactregistry-maven-wagon</artifactId>
<version>2.1.1</version>
</extension>
</extensions>
See https://issues.apache.org/jira/browse/MNG-5771 for additional info. I'm closing the issue, feel free to re-open if the issue persists.
Hey @Gridasov!
Thanks for your totally-on-point answer 👍 I just tried it and I confirm it works on the reduced case I mentioned above. I'll try this out on our bigger project and update this ticket. It'll probably take a few weeks. Let's keep this issue closed, then 🙂
Hello there!
Thank you for making this maven wagon plugin! We at @maltcommunity have been testing it out for a couple of months and we're quite happy with it! During our tests we stumbled upon a bug that prevents us from switching over to artifact registry. We host some plugins there and in some cases, maven always fails to load the right Wagon.
Steps to reproduce
cd
to the directory. You need either to get access to the artifact registry repo I used for this case, or you could create your own and upload this plugin https://github.com/eclipse/jetty.project/tree/jetty-10.0.5/jetty-jspc-maven-pluginmvn --errors clean flatten:flatten install --settings settings.xml
Expected results
Maven downloads the plugin with the Artifact registry wagon.
Actual results
Potential root cause
It seems maven doesn't load the wagon at the right time. Altough, in this very case, it works if we don't run the
flatten
phase:mvn --errors clean install --settings settings.xml
What do you all think, @Gridasov @lindsayismith ?
Additional data
Repro rate: 5 out of 5 times, with this very example. Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Java version: 11.0.11, vendor: AdoptOpenJDK