Saturday, January 18, 2020

Location of resource files in Maven

I am moving a project from NetBeans into Maven in NetBeans.

In the original application, I place resource files in the default package (in classes). In the Maven version, these non-compiled classes are not copied to the Target folder, so they cannot be found at run time.

In Maven, move the files to Other Sources -> src/main/resources.


Followers