Maven2のビルドライフサイクルフェーズ
一覧表示になっていて見やすかったので・・・・
http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
ちなみにテストリソース(src/test/resources)は、ちゃんと自分のクラスのClassLoaderから取らないとeclipseでは走っても、maven2のsurefireで落ちます。
こんな感じにする。
InputStream in = this.getClass().getClassLoader().getResourceAsStream(リソース名);
あとXStreamはやっぱり手軽です。
http://xstream.codehaus.org/index.html
http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
ちなみにテストリソース(src/test/resources)は、ちゃんと自分のクラスのClassLoaderから取らないとeclipseでは走っても、maven2のsurefireで落ちます。
こんな感じにする。
InputStream in = this.getClass().getClassLoader().getResourceAsStream(リソース名);
あとXStreamはやっぱり手軽です。
http://xstream.codehaus.org/index.html



Comments
No comments yet
Add Comment