diff options
author | 2021-02-16 21:19:06 +0100 | |
---|---|---|
committer | 2021-02-16 21:19:06 +0100 | |
commit | 52582b4fec951cbf7ab65864955645b9ab9822e3 (patch) | |
tree | 18a35d6c6a699bbe1b8687b377e81400200fa33b | |
parent | 166988092e8a81496d3c10ca220c1dedfbb644b0 (diff) | |
download | hyde-52582b4fec951cbf7ab65864955645b9ab9822e3.tar.gz hyde-52582b4fec951cbf7ab65864955645b9ab9822e3.zip |
Add plugins to create MANIFEST.MF and jar-with-dependencies
-rw-r--r-- | pom.xml | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -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 --> |