Code Snippet

Just another Code Snippet site

[Maven] Execute SSH Bash command

	<!-- Run remote command (deploy nohup) -->
	<plugin>
		<groupId>com.github.goldin</groupId>
		<artifactId>sshexec-maven-plugin</artifactId>
		<version>0.2.5</version>
		<executions>
			<execution>
				<id>update-app</id>
				<phase>install</phase>
				<goals>
					<goal>sshexec</goal>
				</goals>
				<configuration>
					<location>scp://${deploy.user}:${deploy.password}@${deploy.host}:${deploy.script.path}</location>
					<command>./deployApp.sh</command>
				</configuration>
			</execution>
		</executions>
	</plugin>

sshexec-maven-plugin

, ,


Leave a Reply

Your email address will not be published. Required fields are marked *