[hibernate-issues] [Hibernate-JIRA] Created: (METAGEN-65) Example maven configuration is not working

Thomas Kalmar (JIRA) noreply at atlassian.com
Tue Jun 14 09:15:24 EDT 2011


Example maven configuration is not working
------------------------------------------

                 Key: METAGEN-65
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-65
             Project: Hibernate Metamodel Generator
          Issue Type: Bug
          Components: documentation
    Affects Versions: 1.1.1.Final
            Reporter: Thomas Kalmar
            Assignee: Hardy Ferentschik


The example code for the maven integration changed from version 1.0 to version 1.1
New: http://docs.jboss.org/hibernate/jpamodelgen/1.1/reference/en-US/html_single/
{code:title="Version 1.1"}
<plugin>
    <groupId>org.bsc.maven</groupId>
    <artifactId>maven-processor-plugin</artifactId>
    <version>1.3.7</version>
    <executions>
        <execution>
            <id>process</id>
            <goals>
                <goal>process</goal>
            </goals>
            <phase>process-sources</phase>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-jpamodelgen</artifactId>
            <version>1.1.1.Final</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</plugin>
{code}
http://docs.jboss.org/hibernate/jpamodelgen/1.0/reference/en-US/html_single/
{code:title="Version 1.0"}
<plugin>
    <groupId>org.bsc.maven</groupId>
    <artifactId>maven-processor-plugin</artifactId>
    <executions>
        <execution>
            <id>process</id>
            <goals>
                <goal>process</goal>
            </goals>
            <phase>generate-sources</phase>
            <configuration>
                <!-- source output directory -->
                <outputDirectory>target/metamodel</outputDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>
{code}

The old version works, the new one fails. Only difference is the phase working generate-sources vs. non-working process-sources.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list