2011-02-24から1日間の記事一覧
ビルドしたwarファイルの中身がいつのリビジョンの奴か見れるようにしておきたい、 みたいなことを言われたときに。コマンドライン用のsvnをあらかじめ入れといて、以下をpom.xmlに追加。 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> </tasks></configuration></execution></executions></plugin>
以下のようにearのpom.xmlに trueを追記する。 <webModule> <groupId>test</groupId> <artifactId>test</artifactId> <contextRoot>/test</contextRoot> <bundleFileName>test.war</bundleFileName> <unpack>true</unpack> </webModule>こうすると.warとか.jarとかに固められないので中を見るときとか ちょっとは楽になるかもしれない。