I use the plugin below to generate my Entity classes. When I execute command mvn hibernate3:hbm2java I did get this error:
There was an error creating the AntRun task.: An Ant BuildException has occured: java.lang.NoClassDefFoundError: org/hibernate/engine/Mapping: org.hibernate.engine.Mapping
I did try every hibernate version but I can't find the one that contains indicated class.
Edit: JDK 11 is used.
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>hibernate3-maven-plugin</artifactId>
    <version>3.0</version>
    <executions>
        <execution>
            <id>generate-entities</id>
            <phase>post-clean</phase>
            <goals>
                <goal>hbm2java</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <hibernatetool destdir="${project.build.sourceDirectory}">
            <classpath>
                <path location="${project.build.sourceDirectory}/classes"/>
            </classpath>
            <!--<configuration configurationfile="src/main/resources/hibernate/hibernate.cfg.xml"/> -->
            <jdbcconfiguration
                    packagename="com.cm.sourcegenerator"
                    revengfile="src/main/resources/hibernate/hibernate.reveng.xml"
            />
            <hbm2java jdk5="true" ejb3="true"/>
            <!--<hbm2cfgxml ejb3="true" destdir="${basedir}/src/main/resources/hibernate" /> -->
        </hibernatetool>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <version>8.0.33</version>
        </dependency>
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
            <version>${cglib.version}</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>4.3.11.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>4.3.11.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>4.1.0.Final</version>
        </dependency>
        <dependency>
            <groupId>jakarta.xml.bind</groupId>
            <artifactId>jakarta.xml.bind-api</artifactId>
            <version>2.3.2</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jaxb</groupId>
            <artifactId>jaxb-runtime</artifactId>
            <version>2.3.2</version>
        </dependency>
    </dependencies>
</plugin>
 
                        
I just used the new version of the tool and everything works fine