Mimic the behavior in build.xml creating a runnable jar
authorCarlos Rafael Ramirez <crramirez@gmail.com>
Tue, 17 Oct 2017 20:38:30 +0000 (15:38 -0500)
committerCarlos Rafael Ramirez <crramirez@gmail.com>
Tue, 17 Oct 2017 20:38:30 +0000 (15:38 -0500)
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>