Should I expect files in main/resources to be on the classpath when running the maven jetty plugin? Meaning will they be available to the app I’m running inside jetty? Will I be able to load them as classpath resources rather than via the file system?
The same question goes for running junit tests inside Eclipse, using the Eclipse Maven plugin.
If this directory is not on the classpath, can I add it?
The resources from
src/main/resourcesare copied intotarget/classesduring theprocess-resourcesphase so, yes, they will be on the class path when running the maven jetty plugin. They will also be available when running unit tests (actually, see this previous answer). This applies inside Eclipse and on the command line.