kevinpollet/maven-github-plugin — Issue #15: maven-github-plugin:list is failing
Author: acoppes
Created: 2011-11-26 03:42:15+00:00
State: open

Calling mvn com.github.maven.plugin:maven-github-plugin:list is faling. Since delete is using list, it is failing too and upload using autodelete is failing as well.

I believe it could be related with some of Github interface changes since the plugin parses the html page.

References: https://github.com/blog/958-the-code-tab

I tested it only over my project animation4j, but cant say if this happens for everyone, the error:

[INFO] Uploading [artifactName=animation4j-examples-runnable.jar, description=Latest runnable jar with examples of animation4j
library, override=true] to https://github.com/gemserk/animation4j
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] For input string: "downloads"
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NumberFormatException: For input string: "downloads"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at com.github.maven.plugin.client.impl.GithubClientImpl.retrieveDownloadsInfos(GithubClientImpl.java:257)
at com.github.maven.plugin.client.impl.GithubClientImpl.delete(GithubClientImpl.java:168)
at com.github.maven.plugin.client.impl.GithubClientImpl.replace(GithubClientImpl.java:153)
at com.github.maven.plugin.DeployGithubRepositoryArtifactMojo.uploadArtifacts(DeployGithubRepositoryArtifactMojo.java:179)
at com.github.maven.plugin.DeployGithubRepositoryArtifactMojo.execute(DeployGithubRepositoryArtifactMojo.java:135)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)