Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Created April 16, 2015 13:36
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 jonashackt/5ad8cf0c5af0b436ae38 to your computer and use it in GitHub Desktop.
Save jonashackt/5ad8cf0c5af0b436ae38 to your computer and use it in GitHub Desktop.
Create non-executable jar maven
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<forceCreation>true</forceCreation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
@ORESoftware
Copy link

This is for creating a Maven plugin. What about a simple Maven library? @jonashackt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment