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

Missing META-INF/exposed.stapler-beans when building Mailer plugin with Java 11

    Details

    • Similar Issues:

      Description

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project mailer: Compilation failure: Compilation failure: [ERROR] java.nio.file.NoSuchFileException: /Users/nenashev/Documents/jenkins/plugins/mailer-plugin/target/classes/META-INF/exposed.stapler-beans [ERROR]   at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) [ERROR]   at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) [ERROR]   at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) [ERROR]   at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:215) [ERROR]   at java.base/java.nio.file.Files.newByteChannel(Files.java:370) [ERROR]   at java.base/java.nio.file.Files.newByteChannel(Files.java:421) [ERROR]   at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420) [ERROR]   at java.base/java.nio.file.Files.newInputStream(Files.java:155) [ERROR]   at jdk.compiler/com.sun.tools.javac.file.PathFileObject.openInputStream(PathFileObject.java:456) [ERROR]   at java.compiler@11.0.1/javax.tools.ForwardingFileObject.openInputStream(ForwardingFileObject.java:74) [ERROR]   at org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor.scanExisting(ExportedBeanAnnotationProcessor.java:142) [ERROR]   at org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor.process(ExportedBeanAnnotationProcessor.java:61) [ERROR]   at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:972) [ERROR]   at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:888) [ERROR]   at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1214) [ERROR]   at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1326) [ERROR]   at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258) [ERROR]   at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936) [ERROR]   at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104) [ERROR]   at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147) [ERROR]   at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100) [ERROR]   at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94) [ERROR]   at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126) [ERROR]   at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174) [ERROR]   at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1129) [ERROR]   at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:188) [ERROR]   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) [ERROR]   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) [ERROR]   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) [ERROR]   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) [ERROR]   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) [ERROR]   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) [ERROR]   at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) [ERROR]   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) [ERROR]   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) [ERROR]   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) [ERROR]   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) [ERROR]   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956) [ERROR]   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) [ERROR]   at org.apache.maven.cli.MavenCli.main(MavenCli.java:192) [ERROR]   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR]   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [ERROR]   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR]   at java.base/java.lang.reflect.Method.invoke(Method.java:566) [ERROR]   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) [ERROR]   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) [ERROR]   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) [ERROR]   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Likely an update of https://github.com/stapler/maven-stapler-plugin is needed

          Show
          oleg_nenashev Oleg Nenashev added a comment - Likely an update of https://github.com/stapler/maven-stapler-plugin  is needed
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Not a defect, plugin configuration issue. I have updated developer guidelines to reflect it

          Show
          oleg_nenashev Oleg Nenashev added a comment - Not a defect, plugin configuration issue. I have updated developer guidelines to reflect it

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: