Closed gaurav517 closed 2 years ago
cc/ @nyap @Gridasov
The quickstart is only meant to take you through a simple use case. At the end of this section there's a link to more detailed Maven auth instructions. The detailed instructions for the wagon includes adding the wagon to /.mvn/extensions.xml in your child projects.
With documentation at https://cloud.google.com/artifact-registry/docs/java/quickstart, dependency resolution does not work if pom.xml has a parent pom. We get following error when doing
mvn -U -X clean install
:Reason is that wagon is not loaded before parent pom resolution. Adding following in
.mvn/extensions.xml
as per documentation at https://maven.apache.org/docs/3.3.1/release-notes.html worked:This would probably need a change in documentation. I spent several hours scratching my head. :(
Thanks.