-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
maven plugin을 찾지 못햇다고 뜨네요
20.12.01 14:54 작성 조회수 825
0
$ ./mvnw package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------< org.springframework.samples:spring-petclinic >------------
[INFO] Building petclinic 2.4.0.BUILD-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4
.0/spring-boot-maven-plugin-2.4.0.pom
Downloading from spring-milestones: https://repo.spring.io/milestone/org/springframework/boot/spring-boot-maven-plugin/2
.4.0/spring-boot-maven-plugin-2.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.4.0/s
pring-boot-maven-plugin-2.4.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.985 s
[INFO] Finished at: 2020-12-01T14:48:28+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.4.0 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.4.0: Could not transfer
artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.4.0 from/to spring-snapshots (https://repo.spring.io/sn
apshot): Transfer failed for https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4.0/spr
ing-boot-maven-plugin-2.4.0.pom: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterEx
ception: the trustAnchors parameter must be non-empty -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main)
$ mvn clean package
bash: mvn: command not found
user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main)
$ mvnw package
bash: mvnw: command not found
user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main)
$ mvnw packcage
bash: mvnw: command not found
user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main)
$ ./mvnw package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------< org.springframework.samples:spring-petclinic >------------
[INFO] Building petclinic 2.4.0.BUILD-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4
.0/spring-boot-maven-plugin-2.4.0.pom
Downloading from spring-milestones: https://repo.spring.io/milestone/org/springframework/boot/spring-boot-maven-plugin/2
.4.0/spring-boot-maven-plugin-2.4.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.4.0/s
pring-boot-maven-plugin-2.4.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.228 s
[INFO] Finished at: 2020-12-01T14:49:46+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.4.0 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.4.0: Could not transfer
artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.4.0 from/to spring-snapshots (https://repo.spring.io/sn
apshot): Transfer failed for https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4.0/spr
ing-boot-maven-plugin-2.4.0.pom: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterEx
ception: the trustAnchors parameter must be non-empty -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
./mvnw package 로 실행을 햇는데 찾지 못햇다고 뜨네요 혹시 어떻게 하면 될까요??
답변을 작성해보세요.
0
백기선
지식공유자2020.12.02
네트워크에 문제가 있는거 같네요. https://repo.spring.io/snapshot에 접근을 못하는것 같은데 혹시 회사내에 방화벽 설정이 있나요? 제가 방금 시도해 봤을 때는 빌드가 잘 됐거든요. mvnw 명령어를 못찾는 문제는 운영체제와 PATH에 대해 학습을 해보시면 알게 되실 거에요.
답변 1