Code Snippet

Just another Code Snippet site

[Maven] Retrieve/Copy library JAR/Artifact file

	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-dependency-plugin</artifactId>
		<version>2.6</version>
		<executions>
			<execution>
				<id>copy</id>
				<phase>prepare-package</phase>
				<goals>
					<goal>copy</goal>
				</goals>
				<configuration>
					<artifactItems>
						<artifactItem>
							<groupId>commons-lang</groupId>
							<artifactId>commons-lang</artifactId>
							<version>2.6</version>
							<type>jar</type>
							<overWrite>true</overWrite>
							<outputDirectory>target/classes/WEB-INF/lib</outputDirectory>
						</artifactItem>	
					</artifactItems>
				</configuration>
			</execution>
		</executions>
	</plugin>

,


Comments are currently closed.