This surely sounds pretty dumb, but I've tried everything I can think of,
but I cannot find the answer to the following annoyance:

When I use the hibernate3-maven-plugin (2.0-alpha-2), it runs hbm2ddl twice
when I run "mvn clean install"

I also have a custom plugin for running JFlex, and it runs this many times
during "mvn clean install"

I assume it's something wrong with my configuration.  I've attached it
below.

Thanks!
John

-----

<build>
  <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>hibernate3-maven-plugin</artifactId>
      <version>2.0-alpha-2-SNAPSHOT</version>
      <configuration>
        <componentProperties>
          
<configurationfile>/build-config/hibernate.cfg.xml</configurationfile>
          <drop>true</drop>
          <outputfilename>schema.ddl</outputfilename>
          <jdk5>true</jdk5>
        </componentProperties>
      </configuration>
      <executions>
        <execution>
          <id>compile</id>
          <phase>process-resources</phase>
          <goals>
            <goal>hbm2java</goal>
            <goal>hbm2ddl</goal>
          </goals>
        </execution>
        <execution>
          <id>site</id>
          <phase>site</phase>
          <goals>
            <goal>hbm2doc</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

    <plugin>
      <groupId>my.local.repository</groupId>
      <artifactId>maven-jflex-plugin</artifactId>
      <configuration>
        <files>
          <file>
            
<inputFile>${basedir}/src/jflex/MessageFormatScanner.l</inputFile>
            
<outputPath>${project.build.sourceDirectory}/com/test/</outputPath>
          </file>
        </files>
        <args>
          <arg>--skel</arg>
          <arg>${basedir}/src/jflex/skeleton.state_stack</arg>
        </args>
      </configuration>
      <executions>
        <execution>
        <phase>process-resources</phase>
        <goals>
          <goal>generate</goal>
        </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to