Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52024

Can't compile/test under Java 10/11 with mvn

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Sample error from workflow-support-plugin:

      [ERROR] java.nio.file.NoSuchFileException:$GIT_REPO/target/classes/META-INF/annotations/hudson.Extension

      (Where $GIT_REPO is the actual folder holding the code). 

        Attachments

          Issue Links

            Activity

            Hide
            svanoort Sam Van Oort added a comment -

            Annotations folder is indeed empty.   

            I wonder if we might be seeing some flavor of https://issues.apache.org/jira/browse/MCOMPILER-310

            Show
            svanoort Sam Van Oort added a comment - Annotations folder is indeed empty.    I wonder if we might be seeing some flavor of  https://issues.apache.org/jira/browse/MCOMPILER-310
            Hide
            svanoort Sam Van Oort added a comment -

            Per this issue https://github.com/mapstruct/mapstruct/issues/1382 we tried using:  MAVEN_OPTS="--add-modules java.xml.ws.annotation"  to support annotations...

            and it still failed. 

            Show
            svanoort Sam Van Oort added a comment - Per this issue https://github.com/mapstruct/mapstruct/issues/1382  we tried using:  MAVEN_OPTS="--add-modules java.xml.ws.annotation"  to support annotations... and it still failed. 
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I updated to the latest Maven Compiler just in case, no luck

            Show
            oleg_nenashev Oleg Nenashev added a comment - I updated to the latest Maven Compiler just in case, no luck
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            There are org.kohsuke.accmod.Restricted org.kohsuke.stapler.export.ExportedBean in the annotations directory tho. Kinda moving forward

            Show
            oleg_nenashev Oleg Nenashev added a comment - There are org.kohsuke.accmod.Restricted org.kohsuke.stapler.export.ExportedBean in the annotations directory tho. Kinda moving forward
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            sezpoz update in the core resolves the issue, but you always have to run with newer Jenkins Core dependency to get it running

            Show
            oleg_nenashev Oleg Nenashev added a comment - sezpoz update in the core resolves the issue, but you always have to run with newer Jenkins Core dependency to get it running
            Hide
            svanoort Sam Van Oort added a comment -

            Oleg Nenashev I swear I had this working after the PRs attached...

            Show
            svanoort Sam Van Oort added a comment - Oleg Nenashev I swear I had this working after the PRs attached...
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Sam Van Oort I actually compile on Java 11 so my mileage may vary (spoiler: it hurts)

            Show
            oleg_nenashev Oleg Nenashev added a comment - Sam Van Oort I actually compile on Java 11 so my mileage may vary (spoiler: it hurts)
            Hide
            danielbeck Daniel Beck added a comment -

            Addressed in 2.143.

            Show
            danielbeck Daniel Beck added a comment - Addressed in 2.143.

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                svanoort Sam Van Oort
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: