Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-257

SSH Permission denied

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-M1
    • Fix Version/s: waiting-for-feedback
    • Component/s: deploy:deploy
    • Labels:
      None
    • Environment:
      OS: Windows 10 Pro
      IDE: IntelliJ IDEA 2018.1.16 Community

      Description

      When running maven goal `deploy`, the plugin fails with error

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project dragonfly-raspberyclient: Failed to retrieve remote metadata com.dragonfly:dragonfly-raspberyclient:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.dragonfly:dragonfly-raspberyclient:1.0-SNAPSHOT/maven-metadata.xml from/to ssh-repository (scpexe://192.168.1.3/~): Exit code: 1 - pi@192.168.1.3: Permission denied (publickey,password). -> [Help 1]
      

       

      The host is not the problem as I am able to access it through the terminal. This only happens with the plugin. The password has been set in my settings.xml file.

      This is my 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">
      <modelVersion>4.0.0</modelVersion>
      
      <groupId>com.dragonfly</groupId>
      <artifactId>dragonfly-raspberyclient</artifactId>
      <version>1.0-SNAPSHOT</version>
      
      <properties>
      <pi.deployPath>~/Dragonfly</pi.deployPath>
      <pi.host>192.168.1.3</pi.host>
      <pi.user>pi</pi.user>
      <pi.password>raspberry</pi.password>
      </properties>
      
      <distributionManagement>
      <repository>
      <id>ssh-repository</id>
      <url>scpexe://192.168.1.3/~</url>
      </repository>
      </distributionManagement>
      
      <build>
      <extensions>
      <!-- Enabling the use of SSH -->
      <extension>
      <groupId>org.apache.maven.wagon</groupId>
      <artifactId>wagon-ssh-external</artifactId>
      <version>1.0-beta-6</version>
      </extension>
      </extensions>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <version>2.6</version>
      <configuration>
      <archive>
      <manifest>
      <addClasspath>true</addClasspath>
      <classpathPrefix>lib/</classpathPrefix>
      <mainClass>Main</mainClass>
      </manifest>
      </archive>
      </configuration>
      </plugin>
      </plugins>
      </build>
      
      <dependencies>
      <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin -->
      <dependency>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-shade-plugin</artifactId>
      <version>3.2.1</version>
      </dependency>
      
      <dependency>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-deploy-plugin</artifactId>
      <version>3.0.0-M1</version>
      <type>maven-plugin</type>
      </dependency>
      
      <!-- https://mvnrepository.com/artifact/com.pi4j/pi4j-core -->
      <dependency>
      <groupId>com.pi4j</groupId>
      <artifactId>pi4j-core</artifactId>
      <version>0.0.5</version>
      </dependency>
      
      </dependencies>
      
      </project>

       

       

      And my settings.xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <servers>
      <server>
      <id>ssh-repository</id>
      <username>pi</username>
      <password>raspberry</password>
      </server>
      </servers>
      </settings>

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andrfgs Andre Santos
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: