I've cobbled together a working instance of Maven 2 running the new
maven-xdoclet-plugin running Xdoclet 1.x's hibernatedoclet task to
generate the Hibernate HBMs.  Since there's next to no docs, here it is
for anyone who needs it.  Kenny, feel free to add it to your docs on
neonics.com:

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-xdoclet-plugin</artifactId>
          <version>1.0-SNAPSHOT</version>
          <executions>
            <execution>
              <phase>generate-sources</phase>
              <goals>
                <goal>xdoclet</goal>
              </goals>
              <configuration>
                <tasks>
                  <!-- example : -->
                  <hibernatedoclet
destdir="${project.build.outputDirectory}"
                    excludedtags="@version,@author,@todo,@see,@desc"
verbose="false">
                    <fileset dir="${basedir}/src/java">
                      <include name="**/beans/*.java" />
                    </fileset>
                    <hibernate version="2.1" />
                  </hibernatedoclet>
                </tasks>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <pluginRepositories>
    <pluginRepository>
      <id>Neonics</id>
      <url>http://www.neonics.com/maven2</url>
    </pluginRepository>
  </pluginRepositories>


Hope this helps.

mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to