티스토리 뷰

* 개요

gradlew war 했는데 어디서도 war 파일 이 없다

 

* 로그 추적

 

실행> gradlew war --info


Initialized native services in: C:\Users\dellw\.gradle\native

... 중간 생략 ...

> Task :war SKIPPED
Skipping task ':war' as task onlyIf is false.
:war (Thread[Execution worker for ':',5,main]) completed. Took 0.0 secs.

BUILD SUCCESSFUL in 3s
2 actionable tasks: 2 up-to-date


war task 가 skipped 이라네..

 

 

 

* 해결 

build.properties 에 다음 코드 추가

 

war {

enabled = true

}

 

https://stackoverflow.com/questions/45451240/why-the-gradle-war-task-is-skipped

 

- 다시 실행하자

프로젝트/build/libs 에 war 생성된것 확인함.

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
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 31
글 보관함