Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute goal com.github.github:downloads-maven-plugin:0.6:upload #3

Open
Serverfrog opened this issue Apr 15, 2014 · 7 comments

Comments

@Serverfrog
Copy link

I got a Error where i dont find the reason.

--- downloads-maven-plugin:0.6:upload (default) @ FrogPw ---
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 7.687s
Finished at: Tue Apr 15 16:44:36 CEST 2014
Final Memory: 21M/102M
------------------------------------------------------------------------
Failed to execute goal com.github.github:downloads-maven-plugin:0.6:upload (default) on project FrogPw: Listing downloads failed: Parse exception converting JSON to object: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 20 -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

here is the pom.xml https://github.com/Serverfrog/FrogPw/blob/master/pom.xml

@vkozubal
Copy link

Have you solved this ?. I've faced with the same issue.

@timp
Copy link

timp commented Jul 19, 2015

 An API incompatibility was encountered while executing 
com.github.github:downloads-maven-plugin:0.6:upload: java.lang.NoSuchMethodError:
 org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;

This on ubuntu using Oracle Java8:

$  mvn -version 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=48m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T12:57:37+01:00)
Maven home: /usr/local/maven
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-57-generic", arch: "amd64", family: "unix"

It would be nice if this was an easy fix as this is useful functionality.

cheers
Tim

@eddo888
Copy link

eddo888 commented Oct 28, 2015

Hi, I am having similar difficulties;

[ERROR] Failed to execute goal com.github.github:downloads-maven-plugin:0.6:upload (default) on project github-maven-example: Execution default of goal com.github.github:downloads-maven-plugin:0.6:upload failed: An API incompatibility was encountered while executing com.github.github:downloads-maven-plugin:0.6:upload: java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;

$ mvn --version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T21:57:37+10:00)
Maven home: /Users/davidedson/Documents/Applications/apache-maven-3.3.3
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"

@gabrianoo
Copy link

The error is simply in the maven version you are using to build the project:
Checking the maven docs
maven 3.0 public org.sonatype.aether.RepositorySystemSession getRepositorySession()
maven 3.1.0 public org.eclipse.aether.RepositorySystemSession getRepositorySession()
This issue cause is from downloads-maven-plugin the latest version is 0.6 and it is using github-maven-core version 0.5 not the latest 0.12
Ah and forget to mention :-) github/maven-plugins#41

@eddo888
Copy link

eddo888 commented Dec 20, 2015

Kewl,

Thanks for responding,

Have a very merry Christmas !

Yours Cheerfully,
David Edson.
+61 423 885 341
[email protected] mailto:[email protected]

Linked In. :
http://au.linkedin.com/pub/david-edson/1/195/192 http://au.linkedin.com/pub/david-edson/1/195/192

On 21 Dec 2015, at 12:17 am, Ahmed Hassanien [email protected] wrote:

The error is simply in the maven version you are using to build the project:
Checking the maven docs
maven 3.0 http://maven.apache.org/ref/3.0/maven-core/apidocs/org/apache/maven/execution/MavenSession.html#getRepositorySession() public org.sonatype.aether.RepositorySystemSession getRepositorySession()
maven 3.1.0 http://maven.apache.org/ref/3.1.0/maven-core/apidocs/org/apache/maven/execution/MavenSession.html#getRepositorySession() public org.eclipse.aether.RepositorySystemSession getRepositorySession()
This issue cause is from downloads-maven-plugin the latest version is 0.6 and it is using github-maven-core version 0.5 not the latest 0.12


Reply to this email directly or view it on GitHub #3 (comment).

@nirajraja
Copy link

nirajraja commented Sep 12, 2016

What is the solution to this issue?
I am new to maven so I am not sure what are the steps involved in fixing this issue.

Thanks
-Niraj

@atatlisu
Copy link

so what is the solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants