K
K
Kentaro232022-02-27 15:24:01
Java
Kentaro23, 2022-02-27 15:24:01

How to set up a pipeline in gitlab so that a dependency is downloaded from nexus without errors?

Now when executing pipeline in gitlab, an error occurs

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/154.101.84.215] failed: Connection timed out


Locally, everything is assembled without errors, dependencies are downloaded from nexus. Below is a piece of pom.xml
<repository>
            <id>nexus-common__mvn</id>
            <url>https://nexus.test.ru/repository/common__mvn</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>

        <pluginRepository>
            <id>nexus-common__mvn</id>
            <url>https://nexus.test.ru/repository/common__mvn/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question