pom2feed connects the world of Zero Install with Apache Maven. With this project Zero Install gets access to the huge number of Java projects available at Maven Central. This is made possible by two components: the
pom2feed-service and the
You can use Java system properties to configure the service:
pom2feed-service.serviceURL(MUST be set to URL where service is hosted)
pom2feed-service.mavenRepository(MAY be set to alternative Maven repository)
pom2feed-service.gnuPGKey(MUST be set to ID of GnuPG signing key)
To comfortably create Zero Install feeds for your own Maven project you can use the
pom2feed-maven-plugin. This will convert your Maven dependencies to Zero Install dependencies (pointing to the
pom2feed-service) so you can deploy your application without having to include or host the dependencies yourself. To do this you have two options: include
pom2feed-maven-plugin in your POM or invoke it from the command-line.
##Include it in your POM Add the following to your project's POM to automatically generate a feed at Maven's package goal.
<build> <plugins> ... <plugin> <groupId>net.zeroinstall.pom2feed</groupId> <artifactId>pom2feed-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> ... </plugins> </build>
mvn package at your Maven project root you can find the generated feed in the
##Generate feed from the command-line
If you don't want to include the plugin in your POM, or you just want to try it out once, you can invoke the plugin from the command-line. Just run
mvn net.zeroinstall.pom and the feed will be created in the