[operation:1506] Maven2のデプロイでプロキシを超える方法について

Toshihiro Nakamura [E-MAIL ADDRESS DELETED]
2007年 5月 18日 (金) 12:12:08 JST


中村(taedium)です。

WebDAV経由のMaven2のデプロイですが、
プロキシを超えるために何か設定が必要でしょうか?

http://www.seasar.org/wiki/index.php?DeployToMaven2RepoRemoteWithWebDAV

上記のURLの指示に従って
settings.xmlは次のように修正しているのですが、
私の会社の環境ではデプロイできません。

<?xml version="1.0" encoding="utf-8" ?>
<settings>
  <servers>
   <server>
     <id>maven.seasar.org</id>
     <username>taedium</username>
     <password>パスワード</password>
   </server>
  </servers>
  <proxies>
    <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>ホスト</host>
      <port>ポート</port>
    </proxy>
  </proxies>
</settings>

デプロイのときにsettings.xmlのproxyの
情報が使われていないのではないかと推測しています。
(家からはデプロイできるので、ちがいといったらプロキシくらいしか
思いつかないのです。)

「mvn clean deploy -e」としてみると次のようなスタックトレースが
取得できます。
どなたかご存知の方がいらっしゃったら教えてください。


[INFO] Error deploying artifact: Failed to create destination WebDAV collection
(directory): /maven/maven2-snapshot/org/seasar/container/s2-container-project/2.
4.13-rc2-SNAPSHOT

Connection timed out: connect
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact
: Failed to create destination WebDAV collection (directory): /maven/maven2-snap
shot/org/seasar/container/s2-container-project/2.4.13-rc2-SNAPSHOT
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artif
act: Failed to create destination WebDAV collection (directory): /maven/maven2-s
napshot/org/seasar/container/s2-container-project/2.4.13-rc2-SNAPSHOT
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174
)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:420)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
 deploying artifact: Failed to create destination WebDAV collection (directory):
 /maven/maven2-snapshot/org/seasar/container/s2-container-project/2.4.13-rc2-SNA
PSHOT
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:94)
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:152
)
        ... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to create dest
ination WebDAV collection (directory): /maven/maven2-snapshot/org/seasar/contain
er/s2-container-project/2.4.13-rc2-SNAPSHOT
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.j
ava:270)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D
efaultWagonManager.java:222)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(Def
aultWagonManager.java:151)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:80)
        ... 19 more
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:464)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA12275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(DashoA12275)
        at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA
12275)
        at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat
eSocket(SSLProtocolSocketFactory.java:93)
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
:652)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:628)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:497)
        at org.apache.webdav.lib.WebdavResource.mkcolMethod(WebdavResource.java:
4106)
        at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.j
ava:264)
        ... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46 seconds
[INFO] Finished at: Fri May 18 11:55:51 JST 2007
[INFO] Final Memory: 7M/14M
[INFO] ------------------------------------------------------------------------

-- 
Toshihiro Nakamura <[E-MAIL ADDRESS DELETED]>



operation メーリングリストの案内