I was trying to use maven to build my project
when I create a source folder src/main/resource and put a file into that folder.
But when I do “mvn clean install eclipse:clean eclipse:eclipse”, src/main/resource folder gone, it appears to the src folder instead
The problem of this new structure for me is that I have to manually create a src/main/resource folder again to make sure that those files in the resource folder could be deployed into classpath when I run it. I wonder if there is a way to let maven do it automatically for me? Thanks
You can specify the resources directory in pom.xml. Following is the example:
reference: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html