Hi, i'm using the rpm plugin 2.0.1 with the wagon plugin. everything works great, including scp to the remote yum server.
i only need to run a remote command on the remote server i'm SCP'ing to. (the equivalent bash command: ssh yum.remote.com "cd /target/dir;make") is it possible via the wagon plugin? <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>wagon-maven-plugin</artifactId> <version>1.0-beta-3</version> <executions> <execution> <id>rpm</id> <phase>deploy</phase> <goals> <goal>upload</goal> </goals> <configuration> <fromDir>target/rpm/${artifactId}/RPMS/${os.arch}</fromDir> <includes>*.rpm</includes> <url>scp://yum.server.com</url> <toDir>/ctcfgroot/ctstable/src/${os.arch}/${artifactId}</toDir> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> <extensions>false</extensions> <executions> <execution> <goals> <goal>rpm</goal> </goals> </execution> </executions> <configuration> <copyright>${project.organization.name}</copyright> <distribution>XXXX</distribution> <group>Commons/Log</group> <packager>${user.name}</packager> <name>${project.name}</name> <summary>${project.description}</summary> <needarch>true</needarch> <dependency/> <requires> <require>jre</require> </requires> <mappings> <mapping> <directory>/usr/lib/ctch/java/commons</directory> <filemode>750</filemode> <username>root</username> <groupname>root</groupname> <dependency> <includes> <include>log4j:log4j:1.2.14</include> <include>javax.mail:mail</include> <include>javax.activation:activation</include> </includes> <excludes> <exclude>junit:junit</exclude> </excludes> </dependency> </mapping> <mapping> <directory>/etc/ctch/LogUtil</directory> <filemode>750</filemode> <username>root</username> <groupname>root</groupname> <sources> <source> <location>src/main/resources/log4j.properties</location> </source> </sources> </mapping> </mappings> <preinstallScriptlet> <script>echo "installing ${artifactId} on arch ${os.arch}"</script> </preinstallScriptlet> </configuration> </plugin> </plugins> </build> -- Eyal Edri