Hello Johann,

I did, but I think I was already on the latest snapshot:

> hibernate3-maven-plugin-2.0-20070105.142116-7.jar

There's still the log4j exception.
Attached below this message you can find the POM from my simple example.

regards,
Alex Josef

-------------------
pom.xml :

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>ch.unartig.mvntest</groupId>
    <artifactId>my-app</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Maven Quick Start Archetype</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.14</version>
        </dependency>


    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>2.0-SNAPSHOT</version>

                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>hbm2java</goal>
                        </goals>
                    </execution>
                </executions>


                <configuration>
                    <hibernate>
                       
<configurationFile>/src/main/resources/hibernate.cfg.xml</configurationFile>
                    </hibernate>
                    <!--<outputDirectory>-->
                        <!--<hbm2cfgxml>src/main/resources</hbm2cfgxml>-->
                    <!--</outputDirectory>-->
                    <!--<jdk5>true</jdk5>-->
                </configuration>

            </plugin>
        </plugins>
        <extensions>
            <extension>
                <groupId>postgresql</groupId>
                <artifactId>postgresql</artifactId>
                <version>8.1-407.jdbc3</version>
            </extension>
        </extensions>
    </build>

    <pluginRepositories>
        <pluginRepository>
            <id>Codehaus Snapshots</id>
            <url>http://snapshots.repository.codehaus.org/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
    </pluginRepositories>
</project>



Johann Reyes-2 wrote:
> 
> Hello Alex
> 
> Can you try to updated your snapshot with mvn -U  ??
> 
> Regards
> 
> Johann Reyes
> 
> -----Original Message-----
> From: Alexander Josef [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 18, 2007 3:22 PM
> To: user@mojo.codehaus.org
> Subject: [mojo-user] hibernate3:hbm2java log4j exception
> 
> 
> hi,
> 
> I'm using the hibernate3:hbm2java goal to generate the java classes from
> the
> hbm.xml files. Works fine. But as soon as I add the log4j dependency I get
> the error below. Didn't that has been fixed in the 2.0 snapshot
> (MOJO-489)?
> Did I miss something?
> 
> cheers,
> Alex
> 
> [INFO] using annotationconfiguration task.
> [INFO] Configuration XML file loaded:
> C:\WORK\maven-test\model\src\main\resources\hibernate.cfg.xml
> [INFO] Configuration XML file loaded:
> C:\WORK\maven-test\model\src\main\resources\hibernate.cfg.xml
> [INFO] src/main/resources/database.properties not found within the
> project.
> Trying absolute path.
> [INFO] No hibernate properties file loaded.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org/apache/log4j/Priority
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: org/apache/log4j/Priority
>       at
> freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
>       at freemarker.log.Logger.getLogger(Logger.java:255)
>       at
> freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.jav
> a:67)
> .....
> 
> -- 
> View this message in context:
> http://www.nabble.com/hibernate3%3Ahbm2java-log4j-exception-tf3036420.html#a
> 8438228
> Sent from the mojo - user mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/hibernate3-hbm2java-log4j-exception-tf3036420.html#a8572243
Sent from the mojo - user mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email

Reply via email to