Skip to content

Instantly share code, notes, and snippets.

@krams915
Created September 16, 2011 14:09
Show Gist options
  • Save krams915/1222200 to your computer and use it in GitHub Desktop.
Save krams915/1222200 to your computer and use it in GitHub Desktop.
Maven Copy Plugin (evgeny-goldin)
<plugin>
<groupId>com.goldin.plugins</groupId>
<artifactId>maven-copy-plugin</artifactId>
<version>0.2.3</version>
<executions>
<execution>
<id>create-archive</id>
<!-- Select compile phase so that resources are copied first before being
packaged! -->
<phase>compile</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<resources>
<!-- ~~~~~~~~~~~~~~ -->
<!-- Copy directory -->
<!-- ~~~~~~~~~~~~~~ -->
<resource>
<targetPath>${project.build.outputDirectory}/META-INF</targetPath>
<directory>${project.basedir}/src/main/java/META-INF</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment