You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (Jira)" <ji...@apache.org> on 2019/12/08 11:34:00 UTC

[jira] [Closed] (MDEPLOY-257) SSH Permission denied

     [ https://issues.apache.org/jira/browse/MDEPLOY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise closed MDEPLOY-257.
---------------------------------------
    Resolution: Cannot Reproduce

Unfortunately no feedback.

> SSH Permission denied
> ---------------------
>
>                 Key: MDEPLOY-257
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-257
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy
>    Affects Versions: 3.0.0-M1
>         Environment: OS: Windows 10 Pro
> IDE: IntelliJ IDEA 2018.1.16 Community
>            Reporter: Andre Santos
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>
> When running maven goal `deploy`, the plugin fails with error
> {code:java}
> [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]
> {code}
>  
> 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:
>  
> {code:java}
> <?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>{code}
>  
>  
> And my settings.xml file:
> {noformat}
> <?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>{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)