Open iBouce opened 6 years ago
You need to make sure that scp is available on your PATH.
Here's a pro tip I learned recently.
If you've got Git Bash installed (you'll know that you do if you can see these options when you right click in any directory ) then you've already got SCP on your computer.
It's located at C:\Program Files\Git\usr\bin
so just add that to your path, and you should be good to go.
when Executing --> mvn exec:exec@deploy-app
""" Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (deploy-app) on project Maven-Example: Command execution failed.: Cannot run program "scp" (in directory "C:\Users\iBouce\IdeaProjects\Maven_Demo"): CreateProcess error=2, The specified file can not be found -> [Help 1] """
Output : [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for jetbrains:Maven-Example:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-compiler-plugin @ line 234, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ----------------------< jetbrains:Maven-Example >----------------------- [INFO] Building Maven-Example 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- exec-maven-plugin:1.4.0:exec (deploy-app) @ Maven-Example --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.169 s [INFO] Finished at: 2018-04-20T14:59:11+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (deploy-app) on project Maven-Example: Command execution failed.: Cannot run program "scp" (in directory "C:\Users\iBouce\IdeaProjects\Maven_Demo"): CreateProcess error=2, The specified file can not be found -> [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/MojoExecutionException
POM File : <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">