> Cool ! Seems like it's about time to make the m2 plugin a bit more
> public - I'll update the site and check with the maven guys how to add
> it to their lists :)

I think so...it works great now.  I'd still like to campaign for the
"verbose" option to be added :-), but it's not essential.  I love the
fact that you do not have to add so many dependencies in the POM
anymore.

> Would you mind sending me your pom, so I could use it as another
> example in the docs ?
Attached (let me know if you prefer this in a JIRA).  It'd be nice if
the plugin config for the plugin-plugin/plugin-qtags could be
extracted into a xdoclet-plugins parent POM.

Shash
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>

    <modelVersion>4.0.0</modelVersion>

    <artifactId>xdoclet-plugin-keel</artifactId>
    <groupId>org.keelframework</groupId>
    <name>XDoclet2 Keel Plugin</name>
    <packaging>jar</packaging>
    <version>0.0.1</version>

    <properties>
        <namespace>keel</namespace>
    </properties>

    <inceptionYear>2002</inceptionYear>
    <organization>
        <name>The Keel Meta-framework</name>
        <url>http://www.keelframework.org</url>
    </organization>

    <licenses>
        <license>
            <name>Keel License</name>
            <url>http://keelframework.org/LICENSE</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <mailingLists>
        <mailingList>
            <name>Keel Announce List</name>
            <subscribe>http://lists.keelframework.org/listinfo.cgi/announce-keelframework.org</subscribe>
            <unsubscribe>http://lists.keelframework.org/listinfo.cgi/announce-keelframework.org</unsubscribe>
            <archive>http://lists.keelframework.org/pipermail/announce-keelframework.org</archive>
        </mailingList>
        <mailingList>
            <name>Keel User List</name>
            <subscribe>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org</subscribe>
            <unsubscribe>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org</unsubscribe>
            <post>[EMAIL PROTECTED]</post>
            <archive>http://lists.keelframework.org/pipermail/user-keelframework.org</archive>
        </mailingList>
        <mailingList>
            <name>Keel Developer List</name>
            <subscribe>http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com</subscribe>
            <unsubscribe>http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com</unsubscribe>
            <post>mailto:[email protected]</post>
            <archive>http://lists.keelframework.com/pipermail/keelgroup-keelframework.com</archive>
        </mailingList>
    </mailingLists>

    <scm>
        <connection>scm:cvs:pserver:[EMAIL PROTECTED]:/cvsroot/keel/xdoclet-plugin-keel</connection>
        <developerConnection>
            scm:cvs:pserver:[EMAIL PROTECTED]:/cvsroot/keel/xdoclet-plugin-keel
        </developerConnection>
        <url>http://cvs.sourceforge.net/viewcvs.py/keel/xdoclet-plugin-keel</url>
    </scm>

    <distributionManagement>
        <repository>
            <id>keel-repo</id>
            <name>Keel Meta-framework Repository</name>
            <url>scp://www.keelframework.org/home/keelsite/keelframework.org/repository/maven2</url>
        </repository>
    </distributionManagement>

    <repositories>
        <repository>
            <id>codehaus-maven2</id>
            <name>Codehaus Maven2 Repo</name>
            <url>http://dist.codehaus.org</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>codehaus-legacy</id>
            <name>Codehaus Legacy Repo</name>
            <url>http://dist.codehaus.org</url>
            <layout>legacy</layout>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>codehaus-maven2</id>
            <name>Codehaus Maven2 Repo</name>
            <url>http://dist.codehaus.org</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>codehaus-legacy</id>
            <name>Codehaus Legacy Repo</name>
            <url>http://dist.codehaus.org</url>
            <layout>legacy</layout>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

    <build>
        <resources>
            <resource>
                <directory>${basedir}/src/main/java</directory>
                <includes>
                    <include>**/*.jelly</include>
                    <include>**/*.vm</include>
                    <include>**/*.xml</include>
                    <include>**/*.dtd</include>
                    <include>**/*.xsd</include>
                    <include>**/*.png</include>
                    <include>**/*.jpg</include>
                    <include>**/*.gif</include>
                </includes>
            </resource>
        </resources>
        <testResources>
            <testResource>
                <directory>${basedir}/src/test/java</directory>
                <includes>
                    <include>**/*.xconf</include>
                    <include>**/*.java</include>
                    <include>**/*.xml</include>
                    <include>**/*.vm</include>
                    <include>**/*.tld</include>
                    <include>**/*.properties</include>
                    <include>**/*.confluence</include>
                </includes>
            </testResource>
        </testResources>
        <plugins>
            <plugin>
                <groupId>xdoclet</groupId>
                <artifactId>maven2-xdoclet2-plugin</artifactId>
                <version>2.0.5-SNAPSHOT</version>
                <inherited>true</inherited>
                <dependencies>
                    <dependency>
                        <groupId>xdoclet-plugins</groupId>
                        <artifactId>xdoclet-plugin-qtags</artifactId>
                        <version>1.0.4-SNAPSHOT</version>
                    </dependency>
                    <dependency>
                        <groupId>xdoclet-plugins</groupId>
                        <artifactId>xdoclet-plugin-plugin</artifactId>
                        <version>1.0.4-SNAPSHOT</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <configs>
                        <config>
                            <plugin>org.xdoclet.plugin.qtags.impl.QTagImplPlugin</plugin>
                            <params>
                                <destdir>${basedir}/target/src/main/java</destdir>
                            </params>
                            <includes>**/*.java</includes>
                            <addToSources>true</addToSources>
                        </config>
                        <config>
                            <plugin>org.xdoclet.plugin.qtags.impl.QTagLibraryPlugin</plugin>
                            <params>
                                <destdir>${basedir}/target/src/main/java</destdir>
                                <packagereplace>org.xdoclet.plugin.${namespace}.qtags</packagereplace>
                            </params>
                            <includes>**/*.java</includes>
                            <addToSources>true</addToSources>
                        </config>
                        <config>
                            <plugin>org.xdoclet.plugin.qtags.xdoc.QTagXDocPlugin</plugin>
                            <params>
                                <destdir>${basedir}/target/generated-xdocs</destdir>
                                <namespace>${namespace}</namespace>
                            </params>
                            <includes>**/*.java</includes>
                        </config>
                        <config>
                            <plugin>org.xdoclet.plugin.qtags.confluence.QTagConfluencePlugin</plugin>
                            <params>
                                <destdir>${basedir}/target/confluence</destdir>
                                <namespace>${namespace}</namespace>
                            </params>
                            <includes>**/*.java</includes>
                        </config>
                        <config>
                            <plugin>org.xdoclet.plugin.plugin.PluginPlugin</plugin>
                            <params>
                                <basedir>${basedir}</basedir>
                                <destdir>${basedir}/target/plugindoc</destdir>
                            </params>
                            <includes>**/*.java</includes>
                        </config>
                    </configs>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>xdoclet</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>maven2-xdoclet2-plugin</artifactId>
            <version>2.0.5-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>xdoclet-plugins</groupId>
            <artifactId>xdoclet-plugin-qtags</artifactId>
            <version>1.0.4-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>xdoclet-plugins</groupId>
            <artifactId>xdoclet-plugin-plugin</artifactId>
            <version>1.0.4-SNAPSHOT</version>
        </dependency>
    </dependencies>

</project>

Reply via email to