Skip to content

Instantly share code, notes, and snippets.

@cwood1967
Created January 10, 2017 20:27
Show Gist options
  • Save cwood1967/9c501c07f08f10ef0c84d4a154b5d6c8 to your computer and use it in GitHub Desktop.
Save cwood1967/9c501c07f08f10ef0c84d4a154b5d6c8 to your computer and use it in GitHub Desktop.
pom configuration
<properties>
<main-class>org.stowers.microscopy.ij1plugins.Main</main-class>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>${main-class}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment