Add zi plugin documentation for running marginalia from maven

This commit is contained in:
Hugo Duncan 2011-07-15 14:54:32 -04:00
parent 7c3192e5ff
commit 1bd50cc461

View file

@ -68,7 +68,44 @@ After that, you should be able to use it like any other cake task:
### Maven
Not yet supported.
The [zi plugin](https://github.com/pallet/zi) supports marginalia.
Add the folowing to your `pom.xml`, and run `mvn zi:marginalia`.
```xml
<plugin>
<groupId>org.cloudhoist.plugin</groupId>
<artifactId>zi</artifactId>
<version>0.3.0</version>
<configuration>
<marginaliaTargetDirectory>autodoc/marginalia</marginaliaTargetDirectory>
</configuration>
</plugin>
```
And the following to your `settings.xml`.
```xml
<pluginGroups>
<pluginGroup>org.cloudhoist.plugin</pluginGroup>
</pluginGroups>
<profiles>
<profile>
<id>clojure-dev</id>
<pluginRepositories>
<pluginRepository>
<id>sonatype-snapshots</id>
<url>http://oss.sonatype.org/content/repositories/releases</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>clojure-dev</activeProfile>
</activeProfiles>
```
Contributors and thanks
-----------------------