Have you in fact defined the variables?  You appear to be missing and end ’}’ 
for ${my.oozieUser}

${my.deployHost}
${my.oozieUser@${my.deployHost}:${my.deployDir}<mailto:$%7bmy.oozieUser@$%7bmy.deployHost%7d:$%7bmy.deployDir%7d>
${my.deployDir}







[cid:image7416fc.PNG@40064290.45a53c7c]

Greg Bishop
greg_bis...@wgresorts.com<mailto:greg_bis...@wgresorts.com>







=======================================================
This email and its attachments may be confidential and are intended solely for 
the use of the individual whom it is addressed.  Any views or opinions 
expressed are solely those of the author and do not necessarily represent those 
of "CFI/Westgate Resorts".  If you are not the intended recipient of this email 
and its attachments, you must take no action based upon them, nor must copy or 
show them to anyone.  Please contact the sender if you believe you have 
received this email in error.
=======================================================
From: Белова Екатерина [mailto:e.bel...@eastwind.ru]
Sent: Monday, March 17, 2014 12:35 AM
To: user@mojo.codehaus.org
Cc: Добряк Дмитрий
Subject: [mojo-user] Problems with wagon:sshexec

Hi everybody,

I’m a novice in Maven and as it said in the topic of the letter– I have 
problems with wagon:sshexec. Below is a text of my error :

"C:\Program Files\Java\jdk1.6.0_45\bin\java" -Dmaven.home=C:\maven 
-Dclassworlds.conf=C:\maven\bin\m2.conf -Didea.launcher.port=7532 
"-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 
12.1\bin" -Dfile.encoding=UTF-8 -classpath 
"C:\maven\boot\plexus-classworlds-2.5.1.jar;C:\Program Files 
(x86)\JetBrains\IntelliJ IDEA 12.1\lib\idea_rt.jar" 
com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher 
--fail-fast --strict-checksums 
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-5:sshexec -P dev,local
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myproject-distr 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- wagon-maven-plugin:1.0-beta-5:sshexec (default-cli) @ myproject 
-distr ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.674s
[INFO] Finished at: Mon Mar 17 09:47:41 YEKT 2014
[INFO] Final Memory: 5M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-5:sshexec (default-cli) on 
project myproject -distr: The parameters 'commands' for goal 
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-5:sshexec are missing or invalid 
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException

Process finished with exit code 1

Myproject-distr.pom is here:

<build>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>1.0</version>
            </extension>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh-external</artifactId>
                <version>2.6</version>
            </extension>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav</artifactId>
                <version>1.0-beta-2</version>
            </extension>
        </extensions>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <archiverConfig>
                        <compress>false</compress>
                    </archiverConfig>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>wagon-maven-plugin</artifactId>
              <version>1.0-beta-5</version>
                <configuration>
                    
<fromFile>${project.build.directory}/${project.build.finalName}-bundle.zip</fromFile>
                    <url>${my.deployUrl}</url>
                    
<toFile>${my.deployDir}-temp/${project.build.finalName}-bundle.zip</toFile>
                    <serverId>${my.deployHost}</serverId>
                </configuration>
                <executions>
                    <execution>
                        <id>execute-commands</id>
                        <goals>
                            <goal>sshexec</goal>
                        </goals>
                        <configuration>
                            <serverId>${my.deployHost}</serverId>
                            
<url>scp://${my.oozieUser@${my.deployHost}:${my.deployDir}-temp</url>
                            <commands>
                                <command>rm -rf ${my.deployDir}</command>
                            </commands>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Mvn –version:
Apache Maven 3.1.1
Maven home: C:\maven
Java version: 1.6.0_45 Vendor: Sun Microsystems Inc
Default local: ru_RU, platform encoding: cp1251
OS name: windows 8, version: 6.2, arch: amd64, family: windows.
We are using maven-compiler-plugin 2.5.1 and maven-assembly-plugin 2.2-beta-5.

I’m almost sure it’s something silly ☺, but still I cannot figure out what to 
do. Please help.

Thanks in advance,
Katya.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

<<inline: image7416fc.PNG>>

Reply via email to