[Maven 2] Exception when deploying

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Maven 2] Exception when deploying

Sven Efftinge-4
Hi,
first of all I would like to say that I like Maven 2. I've tested it for
2 days now and haven't had too much problems so far.
At the moment I try to deploy a simple project to a repository using
scp. Here is my pom:

<model>
  <modelVersion>4.0.0</modelVersion>
  <groupId>de.lohndirekt</groupId>
  <artifactId>ikarus-business</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Maven Quick Start</name>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>ld-repository</id>
      <name>Lohndirekt Repository</name>
      <url>scp://dev.lohndirekt.de/usr/local/maven-repository</url>
      <snapshotPolicy>daily</snapshotPolicy>
      <layout>default</layout>
    </repository>
  </distributionManagement>
</model>

Unfortunately I get the following Exception:

[INFO] [deploy:deploy]
[INFO] Retrieving snapshot information for ikarus-business 1.0-SNAPSHOT
Uploading:
scp://dev.lohndirekt.de/usr/local/maven-repository/de/lohndirekt/ikar
us-business/1.0-SNAPSHOT/ikarus-business-1.0-20050602.155108-1.jar
[INFO]
-------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO]
-------------------------------------------------------------------------
---
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error deploying artifact
        at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:145)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
        at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
        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:324)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact:
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:100)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:63)
        at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:135)
        ... 14 more
Caused by: org.apache.maven.wagon.TransferFailedException: Resource to
deploy not found:
        at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:192)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:96)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:86)
        ... 16 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: scp:
/usr/local/maven-repository/de/lohndirekt/ikarus-business/1.0-SNAPSHOT/ikarus-business-1.0-20050602.155108-1.jar:
No such file or directory
        at
org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck(ScpWagon.java:646)
        at
org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:298)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:160)
        ... 18 more

Any ideas?

regards,
Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Maven 2] Exception when deploying

Brett Porter
It may be that /usr/local/maven-repository doesn't already exist?

- Brett

On 6/3/05, Sven Efftinge <[hidden email]> wrote:

> Hi,
> first of all I would like to say that I like Maven 2. I've tested it for
> 2 days now and haven't had too much problems so far.
> At the moment I try to deploy a simple project to a repository using
> scp. Here is my pom:
>
> <model>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>de.lohndirekt</groupId>
>   <artifactId>ikarus-business</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>Maven Quick Start</name>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   <distributionManagement>
>     <repository>
>       <id>ld-repository</id>
>       <name>Lohndirekt Repository</name>
>       <url>scp://dev.lohndirekt.de/usr/local/maven-repository</url>
>       <snapshotPolicy>daily</snapshotPolicy>
>       <layout>default</layout>
>     </repository>
>   </distributionManagement>
> </model>
>
> Unfortunately I get the following Exception:
>
> [INFO] [deploy:deploy]
> [INFO] Retrieving snapshot information for ikarus-business 1.0-SNAPSHOT
> Uploading:
> scp://dev.lohndirekt.de/usr/local/maven-repository/de/lohndirekt/ikar
> us-business/1.0-SNAPSHOT/ikarus-business-1.0-20050602.155108-1.jar
> [INFO]
> -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO]
> -------------------------------------------------------------------------
> ---
> [ERROR] Cause:
> org.apache.maven.plugin.MojoExecutionException: Error deploying artifact
>         at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:145)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
>         at
> org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
>         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:324)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> Caused by:
> org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
> deploying artifact:
>         at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:100)
>         at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:63)
>         at
> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:135)
>         ... 14 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Resource to
> deploy not found:
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:192)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:96)
>         at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:86)
>         ... 16 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: scp:
> /usr/local/maven-repository/de/lohndirekt/ikarus-business/1.0-SNAPSHOT/ikarus-business-1.0-20050602.155108-1.jar:
> No such file or directory
>         at
> org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck(ScpWagon.java:646)
>         at
> org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:298)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:160)
>         ... 18 more
>
> Any ideas?
>
> regards,
> Sven
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Maven 2] Exception when deploying

Sven Efftinge-2
The directory existed but the user had no permissions to write.
thanks,
Sven

Brett Porter wrote:

>It may be that /usr/local/maven-repository doesn't already exist?
>
>- Brett
>
>On 6/3/05, Sven Efftinge <[hidden email]> wrote:
>  
>
>>Hi,
>>first of all I would like to say that I like Maven 2. I've tested it for
>>2 days now and haven't had too much problems so far.
>>At the moment I try to deploy a simple project to a repository using
>>scp. Here is my pom:
>>
>><model>
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>de.lohndirekt</groupId>
>>  <artifactId>ikarus-business</artifactId>
>>  <packaging>jar</packaging>
>>  <version>1.0-SNAPSHOT</version>
>>  <name>Maven Quick Start</name>
>>  <dependencies>
>>    <dependency>
>>      <groupId>junit</groupId>
>>      <artifactId>junit</artifactId>
>>      <version>3.8.1</version>
>>      <scope>test</scope>
>>    </dependency>
>>  </dependencies>
>>  <distributionManagement>
>>    <repository>
>>      <id>ld-repository</id>
>>      <name>Lohndirekt Repository</name>
>>      <url>scp://dev.lohndirekt.de/usr/local/maven-repository</url>
>>      <snapshotPolicy>daily</snapshotPolicy>
>>      <layout>default</layout>
>>    </repository>
>>  </distributionManagement>
>></model>
>>
>>Unfortunately I get the following Exception:
>>
>>[INFO] [deploy:deploy]
>>[INFO] Retrieving snapshot information for ikarus-business 1.0-SNAPSHOT
>>Uploading:
>>scp://dev.lohndirekt.de/usr/local/maven-repository/de/lohndirekt/ikar
>>us-business/1.0-SNAPSHOT/ikarus-business-1.0-20050602.155108-1.jar
>>[INFO]
>>-------------------------------------------------------------------------
>>---
>>[ERROR] BUILD ERROR
>>[INFO]
>>-------------------------------------------------------------------------
>>---
>>[ERROR] Cause:
>>org.apache.maven.plugin.MojoExecutionException: Error deploying artifact
>>        at
>>org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:145)
>>        at
>>org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>>        at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
>>        at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
>>        at
>>org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
>>        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:324)
>>        at
>>org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>>        at
>>org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
>>Caused by:
>>org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
>>deploying artifact:
>>        at
>>org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:100)
>>        at
>>org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:63)
>>        at
>>org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:135)
>>        ... 14 more
>>Caused by: org.apache.maven.wagon.TransferFailedException: Resource to
>>deploy not found:
>>        at
>>org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:192)
>>        at
>>org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:96)
>>        at
>>org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:86)
>>        ... 16 more
>>Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: scp:
>>/usr/local/maven-repository/de/lohndirekt/ikarus-business/1.0-SNAPSHOT/ikarus-business-1.0-20050602.155108-1.jar:
>>No such file or directory
>>        at
>>org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck(ScpWagon.java:646)
>>        at
>>org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:298)
>>        at
>>org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:160)
>>        ... 18 more
>>
>>Any ideas?
>>
>>regards,
>>Sven
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]