Hi Greg, Thanks for your prompt answer. Variables are for sure defined. Missing of the end ‘}’ is just a copy-past mistake – in code everything is correct.
At the moment I have gone down to the version of Maven 3.0.5, so our old plugin for ssh-exec (com.github.goldin) is back to work – all commands are executing for it. The developing of goldin plugin seems to be finished, so would be wise to switch to another one, more “alive”. That’s why I would like to find out what is wrong here: my hands or something with wagon-maven-plugin:1.0-beta-5:sshexec ☺. Is anyone successfully using wagon-maven-plugin:sshexec for executing commands on another computer via ssh? Katya From: Greg Bishop [mailto:greg_bis...@wgresorts.com] Sent: Tuesday, March 18, 2014 9:15 PM To: user@mojo.codehaus.org Cc: Добряк Дмитрий Subject: [mojo-user] RE: Problems with wagon:sshexec 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:image002.jpg@01CF4355.3DD823D0] 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<mailto: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: image002.jpg>>