ふたつの川うるおう日記
2006-06-11 (Sun)
_ [Java] Maven2 で除外設定?
Maven2入門中なのですが、以下の設定を追加すると commons-lang がMaven2 Dependenciesから消えてしまう。。
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>catalina</artifactId>
<version>5.0.28</version>
<scope>test</scope>
</dependency>
exclusionsとやらを書いても消えるー。
<exclusions>
<exclusion>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</exclusion>
</exclusions>
_ [Java][Seasar] Maven2 と Cactus(+Jetty) 良い!
S2AnAのソースをいじろうと Maven2 と Cactus の使い方を調べました。Maven 2.x Plug-in for Eclipse良いーー!!Cactus(+Jetty)仕組み面白いーー!!
実はずっと手動でS2AnA用のlibフォルダ作って、必要なライブラリをいちいち持ってきてました_| ̄|○。これからは Maven2 を積極的に使おう。Maven2のTipsを集めるWiki - CookBookが素晴らしいです。リポジトリ置場がプロファイル内に入るのが嫌だったので下記の設定をしました。
- C:\Documents and Settings\%USERNAME%\.m2\settings.xml
- 最初ないので自分で作る
<?xml version="1.0" encoding="UTF-8"?> <settings> <localRepository>E:\Java\Resource\Maven\repository</localRepository> </settings>
_ [雑記] URL変更
http://jfut.featia.net/ に変えました。古いのでも見れます。
<VirtualHost *:80>
ServerName vision.featia.net
<IfModule rewrite_module>
RewriteEngine on
RewriteRule ^(.*) http://jfut.featia.net$1 [R]
</IfModule>
</VirtualHost>
[]



Maven2の使いかた教えてなかったかもしれないですね。すみません。便利なので積極的に使っています。
何かを調べて使うのは得意なので全然大丈夫です。S2AnAで新しいことをいろいろ知れて楽しいです(´ー`)。