Skip to content

Instantly share code, notes, and snippets.

@mdedetrich
Created October 30, 2017 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdedetrich/55c2f81b0559d4c3f502e7a9f230f8b4 to your computer and use it in GitHub Desktop.
Save mdedetrich/55c2f81b0559d4c3f502e7a9f230f8b4 to your computer and use it in GitHub Desktop.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Put this pom.xml in your project directory -->
<!-- And run "mvn initialize" to download all dependencies -->
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>My Project</name>
<url>http://mycompany.com</url>
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library-all</artifactId>
<version>2.11.4</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- This plugin will copy all dependencies to the /lib folder -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>initialize</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/libs</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment