I have a properties file that I want my java to find but it doesn't and then I get a nullpointerexception. How can I configure maven or jetty to include my properties file? It works when I run the class from the target directory of compiled classes and the properties file is in the same directory. But when I build the project with maven and start it with jetty then the properties file is not found and I don't know where to put it since I don't know what it the directory of the running instance. Can you tell me where to put the proterties files of what to put in pom.xml to include the properties file?
PropertiesCredentials credentials = new PropertiesCredentials(
AWSJavaMailSample.class
.getResourceAsStream("AwsCredentials.properties"));