티스토리 뷰
chap 09 예제 학습 중 예제에 나와있는 그대로 pom파일을 작성했는데 오류가 발생했다.
문제가 발생했던 war 설정
추가된 war 설정에 x표시가 떠서 [Run As] → [Maven clean] 실행 후 [Maven install]을 실행했는데 실패하고 아래와 같이 ERROR 문구가 Console 창에 떴다.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project sp5-chap09 Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.2:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLoo kupException: Cannot access defaults field of Properties
원인
웹 배포 파일인 war을/를 만들어 주는 플러그인이 없어 발생한 것
📌 해결 방법
pom.xml파일 <plugin> 부분에 maven war plugin 설정을 추가하면 된다.
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
+ 추가로 예제 파일의 pom.xml 에 dependency에 들어가있던 org.apache.maven.plugins을 plugin위치에 알맞은 버전으로 수정하니 에러가 해결되었다.. 멍청멍청 😭
문제해결에 도움을 준 고마운 블로그 글
'study > Error' 카테고리의 다른 글
error: failed to push some refs to 'https://github.com/~ (0) | 2023.07.23 |
---|---|
[Error] .properties 인코딩 오류 (0) | 2023.03.31 |
[Error] java.sql.SQLException - 'caching_sha2_password'. (0) | 2023.01.17 |
[Error] Java MySQL 8 연결 오류 - Establishing SSL connection without server's identity verification is not recommended. (0) | 2023.01.16 |
[Error] 메이븐 pom 파일 - 스프링 버전 오류 (0) | 2022.12.05 |
- Total
- Today
- Yesterday
- API
- django.contrib.auth
- 웹페이지
- django
- 회원 로그인
- 혼자 공부하는 파이썬
- 환경 변수 설정
- Java
- 검색 결과 내 페이지네이션
- 암호화
- authenticate()
- 면접을 위한 CS 전공 지식 노트
- Spring
- git
- 회원가입
- 배열
- 디자인 패턴
- Django tutorial
- python3
- 커맨드 객체
- 한글 형태소 분석기
- Magazine K
- git공부
- error: failed to push some refs to 'https://github.com/
- path variable
- 톰캣
- django-environ
- Python
- musma
- git 공부
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |