Set up a project with this archetype
Example to use the 1jar-maven-plugin
Known bugs of Plugin
This plugin is not available in the standard maven repository. But you can download it via the following repository entry in your pom.xml
For Download Plugin from Sourceforge, please add this to your pom.xml
<pluginRepositories> <pluginRepository> <id>sourceforge-frs</id> <name>SF Maven Plugin Repository</name> <url>http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo</url> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>sourceforge-svn</id> <name>SF Maven Plugin SVN Repository</name> <url>http://sf-mvn-plugins.svn.sourceforge.net/svnroot/sf-mvn-plugins/_m2-repo</url> </repository> </repositories>
And add this to your settings.xml
<server> <id>sourceforge-frs</id> <configuration> <wagonProvider>sourceforge</wagonProvider> </configuration> </server>
Here is a example how you can add the plugin to your pom.xml.
<build> <extensions> <extension> <groupId>net.sf.maven.plugins</groupId> <artifactId>wagon-http-sourceforge</artifactId> <version>0.4-SNAPSHOT</version> </extension> </extensions> <plugins> : <plugin> <groupId>net.sf.maven.plugins</groupId> <artifactId>jar-install-plugin</artifactId> <executions> <execution> <goals> <goal>install</goal> </goals> <configuration> <downloads> <downloadArtifact> <url>http://sourceforge.net/projects/one-jar/files/one-jar/one-jar-0.96/one-jar-boot-0.96.jar/download</url> <groupId>com.simontuffs.onejar</groupId> <artifactId>one-jar-boot</artifactId> <version>0.96</version> </downloadArtifact> </downloads> </configuration> </execution> </executions> </plugin> : </plugins> : </build>