Merge pull request #22 from SmartmaticLabs/master
authorKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 28 Oct 2017 16:17:28 +0000 (12:17 -0400)
committerGitHub <noreply@github.com>
Sat, 28 Oct 2017 16:17:28 +0000 (12:17 -0400)
Mimic the behavior in build.xml creating a runnable jar

pom.xml

diff --git a/pom.xml b/pom.xml
index f2889cb8f915ab9ab1dca904baabd29082ef97a8..2118e8973832109e8f25fa7da23df8bec64f02c8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -47,9 +47,9 @@
       </resource>
       <resource>
         <directory>src</directory>
-          <excludes>
-            <exclude>**/*.java</exclude>
-          </excludes>
+        <excludes>
+          <exclude>**/*.java</exclude>
+        </excludes>
       </resource>
     </resources>
     <plugins>
           <target>1.6</target>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>3.0.2</version>
+        <configuration>
+          <archive>
+            <manifest>
+              <mainClass>
+                jexer.demos.Demo1
+              </mainClass>
+
+            </manifest>
+            <manifestEntries>
+              <Implementation-Version>${project.version}</Implementation-Version>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
     </plugins>
   </build>