1. Micha Kops
  2. jfx-ball-game

Commits

Micha Kops  committed d675fb0

Maven shade plugin added to build a runnable jar.

  • Participants
  • Parent commits 169e85f
  • Branches master

Comments (0)

Files changed (1)

File pom.xml

View file
 					<target>1.7</target>
 				</configuration>
 			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-shade-plugin</artifactId>
+				<version>1.4</version>
+				<executions>
+					<execution>
+						<phase>package</phase>
+						<goals>
+							<goal>shade</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<shadedArtifactAttached>true</shadedArtifactAttached>
+					<shadedClassifierName>shaded</shadedClassifierName>
+					<transformers>
+						<transformer
+							implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+							<mainClass>com.hascode.jfx.game.BallGame</mainClass>
+						</transformer>
+					</transformers>
+				</configuration>
+			</plugin>
+
 		</plugins>
 	</build>
 </project>