Hi,
can you help me what's wrong with my configuration for deploying app to
JFrog artifactory?
On jfrog artifactory I have repository myAppsRepository.
I use eclipse 3.4 (but on the command line it's the same problem), maven
2.0.9
settings.xml
<settings>
<servers>
<server>
<id>myRemoteRepository</id>
<username>user</username>
<password>password</password>
</server>
</servers>
</settings>
pom.xml contains
<repositories>
<repository>
<id>iBbRepository</id>
<url>
http://somewhere:8081/artifactory/myAppsRepository
</url>
</repository>
</repositories>
and
<distributionManagement>
<repository>
<id>myRemoteRepository</id>
<name>Rapper</name>
<url>http://somewhere:8081/artifactory/myAppsRepository</url>
</repository>
</distributionManagement>
And there is stacktrace:
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy' -->
[DEBUG] (f) artifact = cz.billboard:myApp:war:0.0.1
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) deploymentRepository = [myRemoteRepository] ->
http://somewhere:8081/artifactory/myAppsRepository
[DEBUG] (s) localRepository = [local] -> file://C:\Documents and
Settings\jach\.m2\repository
[DEBUG] (f) packaging = war
[DEBUG] (f) pomFile = C:\data\eclipse\projects\Application\pom.xml
[DEBUG] (f) skip = false
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [deploy:deploy]
Uploading:
http://somewhere:8081/artifactory/myAppsRepository/cz/billboard//myApp/0.0.1/myApp-0.0.1.war
31394K uploaded
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Error transferring file
Error writing to server
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact: Error transferring file
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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
deploying artifact: Error transferring file
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact: Error transferring file
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error
transferring file
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:178)
at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:244)
at
org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:160)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
... 19 more
Caused by: java.io.IOException: Error writing to server
at
sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:453)
at
sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:465)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1047)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:153)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org