I think I ran into the same problem as yours. I created a simple mvn project and used "mvn eclipse: eclipse" to install the eclipse project.
For example, my source file "Router.java" is located in "java / main / org / jhoh / mvc". And Router.java wants to read the "routes" file, which is located in "java / main / org / jhoh / mvc / resources"
I run "Router.java" in eclipse, and the eclipse console got NullPointerExeption. I installed pom.xml with this option so that all * .class java bytecode files are in the build directory.
<build> <defaultGoal>package</defaultGoal> <directory>${basedir}/build</directory> <build>
I went to the directory "build / classes / org / jhoh / mvc / resources" and there are no "routes". Eclipse DID NOT copy "routes" to "build / classes / org / jhoh / mvc / resources"
I think you can copy your "install.xml" to your * .class bytecode directory, NOT to the source code directory.
Le Wang May 16 '13 at 12:24 2013-05-16 12:24
source share