Skip to content

Commit

Permalink
Added jar compiler plugin to Maven.
Browse files Browse the repository at this point in the history
  • Loading branch information
KingZee committed Aug 11, 2019
1 parent a817011 commit d41a4c0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 26 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.kingzee</groupId>
<artifactId>shop-solver</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<packaging>jar</packaging>
<url>http://github.com/KingZee/shop-solver</url>
<description>A Java Scheduling Solver.</description>
<licenses>
Expand Down Expand Up @@ -38,6 +39,30 @@
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>project-classifier</shadedClassifierName>
<outputFile>build\${project.artifactId}-${project.version}.jar</outputFile>
<transformers>
<transformer implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>scheduler.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<!--plugin used for building executables -!>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
Expand Down
1 change: 1 addition & 0 deletions shop-solver.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/target/generated-sources/annotations" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/target/generated-test-sources/test-annotations" isTestSource="true" generated="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
Expand Down

0 comments on commit d41a4c0

Please sign in to comment.