Notice
Recent Posts
Recent Comments
Link
- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
민서네집
pom.xml 에 ${project.basedir} 사용하기. 본문
system scope를 가진 dependency 를 pom.xml 에 추가하면서 systemPath 를 설정해야 했는데, 절대경로가 들어가서, 개발자마다 workspace 가 틀리면 문제가 된다.
<dependency>
<groupId>log4sql</groupId>
<artifactId>log4sql</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/log4sql.jar</systemPath>
</dependency>
위와 같이, ${project.basedir} 라는 환경변수를 사용하면 무척 편하다.
[참고] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
Special Variables
project.basedir | The directory that the current project resides in. |
project.baseUri | The directory that the current project resides in, represented as an URI. Since Maven 2.1.0 |
maven.build.timestamp | The timestamp that denotes the start of the build. Since Maven 2.1.0-M1 |
'Java' 카테고리의 다른 글
eclipse에서 Web Application 이 시작하지 못하는 이유 (0) | 2013.07.26 |
---|---|
Java Reflection 설명 잘 된 웹페이지 (0) | 2013.07.22 |
[java] 드라이브의 Free Space 용량 확인하기. (0) | 2013.07.02 |
Java how to Override equals() and hashCode() method (0) | 2013.06.13 |
IntelliJ 활용 (0) | 2013.06.13 |
Comments