maven2
2006年 04月 29日
試してみたメモ
http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.4-bin.tar.bz2
c:/usr 以下に展開した。
環境変数にbinを追加。
http://itpro.nikkeibp.co.jp/article/COLUMN/20051110/224373/?ST=oss&P=2
を参考にcygwinから、mvn archetype:create -DgroupId=itpro.sample -DartifactId=mvnsample
を実行した。
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an
error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Sat Apr 29 16:57:04 JST 2006
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
orz.
httpがプロキシ使ってるんだった。プロキシ設定は、~/.m2/settings.xmlで行なった。
<settings>
.
.
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies>
.
.
</settings>
が、改善せず。
しょうがなく、横取り丸を立ち上げどうなってるか見てみる。
~/.m2/settings.xmlの設定もかえた。
HOMEディレクトリの下に、.m2ディレクトリを作ってもだめでした。
環境変数に設定されたHOMEディレクトリではなく、C:\Documents and Settings\<username>\.m2
を読むみたい。なんじゃそりゃ?
%USERPROFILE%\.m2だそうな。
http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.4-bin.tar.bz2
c:/usr 以下に展開した。
環境変数にbinを追加。
http://itpro.nikkeibp.co.jp/article/COLUMN/20051110/224373/?ST=oss&P=2
を参考にcygwinから、mvn archetype:create -DgroupId=itpro.sample -DartifactId=mvnsample
を実行した。
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an
error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Sat Apr 29 16:57:04 JST 2006
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
orz.
httpがプロキシ使ってるんだった。プロキシ設定は、~/.m2/settings.xmlで行なった。
<settings>
.
.
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies>
.
.
</settings>
が、改善せず。
しょうがなく、横取り丸を立ち上げどうなってるか見てみる。
~/.m2/settings.xmlの設定もかえた。
HOMEディレクトリの下に、.m2ディレクトリを作ってもだめでした。
環境変数に設定されたHOMEディレクトリではなく、C:\Documents and Settings\<username>\.m2
を読むみたい。なんじゃそりゃ?
%USERPROFILE%\.m2だそうな。
by smeg_head
| 2006-04-29 22:35
| java