diff --git a/pom.xml b/pom.xml index 4c078b54cf68673f56ae5324e664a5ee45c7839d..e71ccfb7b57e9d9c19a0e8fa480bbf02e1f2ddcb 100644 --- a/pom.xml +++ b/pom.xml @@ -219,8 +219,54 @@ <check /> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.5</version> + <configuration> + <!-- Configures the created archive --> + <archive> + <!-- Configures the content of the created manifest --> + <manifest> + <!-- Adds the classpath to the created manifest --> + <addClasspath>true</addClasspath> + <!-- + Specifies that all dependencies of our application are found + from the lib directory. + --> + <classpathPrefix>lib/</classpathPrefix> + <!-- Configures the main class of the application --> + <mainClass>org.opennars.gui.NARSwing</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.5.1</version> + <configuration> + <!-- Configures the used assembly descriptor --> + <descriptors> + <descriptor>assembly.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> + <distributionManagement> <snapshotRepository>