Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 在gcp工件注册表中使用依赖项构建_Maven_Google Cloud Platform_Artifact - Fatal编程技术网

Maven 在gcp工件注册表中使用依赖项构建

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

构建依赖于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-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上。这现在包括在