Skip to content

Instantly share code, notes, and snippets.

@vinodkc
Created June 29, 2018 04:15
Show Gist options
  • Save vinodkc/9a6a8ef0c9382457d9ada3c61c854be3 to your computer and use it in GitHub Desktop.
Save vinodkc/9a6a8ef0c9382457d9ada3c61c854be3 to your computer and use it in GitHub Desktop.
Maven- Notes
1) PACKAGE RUNTIME DEPENDENCIES IN LIB FOLDER INSIDE PACKAGED JAR
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes/lib</outputDirectory>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment