Software Workshop

ERROR Failed to execute goal on project my_project: Could not resolve dependencies for project com.terzeron.spring:my_project🫙1.0.0-SNAPSHOT: Failed to collect dependencies at com.another.domain1.0.0: Failed to read artifact descriptor for com.another.domain1.0.0: Could not transfer artifact com.another.domain1.0.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: nhnentRepository (http://my.nexus.com/content/groups/public/, default, releases+snapshots) -> Help 1

이런 에러가 발생하는 이유는 maven이 http 프로토콜로 nexus artifactory에 접근하는 것을 차단하기 때문임

pom.xml의 repository 설정을 http에서 https로 변경할 것

    <pluginRepositories>
        <pluginRepository>
            <id>nhnentRepository</id>
            <name>Nhnent Maven Repository</name>
            <url>https://my.nexus.com/content/groups/public/</url>
            <snapshots>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <updatePolicy>never</updatePolicy>
            </releases>
        </pluginRepository>
    </pluginRepositories>
    <repositories>
        <repository>
            <id>nhnentRepository</id>
            <name>Nhnent Maven Repository</name>
            <url>https://my.nexus.com/content/groups/public/</url>
            <snapshots>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <updatePolicy>never</updatePolicy>
            </releases>
        </repository>
    </repositories>