java - Maven build doesn't include hibernate cfg.xml or hbm.xml files -
i'm building , executable-jar jar doesn't include cfg or hbm hibernate files. pom file contains 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>
i'm using following build it:
mvn clean package shade:shade
i errors hibernate cfg , hbm files cannot found.
any ideas? i've burned many btus on already. in advance.
put files in src/main/resources
maven takes in package resources
Comments
Post a Comment