본문 바로가기
카테고리 없음

메이븐 프로젝트 초기 세팅

by cook_code 2023. 5. 7.
반응형

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

 

JSP 파일 생성 직후 에러(The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path)

JSP 파일을 생성 직후 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 에러가 발생 하는 경우가 있습니다. 해당 프로젝트 우클릭 -> Properties를 선택 합니다. 좌측에 Java Bulid Path -> L

hongeui.tistory.com

https://knowhowdb.tistory.com/40

 

pom.xml 에러 (org.apache.maven.plugin.war.util.WebappStructureSerializer)

1. 발생한 에러 Description Resource Path Location Type Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer pom.xml /webprj line 1 Maven Configuration Problem 2. pom.xml 설정 2.1 이하 설정을 pom.xml에 추가 or

knowhowdb.tistory.com

 

반응형