-
Notifications
You must be signed in to change notification settings - Fork 123
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
Unable to parse timestamp "1451264796995": Unparseable date: "1451264796995" #90
Comments
I think this feature is not documented as well as it should. The plugin tries to fetch build timestamp information from maven and by default it uses the property Your case seems to be that you are using non default build timestamp format, which causes the plugin to fail. Your timestamp looks like epoch millis. The plugin can use custom timestamp format, but it must be in format supported by Are you using some custom plugin or filtering to change the build timestamp? As far as I know, Maven uses also Created also a new issue to support epoch timestamps: #91 |
I am also having this issue. Was a solution found to this issue? |
@dtracers there is new feature that allows you to configure the plugin to use epoch timestamps for build time. Set This feature is not yet in a release version, but it would be great that someone with this issue could verify it works. You can use the |
@trautonen It works. I got the same issue:
Solved with this configuration: <plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.2.0-SNAPSHOT</version>
<configuration>
<timestampFormat>EpochMillis</timestampFormat>
</configuration>
</plugin> Successfully published here: |
Hello.
Perhaps it's just me, I'm trying the plugin for the first time, but I get the error in the subject. The stack dump is:
[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.1.0:report (default-cli) on project solidblue2: Processing of input or output data failed: Unable to parse timestamp "1451264796995": Unparseable date: "1451264796995" -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.1.0:report (default-cli) on project solidblue2: Processing of input or output data failed
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Processing of input or output data failed
at org.eluder.coveralls.maven.plugin.CoverallsReportMojo.execute(CoverallsReportMojo.java:247)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: org.eluder.coveralls.maven.plugin.ProcessingException: Unable to parse timestamp "1451264796995"
at org.eluder.coveralls.maven.plugin.util.TimestampParser.parse(TimestampParser.java:62)
at org.eluder.coveralls.maven.plugin.CoverallsReportMojo.createJob(CoverallsReportMojo.java:312)
at org.eluder.coveralls.maven.plugin.CoverallsReportMojo.execute(CoverallsReportMojo.java:228)
... 21 more
Caused by: java.text.ParseException: Unparseable date: "1451264796995"
at java.text.DateFormat.parse(DateFormat.java:366)
at org.eluder.coveralls.maven.plugin.util.TimestampParser.parse(TimestampParser.java:60)
... 23 more
And the command line I'm trying to do is:
mvn -clean install jacoco:report coveralls:report -Pit.tidalwave-metrics-v2
(the specified profile activates jacoco as needed).
I suppose I'd get some authentication error with Coverall, but it seems that something fails earlier.
It can be reproduced with a tiny project of mine at GitHub:
github.com:tidalwave-it/solidblue2-src.git
in the branch named 'fabrizio.giudici'.
The text was updated successfully, but these errors were encountered: