maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wiedmann <jochen.wiedm...@gmail.com>
Subject Problem using maven-deploy-plugin against an https server via proxy
Date Tue, 15 Jun 2010 06:21:42 GMT
Hi,

I am trying to deploy a snapshot of an Apache project to
https://repository.apache.org/content/repositories/snapshots. From my
point of view, the configuration is correct: I have a "server" entry
in my settings.xml and I have configured an https proxy. (See "Adding
User-Agent configuration" and "Using Proxy: ..." below.)

Nevertheless, the deploy-plugin fails with the following error message:

    Caused by: java.net.UnknownHostException: repository.apache.org

In other words, it seems that the proxy is unused and a direct
connection is attempted, which, of course, fails. (We can't even
resolve external host names in the corporate network.)

Maven version:

  bash-3.2$ mvn --version
  Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)


Any ideas what I might try?

Thanks,

Jochen

-- 
Germanys national anthem is the most boring in the world - how telling!


[INFO] Retrieving previous build number from apache.snapshots.https
[DEBUG] Using Wagon implementation lightweight from default mapping
for protocol https
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'apache.snapshots.https' with url:
'https://repository.apache.org/content/repositories/snapshots'.
[DEBUG] Using Proxy: 10.175.249.65
[DEBUG] Using Wagon implementation lightweight from default mapping
for protocol https
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error retrieving previous build number for artifact
'org.apache.rat:apache-rat-project:pom': repository metadata for:
'snapshot org.apache.rat:apache-rat-project:0.7-SNAPSHOT' could not be
retrieved from repository: apache.snapshots.https due to an error:
Error transferring file: repository.apache.org

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
retrieving previous build number for artifact
'org.apache.rat:apache-rat-project:pom': repository metadata for:
'snapshot org.apache.rat:apache-rat-project:0.7-SNAPSHOT' could not be
retrieved from repository: apache.snapshots.https due to an error:
Error transferring file: repository.apache.org
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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
retrieving previous build number for artifact
'org.apache.rat:apache-rat-project:pom': repository metadata for:
'snapshot org.apache.rat:apache-rat-project:0.7-SNAPSHOT' could not be
retrieved from repository: apache.snapshots.https due to an error:
Error transferring file: repository.apache.org
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error retrieving previous build number for artifact
'org.apache.rat:apache-rat-project:pom': repository metadata for:
'snapshot org.apache.rat:apache-rat-project:0.7-SNAPSHOT' could not be
retrieved from repository: apache.snapshots.https due to an error:
Error transferring file: repository.apache.org
        at org.apache.maven.artifact.transform.SnapshotTransformation.transformForDeployment(SnapshotTransformation.java:106)
        at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForDeployment(DefaultArtifactTransformationManager.java:74)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:86)
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)
        ... 19 more
Caused by: org.apache.maven.artifact.repository.metadata.RepositoryMetadataResolutionException:
repository metadata for: 'snapshot
org.apache.rat:apache-rat-project:0.7-SNAPSHOT' could not be retrieved
from repository: apache.snapshots.https due to an error: Error
transferring file: repository.apache.org
        at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:351)
        at org.apache.maven.artifact.transform.SnapshotTransformation.resolveLatestSnapshotBuildNumber(SnapshotTransformation.java:161)
        at org.apache.maven.artifact.transform.SnapshotTransformation.transformForDeployment(SnapshotTransformation.java:100)
        ... 22 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error
transferring file: repository.apache.org
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadataFromDeploymentRepository(DefaultWagonManager.java:452)
        at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.getArtifactMetadataFromDeploymentRepository(DefaultRepositoryMetadataManager.java:379)
        at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:347)
        ... 24 more
Caused by: java.net.UnknownHostException: repository.apache.org
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
        ... 31 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jun 15 08:15:57 CEST 2010
[INFO] Final Memory: 17M/42M
[INFO] ------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message