Необходимо сделать класс-загрузчик звуков и перенести в него статические методы подгрузки.
bash-3.2$ mvn compile exec:java -Dexec.mainClass=com.foxcatgames.boggarton.Boggarton
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building boggarton 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ boggarton ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 43 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ boggarton ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ boggarton ---
[WARNING]
java.lang.NullPointerException
at com.foxcatgames.boggarton.Sound.loadPattern(Sound.java:44)
at com.foxcatgames.boggarton.Sound.loadALData(Sound.java:87)
at com.foxcatgames.boggarton.Sound.init(Sound.java:169)
at com.foxcatgames.boggarton.Boggarton.main(Boggarton.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282)
at java.lang.Thread.run(Thread.java:745)
Необходимо сделать класс-загрузчик звуков и перенести в него статические методы подгрузки.