I spoke too soon.
I have the 'mvn site-deploy' working with the following server:




        <server>
            <id>rc_sun66e</id>
            <username>[username]</username>
            <password>[password]</password>
            <passphrase>[phrase]</passphrase>
            <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey>
            <configuration>
                <sshExecutable>putty</sshExecutable> <!-- also tried plink
-->
                <scpExecutable>pscp</scpExecutable>
            </configuration>
        </server>

Then I have this:

    <distributionManagement>
        <site>
            <id>rc_sun66e</id>
            <name>DAP-Site</name>
            <url>scp://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/${
project.version}</url>
        </site>

        <!-- use the following if you're not using a snapshot version. -->
        <repository>
            <id>rc_sun66e</id>
            <name>DAP-Repository</name>
            <url>scp://rc-sun66e.ut.dentegra.lab
/:/opt/htdocs/repository</url>
        </repository>
    </distributionManagement>


So if the site works fine, why do I get this with 'mvn clean deploy -e':

[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from rc_sun66e
[WARNING] repository metadata for: 'snapshot
org.delta.esp:dap:E1B-1.0-SNAPSHOT' could not be retrieved from repository:
rc_sun66e due to an error: While c
onfiguring wagon for 'rc_sun66e': Unable to apply wagon configuration.
[INFO] Repository 'rc_sun66e' will be blacklisted
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: While configuring wagon for 'rc_sun66e':
Unable to apply wagon configuration.

Cannot find setter nor field in
org.apache.maven.wagon.providers.ssh.jsch.ScpWagon for 'sshExecutable'
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact: While configuring wagon for 'rc_sun66e': Unable to apply wagon
configuration.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:564)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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:585)
        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: While configuring wagon for 'rc_sun66e': Unable to apply wagon
configu
ration.
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java
:174)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error deploying artifact: While configuring wagon for 'rc_sun66e': Unable to
app
ly wagon configuration.
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeployer.java:94)
        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java
:152)
        ... 18 more
Caused by: org.apache.maven.artifact.manager.WagonConfigurationException:
While configuring wagon for 'rc_sun66e': Unable to apply wagon
configuration.
        at
org.apache.maven.artifact.manager.DefaultWagonManager.configureWagon(
DefaultWagonManager.java:872)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.configureWagon(
DefaultWagonManager.java:848)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(
DefaultWagonManager.java:180)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact
(DefaultWagonManager.java:153)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeployer.java:80)
        ... 19 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationException:
Cannot find setter nor field in org.apache.maven.wagon.providers.ssh
.jsch.ScpWagon for 'sshExecutable'
        at
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter
.<init>(ComponentValueSetter.java:68)
        at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration
(ObjectWithFieldsConverter.java:13
4)
        at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent
(BasicComponentConfigurator.java:56)
        at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent
(AbstractComponentConfigurator.java:54)
        at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent
(AbstractComponentConfigurator.java:47)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.configureWagon(
DefaultWagonManager.java:861)
        ... 23 more





On 11/7/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>
> You need to use the same id in your distribution management section in
> your pom, as the server settings you want to use from server.xml. In
> your case that would be 'remote-esp-dap-site'.
>
> So putting this in your pom.xml should do it:
>
>      <distributionManagement>
>          <site>
>              <id>remote-esp-dap-site</id>
>              <name>DAP-Site</name>
>
> <url>scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/</url>
>          </site>
>      </distributionManagement>
>
>
> Mick Knutson wrote:
> > I want to connect to a remote repository with a different user than I am
> > when I am compiling:
> >
> >         <server>
> >             <id>remote-esp-dap-site</id>
> >             <username>maven_user</username>
> >             <passphrase>somephrase</passphrase>
> >             <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey>
> >             <configuration>
> >                 <sshExecutable>plink</sshExecutable>
> >                 <scpExecutable>pscp</scpExecutable>
> >             </configuration>
> >         </server>
> >
> >
> >     <distributionManagement>
> >         <site>
> >             <id>rc_sun66e</id>
> >             <name>DAP-Site</name>
> >             <url>scpexe://rc-sun66e.ut.dentegra.lab
> /:/opt/htdocs/site/</url>
> >         </site>
> >     </distributionManagement>
> >
> >
> > But I get this error:
> >
> > [INFO] [site:deploy]
> > scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/utilities -
> Session:
> > Opened
> > Executing command: cmd.exe /X /C 'ssh -i "C:\Documents and
> > Settings\dnxmkk5\.ssh\id_rsa"
> > -o "BatchMode yes" [EMAIL PROTECTED] "mkdir -p ///
> > opt/htdocs/site/utilities/."'
> >
> > 'ssh' is not recognized as an internal or external command,
> > operable program or batch file.
> >
> > scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/utilities -
> Session:
> > Disconnecting
> > scpexe://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/utilities -
> Session:
> > Disconnected
> >
> >
> >
> > I want to use the maven_user not dnxmkk5 user. But there also seems to
> be an
> > issue with the command that is generated.
> >
> > I tried following these directions:
> >
> http://ekawas.blogspot.com/2007/02/maven-windows-and-deploying-to-remote.html
> >
> >
> >
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Reply via email to