maven plugin to build java capsules.
Visit this page for more info on capsule.
to build the project locally you will need to clone the git repo and install the plugin in your local repository
git clone https://github.com/pguedes/capsule-maven-plugin.git
cd capsule-maven-plugin
mvn install
after this, the project is installed in your local repository and available to build your projects with
to build a capsule for your project, add the following to the build section of your pom.xml
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>com.github.pguedes</groupId>
<artifactId>capsule-maven-plugin</artifactId>
<version>0.1</version>
<configuration>
<mainClass>com.github.pguedes.App</mainClass>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>
you should then be able to build a capsule for your project by running:
mvn package capsule:capsule
you need to run the package phase because the capsule target needs a jar from the main project phase. Alternatively you can run:
mvn jar:jar capsule:capsule
you can also attach the plugin goal to a maven lifecycle phase with the <executions>
part of the pom
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>com.github.pguedes</groupId>
<artifactId>capsule-maven-plugin</artifactId>
<version>0.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>capsule</goal>
</goals>
<configuration>
<mainClass>com.github.pguedes.App</mainClass>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
...
</build>
...
</project>
you should then be able to build a capsule for your project by running:
mvn package
This project is licensed under the GNU GPL v3.
Read the license or the summarized version .