aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2021-02-16 21:19:06 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2021-02-16 21:19:06 +0100
commit52582b4fec951cbf7ab65864955645b9ab9822e3 (patch)
tree18a35d6c6a699bbe1b8687b377e81400200fa33b
parent166988092e8a81496d3c10ca220c1dedfbb644b0 (diff)
downloadhyde-52582b4fec951cbf7ab65864955645b9ab9822e3.tar.gz
hyde-52582b4fec951cbf7ab65864955645b9ab9822e3.zip
Add plugins to create MANIFEST.MF and jar-with-dependencies
-rw-r--r--pom.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 85456fe..b758b38 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,6 +59,41 @@
</dependencies>
<build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>it.alessandroiezzi.genwebsite.Genwebsite</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <mainClass>it.alessandroiezzi.genwebsite.Genwebsite</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->