- Business Application Studio
- ionic
- sapui5
- Windows Service
- raspberry pi
- springboot
- ionic3
- eclipse plugin
- SAP BTP
- tomcat
- ionic native
- angularJS
- Devian
- Capire
- cf push
- HANA DB
- 윈도우 서비스
- TypeScript
- sap
- 구글맵 예제
- JavaScript
- HANA Cloud
- cloud foundry
- blue-green
- BTP
- raspbian
- ChatGPT
- BTP Deployment
- CAP Java
- BTP 배포
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Today
- Total
Ryan's Log
Eclipse Maven Web 프로젝트 초기 구성 본문
Eclipse Maven Web 프로젝트 초기 구성
사용된 Eclipse 4.4.1 LUNA
새로운 Maven Project를 생성한다.
[FILE > NEW > Other...]
위 과정을 모두 마친 이후에 생성된 프로젝트 내부 모습
JSP에 오류가있다.
Server Runtime 을 추가하여 오류를 해결한다.
[프로젝트의 Properties > Java Build Path]
Project Facets의 Dynamic Web Module 버전과 Java 버전을 원하는 대로 올려준다.
[프로젝트의 Properties > Project Facets]
이를 통해 변경할 수 없다면
.settings/org.eclipse.wst.common.project.facet.core.xml 를 직접 수정
[프로젝트의 Properties > Java Compiler]
WEB-INF/web.xml의 schema location 등도 Web Module 버전에 맞게 변경해야 한다.
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>my-app</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>Index.do</welcome-file> </welcome-file-list> </web-app>
Maven Web의 webapp 경로를 변경할 수 있다. (선택)
그림처럼 기본 webapp경로는 src/main/webapp 이다. 이 위치를 변경할 수 있는 Maven Plugin이 있다.
위 webapp 폴더를 최 상위로 이동한다.
.settings/.jsdtscope 파일을 열어 기존 webapp 경로에 대한 소스 설정을 삭제한다.
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>2.2</version> <configuration> <warname>my-app-name</warname> <warsourcedirectory>webapp</warsourcedirectory> </configuration> </plugin>
'IDE' 카테고리의 다른 글
전자정부 프레임워크 수동 설치 (0) | 2016.08.02 |
---|---|
Sysdeo Eclipse Tomcat Launcher plugin (0) | 2015.09.03 |
SVN 서버 설치 (0) | 2015.09.03 |
Eclipse SVN Plugin 설치 (0) | 2015.09.03 |