써먹는 웹개발

[Maven] 빌드시 dependency 라이브러리들을 특정 디렉토리로 복사하는 방법 본문

Server/Gradle & Maven

[Maven] 빌드시 dependency 라이브러리들을 특정 디렉토리로 복사하는 방법

kmhan 2023. 5. 18. 16:40


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
반응형


Comments