maven plugin을 찾지 못햇다고 뜨네요
1269
작성한 질문수 1
$ ./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 로 실행을 햇는데 찾지 못햇다고 뜨네요 혹시 어떻게 하면 될까요??
답변 1
0
네트워크에 문제가 있는거 같네요. https://repo.spring.io/snapshot에 접근을 못하는것 같은데 혹시 회사내에 방화벽 설정이 있나요? 제가 방금 시도해 봤을 때는 빌드가 잘 됐거든요. mvnw 명령어를 못찾는 문제는 운영체제와 PATH에 대해 학습을 해보시면 알게 되실 거에요.
jar 안되는 분들 참고하세요
0
359
1
mvnw 오류
0
462
1
./mvnw package 오류
0
420
2
java -jar target/*.jar 명령어 오류..
0
446
2
./mvnw package 오류
0
278
0
./mvnw package 오류
0
210
1
실행 상태에서 변경내용이 바로 반영되나요 ??
0
225
1
도와주세용 ㅜㅜ
0
205
1
./mvnw package 오류
0
318
1
클론 받은 내용과 수업내용이
0
399
1
./mvnw package 오류
0
1143
2
순환참조와 bean 주입에 대한 질문입니다!
0
407
1
jdk 버전이 자꾸 낮다면서 오류가 발생합니다.
0
890
1
age가 화면에 표시가 안됩니다.
0
394
0
에러가 뜨는데 어떻게 해야할지 도저히 모르겠어요
0
1640
1
PetClinicApplication() 함수에서 run 을 하고 싶습니다...
0
519
0
h2와 hsqldb가 어떤차이가 있는건지 궁금합니다
0
1244
0
예제가 이전과 다르네요
0
369
0
메이븐으로 설정했는데 그래들이 같이 보일수 있나요?
0
572
1
LogAspect
0
325
1
구현체가 2개 이상일때 생성자 주입
0
365
1
의존성 주입 방법들 장단점
0
492
1
인스턴스의 생명주기와 제어권
0
309
1
IoC 컨테이너 안에 있는 객체들끼리만 의존성 주입
0
370
1





