mschonaker / wagon-git

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

Error when deploying jars to bitbucket #41

Open jigneshkhatri opened 8 years ago

jigneshkhatri commented 8 years ago

I am getting following error when I deploy to bitbucket : [WARNING] Error injecting: ar.com.synergian.wagongit.GitWagon java.lang.NoClassDefFoundError: org/apache/maven/scm/log/ScmLogger

I checked out that ScmLogger is there in the build path of my project but than also it is generating ClassNotFountException.

jigneshkhatri commented 8 years ago

Here is detailed error:

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.493 s [INFO] Finished at: 2016-07-27T08:22:00+05:30 [INFO] Final Memory: 19M/139M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project helloMaven: Execution default-deploy of goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy failed: A required class was missing while executing org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy: org/apache/maven/scm/log/ScmLogger [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/Jigs/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.jar [ERROR] urls[1] = file:/C:/Users/Jigs/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[2] = file:/C:/Users/Jigs/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[project>org.bitbucket.k3jignesh:helloMaven:0.0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]] [ERROR] [ERROR] -----------------------------------------------------: org.apache.maven.scm.log.ScmLogger [ERROR] -> [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/PluginContainerException

astik commented 7 years ago

I just plug the wagon-git plugin in my project and it works like a charm: deploy jar + source + javadoc on bitbucket private repo.

Here are my workstation environment:

mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"

with

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
    </plugin>

and

    <extensions>
        <extension>
            <groupId>ar.com.synergian</groupId>
            <artifactId>wagon-git</artifactId>
            <version>0.2.5</version>
        </extension>
    </extensions>

Maybe, try to update your deploy plugin.