Hi,

i can now answer my question my self...

> i have a working configuration and creation of and hbm2doc which
> produces javadoc for Hibernate-mappings...
> 
> but how can i integrated the generated javadoc (Hibernate) into the
> site:deploy process or does exist a way to integrated the generated
> javadoc (Hibernate) into a site...

I have added the following parts to my pom:

<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>hibernate3-maven-plugin</artifactId>
        <version>2.1</version>
        <executions>
                <execution>
                        <id>hbm2doc</id>
                        <phase>site</phase>
                        <goals>
                                <goal>hbm2doc</goal>
                        </goals>
                </execution>

                <execution>
                        <id>hbm2ddl</id>
                        <phase>process-classes</phase>
                        <goals>
                                <goal>hbm2ddl</goal>
                        </goals>
                </execution>
        </executions>
        <configuration>
                <components>
                        <component>
                                <name>hbm2doc</name>    
<outputDirectory>target/site/hibernate</outputDirectory>
<implementation>annotationconfiguration</implementation>
                        </component>
                </components>
                <componentProperties>
                        <jdk5>true</jdk5>
                        <packagename>xxxx</packagename>
                        <console>false</console>
                        <outputfilename>schema.sql</outputfilename>
                        <drop>true</drop>
                <create>true</create>
                <update>false</update>
                <export>false</export>
                <format>true</format>
                <dot.executable>${dot.executable}</dot.executable>
                </componentProperties>
        </configuration>

The most important part is to bind the hbm2doc to the site goal...and
configure the different output directory into the site/ directory...

After this the creation of the site will work and if you use the
site:deploy it will also deploy the created docs of hbm2doc....

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

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

Reply via email to