써먹는 웹개발
[Maven] 빌드시 dependency 라이브러리들을 특정 디렉토리로 복사하는 방법 본문
728x90
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${deploy.target.dir}/lib</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</plugin>
|
cs |
출처 : http://itnp.kr/post/maven-build-dependency-files-copy-to-directory
728x90
반응형
'Server > Gradle & Maven' 카테고리의 다른 글
Comments