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

Add timestamp #84

Merged
merged 2 commits into from Apr 15, 2024
Merged

Add timestamp #84

merged 2 commits into from Apr 15, 2024

Conversation

delanym
Copy link
Contributor

@delanym delanym commented Apr 15, 2024

I suspect this replicates the issue, but I could not run the tests as I get

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.898 s <<< FAILURE! -- in org.apache.maven.plugins.jar.JarMojoTest
[ERROR] org.apache.maven.plugins.jar.JarMojoTest.testJarTestEnvironment(JarMojo) -- Time elapsed: 0.893 s <<< ERROR!
org.junit.jupiter.api.extension.ParameterResolutionException: Failed to resolve parameter [org.apache.maven.plugins.jar.JarMojo arg0] in method [void org.apache.maven.plugins.jar.JarMojoTest.testJarTestEnvironment(org.apache.maven.plugins.jar.JarMojo
)]      
        at java.util.ArrayList.forEach(ArrayList.java:1259)                                                                  
        at java.util.ArrayList.forEach(ArrayList.java:1259)                                                                  
Caused by: java.lang.ExceptionInInitializerError                                                                                                                                                                                                          
        at org.eclipse.sisu.inject.Sources.getAnnotation(Sources.java:123)
        at org.eclipse.sisu.inject.InjectorBindings.getWildcardBindings(InjectorBindings.java:279)
        at org.eclipse.sisu.inject.InjectorBindings.publishWildcardMatches(InjectorBindings.java:257)
        at org.eclipse.sisu.inject.InjectorBindings.subscribe(InjectorBindings.java:134)
        at org.eclipse.sisu.inject.RankedBindings$Itr.hasNext(RankedBindings.java:154)
        at org.eclipse.sisu.inject.LocatedBeans$Itr.hasNext(LocatedBeans.java:102)
        at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:131)
        at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:76)
        at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76)
        at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:56)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:264)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:256)
        at org.codehaus.plexus.testing.PlexusExtension.lookup(PlexusExtension.java:271)
        at org.apache.maven.plugin.testing.junit5.MojoExtension.lookupMojo(MojoExtension.java:256)
        at org.apache.maven.plugin.testing.junit5.MojoExtension.lookupMojo(MojoExtension.java:233)
        at org.apache.maven.plugin.testing.junit5.MojoExtension.resolveParameter(MojoExtension.java:125)
        ... 2 more
Caused by: java.lang.SecurityException: class "javax.annotation.Priority"'s signer information does not match signer information of other classes in the same package
        at java.lang.ClassLoader.checkCerts(ClassLoader.java:891)
        at java.lang.ClassLoader.preDefineClass(ClassLoader.java:661)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:754)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at org.eclipse.sisu.inject.Implementations.<clinit>(Implementations.java:56)
        ... 18 more

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MJAR-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MJAR-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean verify).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@slawekjaranowski
Copy link
Member

@delanym - build pass 😄

@slawekjaranowski
Copy link
Member

Thanks

@slawekjaranowski slawekjaranowski merged commit 3849d68 into apache:MJAR-307 Apr 15, 2024
1 of 2 checks passed
slawekjaranowski added a commit that referenced this pull request Apr 16, 2024
…ons.io.file.attribute.FileTimes (#83)

* ITs for MJAR-307 - try to reproduce

* Add timestamp (#84)

* Add timestamp

* Add timestamp format

---------

Co-authored-by: Delany <delany.middleton@traderoot.com>

* Fix a bug

---------

Co-authored-by: Delany <delanym@users.noreply.github.com>
Co-authored-by: Delany <delany.middleton@traderoot.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants