Maven 在gcp工件注册表中使用依赖项构建
构建依赖于google cloud platform工件注册表的应用程序会导致错误:Maven 在gcp工件注册表中使用依赖项构建,maven,google-cloud-platform,artifact,Maven,Google Cloud Platform,Artifact,构建依赖于google cloud platform工件注册表的应用程序会导致错误: Cannot access artifactregistry://us-central1-maven.pkg.dev/project/repository with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access artifactregistry://us-c
Cannot access artifactregistry://us-central1-maven.pkg.dev/project/repository with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access artifactregistry://us-central1-maven.pkg.dev/project/repository using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
您需要将com.google.cloud.artifactregistry maven扩展添加到pom.xml中(文档中未涉及),这对于存储库、分发管理和依赖性来说是不够的
<build>
<extensions>
<extension>
<groupId>com.google.cloud.artifactregistry</groupId>
<artifactId>artifactregistry-maven-wagon</artifactId>
<version>2.1.0</version>
</extension>
</extensions>
</build>
com.google.cloud.artifactregistry
人工货车
2.1.0
您需要将com.google.cloud.artifactregistry maven扩展添加到pom.xml中(文档中未涉及),这对于存储库、分发管理和依赖性是不够的
<build>
<extensions>
<extension>
<groupId>com.google.cloud.artifactregistry</groupId>
<artifactId>artifactregistry-maven-wagon</artifactId>
<version>2.1.0</version>
</extension>
</extensions>
</build>
com.google.cloud.artifactregistry
人工货车
2.1.0
撰写本文时,在Maven中设置工件注册表仍处于Alpha状态。这现在包含在Maven中的设置工件注册表中,截至本文撰写时,Maven仍在Alpha上。这现在包括在