2022. 1. 30. 23:02ㆍJava
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
pom.xml에 goal에 대한 정보가 없어서 에러 발생
<build>
<defaultGoal>package</defaultGoal>
</build>
java.lang.IllegalArgumentException: Path must include project and resource name: /
gitlab에서는 발생하지 않지만, sts에서는 'Maven > update project..' 수행시 에러 발생함
build direcotry가 project를 벗어나는 경우, 발생함
sts에서는 <directory>를 아래와 같이 주석 처리함
<build>
<defaultGoal>package</defaultGoal>
<!-- <directory>../abc_target</directory>-->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
'Java' 카테고리의 다른 글
java Tip (0) | 2022.02.02 |
---|---|
pom.xml 셋팅 (0) | 2022.01.31 |
java 설치 (0) | 2022.01.30 |
java 에러 (0) | 2021.12.26 |
크롤링(crawling) (0) | 2021.12.26 |