[ https://issues.apache.org/jira/browse/TEXT-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16142748#comment-16142748 ]
Pascal Schumacher commented on TEXT-70: --------------------------------------- The findbugs failure can be fixed by upgrading the findbugs-maven-plugin to 3.0.5, but the build is still not successful, because the maven-site-plugin (version 3.6) seems not to be java 9 compatible. > Build failure with java 9-ea+159 > -------------------------------- > > Key: TEXT-70 > URL: https://issues.apache.org/jira/browse/TEXT-70 > Project: Commons Text > Issue Type: Bug > Affects Versions: 1.0-beta-1 > Environment: $ mvn -X > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; > 2015-11-10T11:41:47-05:00) > Maven home: /usr/local/Cellar/maven/3.3.9/libexec > Java version: 9-ea, vendor: Oracle Corporation > Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home > Default locale: en_US, platform encoding: UTF-8 > OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac" > Reporter: Rob Tompkins > Fix For: 1.x > > > {{mvn -X clean site}} fails with the following error trace (noting that this > feels more like a bug with the maven-site-plugin than with our > code...regardless it's worth logging): > {code} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-site-plugin:3.6:site (default-site) on project > commons-text: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.6:site failed: Unable to make > private java.io.File(java.lang.String,java.io.File) accessible: module > java.base does not "opens java.io" to unnamed module @47313e46 -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-site-plugin:3.6:site (default-site) on > project commons-text: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.6:site failed: Unable to make > private java.io.File(java.lang.String,java.io.File) accessible: module > java.base does not "opens java.io" to unnamed module @47313e46 > 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:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:547) > 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.PluginExecutionException: Execution > default-site of goal org.apache.maven.plugins:maven-site-plugin:3.6:site > failed: Unable to make private java.io.File(java.lang.String,java.io.File) > accessible: module java.base does not "opens java.io" to unnamed module > @47313e46 > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) > ... 20 more > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make > private java.io.File(java.lang.String,java.io.File) accessible: module > java.base does not "opens java.io" to unnamed module @47313e46 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:335) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:278) > at > java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:191) > at > java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:184) > at > org.codehaus.groovy.reflection.CachedConstructor.<init>(CachedConstructor.java:32) > at > org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:233) > at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:115) > at > groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:102) > at > groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:92) > at > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getGlobalMetaClass(MetaClassRegistryImpl.java:251) > at > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.access$100(MetaClassRegistryImpl.java:45) > at > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$LocallyKnownClasses.getFromGlobal(MetaClassRegistryImpl.java:111) > at > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$LocallyKnownClasses.getMetaClass(MetaClassRegistryImpl.java:87) > at > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$MyThreadLocal.getMetaClass(MetaClassRegistryImpl.java:360) > at > org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:264) > at > org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:737) > at > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:726) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198) > at > org.codehaus.mojo.findbugs.FindBugsMojo.canGenerateReport(FindBugsMojo.groovy:523) > at > org.apache.maven.reporting.exec.MavenReportExecution.canGenerateReport(MavenReportExecution.java:89) > at > org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:267) > at > org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:115) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > ... 21 more{code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)