1. 메이븐 프로젝트 생성
NEW > Maven Project
Use default Workspace location
Catalog: Internal 선택 > org.apache.maven.archetypes > maven-archetype-webapp : 1.0 선택
Artifact Id 이름 설정 > Finish
2. pom.xml에 추가
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
</plugins>
</build>
3. java build path - server runtime - apache tomcat으로 변경
참고 블로그
https://hongeui.tistory.com/13
https://knowhowdb.tistory.com/40
반응형