I create and execute-jar, but jar does not include hibernate cfg or hbm files. My pom file contains the following:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.2</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <mainClass>com.myCompany.myProject.myMainClass</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build>
To create it, I use the following:
mvn net package shade: shadow
I get errors that cannot be found in the cbb and hbm hibernate files.
Any ideas? I already burned a lot of BTU. Thanks in advance.
source share