In a multimodule project, I am using hbm2java in the core project. This works
fine if I only build the core module. But If I build the whole project,
hbm2java generates java files in the parent project and not in the core
module. I am assuming its related to outputDirectory location. Is absolute
path the only way to resolve this?

Here is part of the pom (for the core module)
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>2.0-alpha-2-SNAPSHOT</version>
                <configuration>
                    <components>
                        <component>
                            <name>hbm2ddl</name>
                           
<implementation>annotationconfiguration</implementation>
                        </component>
                        <component>
                                                <name>hbm2java</name>
                                                
<outputDirectory>src/main/java</outputDirectory>
                                                
<implementation>annotationconfiguration</implementation>
                        </component>
                    </components>
                    <componentProperties>
                        <jdk5>true</jdk5>
                       
<propertyfile>target/test-classes/jdbc.properties</propertyfile>
                        <update>true</update>
                       
<configurationfile>src/main/resources/hibernate.cfg.xml</configurationfile>
                    </componentProperties>
                </configuration>
                <executions>
                        <execution>
                        <id>ex1</id>
                                        <phase>generate-sources</phase>
                        <goals>
                            <goal>hbm2java</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>ex2</id>
                        <phase>process-test-resources</phase>
                        <goals>
                            <goal>hbm2ddl</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>${jdbc.groupId}</groupId>
                        <artifactId>${jdbc.artifactId}</artifactId>
                        <version>${jdbc.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
-- 
View this message in context: 
http://www.nabble.com/location-of-generated-files-by-hbm2java-tf3786883s2369.html#a10709205
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to