trajano / wagon-git

Git wagon provider
Eclipse Public License 1.0
8 stars 10 forks source link

Plugin fails with "Host key verification failed" #23

Open arashp opened 5 years ago

arashp commented 5 years ago

I used the below pom file and already put user/pass for bitbucket in settings.xml but wagon plugin still gives error and can not push the jar to bitbucket repository:

<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">

4.0.0
<groupId>CommonApi</groupId>
<artifactId>CommonApi</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ArashApi</name>
<build>
    <extensions>
        <extension>
            <groupId>ar.com.synergian</groupId>
            <artifactId>wagon-git</artifactId>
            <version>0.2.5</version><!-- you might need to check for a new version -->
        </extension>
    </extensions>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.5.1</version>
            <configuration>
                <source />
                <target />
            </configuration>
        </plugin>
    </plugins>
</build>
<repositories>

    <repository>
                    <id>maven-repo</id>
                    <name>Your Repo Name</name>
                    <releases>
                            <enabled>true</enabled>
                    </releases>
                    <snapshots>
                            <enabled>false</enabled>
                    </snapshots>

                    <url>https://api.bitbucket.org/1.0/repositories/<username>/maven-repository/raw/master</url>
            </repository>
</repositories>
<distributionManagement>
 <repository>
   <id>maven-repo</id>
   <name>maven-repo</name>
      <url>git:releases://git@bitbucket.org:<username>/maven-repository.git</url>
  </repository>
</distributionManagement>
synergian-repo https://raw.github.com/synergian/wagon-git/releases