mschonaker / wagon-git

Git Wagon for Apache Maven
http://synergian.github.io/wagon-git/
83 stars 31 forks source link

Can't pull projects #14

Closed lucatampellini closed 10 years ago

lucatampellini commented 10 years ago

Hi, i'm trying to use your plugin to upload a JSF project, developed with Eclipse, on a Bitbucket repository. Sadly i'm receiving this error: "Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project pokerLiveMaps-dataModel: Failed to deploy artifacts: Could not transfer artifact it.katuiros:pokerLiveMaps-dataModel:jar:0.0.1 from/to Katuiros-bitbucket (git:releases://git@bitbucket.org:Katuiros/plm.git): Unable to pull git repository: git init failed"

The repository is private, but i configured the .m2/settings.xml correctly as you said with username and password for the id "Katuiros-bitbucket".

This is the piece of pom.xml code in which i configured the plugin:

" [...]

<!-- More Project Information -->
<name>${project.artifactId}</name>
<distributionManagement>
    <repository>
        <id>Katuiros-bitbucket</id>
        <name>plm</name>
        <url>git:releases://git@bitbucket.org:Katuiros/plm.git</url>
    </repository>
</distributionManagement>

  <build>
   [...]
   <!-- Wagon Git plugin -->
    <extensions>
        <extension>
            <groupId>ar.com.synergian</groupId>
            <artifactId>wagon-git</artifactId>
            <version>0.2.0</version>
        </extension>
    </extensions>
    </build>

<!-- Environment Settings -->
<repositories>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>synergian-repo</id>
        <url>https://raw.github.com/synergian/wagon-git/releases</url>
    </pluginRepository>
</pluginRepositories>

[...] "

mschonaker commented 10 years ago

Can we have the full output of the command but activating the switch -Dwagon.git.debug=true (please check http://synergian.github.io/wagon-git/troubleshooting.html).

Kind regards.

lucatampellini commented 10 years ago

Hi, i managed to solve the problem: actually i had not configured git on my computer, and that's why the plugin couldn't work. Thank you anyway