일요일, 6월 23, 2024
HomeLanguagemaven-resources-plugin를 이용한 빌드 OUTPUT경로 바꾸기

maven-resources-plugin를 이용한 빌드 OUTPUT경로 바꾸기

maven-resources-plugin를 이용한 빌드 OUTPUT경로 바꾸기

 

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<id>copy-resources01</id>
						<phase>process-classes</phase>
						<goals>
							<goal>copy-resources</goal>
						</goals>
						<configuration>
							<outputDirectory>${target.web.common.ssl.dir}</outputDirectory>
							<encoding>UTF-8</encoding>
							<resources>
								<resource>
									<directory>${basedir}/src/main/webapp/resources/common</directory>
									<includes>
										<include>**/*</include>
									</includes>
								</resource>
							</resources>
						</configuration>
					</execution>
					<execution>
						<id>copy-resources02</id>
						<phase>process-classes</phase>
						<goals>
							<goal>copy-resources</goal>
						</goals>
						<configuration>
							<outputDirectory>${target.webroot.dir}</outputDirectory>
							<encoding>UTF-8</encoding>
							<resources>
								<resource>
									<directory>${basedir}/src/main/webapp/resources</directory>
									<include>**/*</include>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>

 

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular