Maven을 사용하여 종속성을 관리하고 프로젝트를 구축하고 있습니다. 프로젝트를 구축하려고 하지만 Maven이 Mulesoft Enterprise 리포지토리에서 종속성을 찾을 수 없는 상태에 관한 오류가 발생합니다. 그러나 사용자 정의 종속성이며 Mulesoft 리포지토리에서 찾을 수 없어야 합니다. 오류 메시지는 다음과 같이 표시됩니다.
[오류] PROJECT_NAME 프로젝트에서 목표 실행 실패: com.mycompany:project_name:mule:1.0.0 프로젝트에 대한 종속성을 해결할 수 없음: your.package:artifact:jar:1.0.0에서 종속성 수집 실패: your.package:artifact:jar:1.0.0에 대한 아티팩트 설명자 읽기 실패: 릴리스-EE에서/릴리스-EE로 아티팩트 your.package:artifact:pom:1.0.0을 전송할 수 없음(https://repository.mulesoft.org/nexus/content/repositories/releases-ee/): 미승인, ReasonPhrase:Unauthorized. -> [도움말 1]
Maven 오류는 경우에 따라 모호하고 Maven이 올바른 위치를 찾지 못하는 것처럼 보이지만 실제로는 모든 리포지토리 위치를 정의하면 Maven이 .m2의 Maven 로컬 리포지토리를 포함하여 모든 리포지토리를 살펴보고 찾으려고 합니다.
이 오류는 Maven이 종속성을 찾지 못하므로 마지막 자원으로 Mulesoft Enterprise Nexus 리포지토리에서 찾아 보지만, 결국 찾지 못하고 실패한다는 사실로 인해 발생합니다. 실제로는 Mule 리포지토리 또는 Mule Maven Plugin과 어떠한 관련도 없습니다.
이 문제에 대한 해결 방법은 로컬 Maven settings.xml 구성을 다시 확인하고 Maven이 이 특정 종속성을 가져올 수 있는 올바른 리포지토리를 구성하는 것입니다. 참조 기사: settings.xml 및 PowerPoint 예를 포함하는 엔터프라이즈 Maven 리포지토리 자격 증명을 사용하는 방법
작업을 수행한 후에도 문제가 지속될 수 있는 경우 Maven을 사용하여 종속성 트리 및 유효 POM을 가져와 이 종속성을 요청하는 구성 요소를 찾습니다. 다음은 명령줄입니다.
mvn clean package -X -e > mvninstall.txt mvn dependency:tree -Dverbose > mvnTree.txt mvn help:effective-pom -X > mvnpom.txt
필수 파일이 있을 경우 구축 서버의 적절한 .m2 폴더에 아티팩트를 복사하여 문제를 해결할 수 있습니다.
001118073

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.