Configuration is incorrect for JDK ^9
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>9</release>
</configuration>
</plugin>
Chris Luff | Associate Principal Engineer | UK Development - Care Insight and
Delivery Dev | [email protected]<mailto:[email protected]> | +44
(0)7970 735175 | Cerner Limited<http://www.cerner.com/>
On 10 Oct 2019, at 07:35, Peter Cheung
<[email protected]<mailto:[email protected]>> wrote:
I was creating the project using Netbeans 11.1
Thanks
From Peter
________________________________
From: Eric Barboni <[email protected]<mailto:[email protected]>>
Sent: Tuesday, October 8, 2019 12:25 AM
To: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
Subject: RE: maven-compiler-plugin problem
Hi,
Not sure what to do.
Peter what was your path of creating your project, you just use NetBeans
or use a webpage somewhere as starting point ?
Maybe redirect from mojohaus website can be set now that we have website for
nbmplugin.
New website, as well as the old one are Generated by maven but as not
specific JIRA it would catch all changelog for NetBeans useless.
There is also a relocation mechanism in maven to make clear the change of
groupid.
Maybe we should improve NetBeans itself to detect latest version of the
plugin.
Best Regards
Eric
-----Message d'origine-----
De : Peter Cheung <[email protected]<mailto:[email protected]>>
Envoyé : lundi 7 octobre 2019 15:48
À : [email protected]<mailto:[email protected]>
Objet : Re: maven-compiler-plugin problem
Dear Gj
Sorry i am too newbie, i don't know. Hope Eric can answer.
Thanks
From Peter
________________________________
From: Geertjan Wielenga <[email protected]<mailto:[email protected]>>
Sent: Monday, October 7, 2019 4:54 PM
To: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
Subject: Re: maven-compiler-plugin problem
Where can we clearly document this on
netbeans.apache.org<http://netbeans.apache.org>?
Gj
On Mon, 7 Oct 2019 at 10:49, Eric Barboni
<[email protected]<mailto:[email protected]>> wrote:
Hi,
You should change the group,artifact,version to match the new plugin.
Donation has been completed since a while, and a release occurs in june.
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>4.2</version>
Regards
Eric
-----Message d'origine-----
De : Peter Cheung <[email protected]<mailto:[email protected]>> Envoyé
: dimanche 6 octobre
2019 05:17 À : [email protected]<mailto:[email protected]> Objet :
Re:
maven-compiler-plugin problem
Thank you very much Robert
________________________________
From: Robert Scholte <[email protected]<mailto:[email protected]>>
Sent: Saturday, October 5, 2019 11:29 PM
To: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
Subject: Re: maven-compiler-plugin problem
Based on the message and the stacktrace it is actually a problem with
the
org.codehaus.mojo:nbm-maven-plugin:4.1 plugin.
It is using a version of ASM that doesn't understand the
bytecodeversion of Java 9.
https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mojohaus.org%2Fplugins.html%23&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=pwUe68yeLCom42X50O5X0Tvy4%2Baa7rxL2ClKgl9Abcw%3D&reserved=0
shows you the plugins has been
moved to
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbits.netbeans.org%2Fmavenutilities%2Fnbm-maven-plugin%2F&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=JjRrOk5Hfyh66b%2FfZ7l%2B9pS3lP7nRPxuVe3NsVk%2Fz7U%3D&reserved=0
From here the documentation is a little bit tricky, but you can look
for the manifest goal.
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbits.netbeans.org%2Fmavenutilities%2Fnbm-maven-plugin%2Fmanifest-mojo&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=%2ByEfubAhhxwftyDyiwQ4SJDSc8vSdPLryaYzhkB%2BE30%3D&reserved=0
.html
Here you see that they changes the groupId to
org.apache.netbeans.utilities
Hopefully version 4.2 will fix it, otherwise
https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fnetbeans-mavenutils-nbm-maven-plugin&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=xeWgU4g6YtYGzsnP34kB171Sid%2Fx%2FtKmiKiEkNj0Sis%3D&reserved=0
describes how to report a bug/improvement.
thanks,
Robert
On Sat, 05 Oct 2019 14:18:32 +0200, Peter Cheung
<[email protected]<mailto:[email protected]>>
wrote:
Hi
I have a maven library which is used by a maven netbeans module
project.
This is ok:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
But if change to 1.9. It has exception when building the netbeans
module
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.9</source>
<target>1.9</target>
</configuration>
</plugin>
Error:
[INFO]
--------------------------------------------------------------------
--
--
[INFO] BUILD FAILURE
[INFO]
--------------------------------------------------------------------
--
--
[INFO] Total time: 7.443 s
[INFO] Finished at: 2019-10-05T20:18:06+08:00
[INFO]
--------------------------------------------------------------------
--
--
[ERROR] Failed to execute goal
org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest)
on project netbeans-antlr: Execution default-manifest of goal
org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.:
IllegalArgumentException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
(default-manifest) on project netbeans-antlr: Execution
default-manifest of goal
org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ec
t
(LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ec
t
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThr
ea
dedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
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-manifest of goal
org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ec
t
(LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ec
t
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThr
ea
dedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
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: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init> (Unknown Source)
at org.objectweb.asm.ClassReader.<init> (Unknown Source)
at org.objectweb.asm.ClassReader.<init> (Unknown Source)
at
org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileV
is
itor.visitClass
(DependencyClassFileVisitor.java:65)
at
org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.vi
si
tClass
(ClassFileVisitorUtils.java:163)
at
org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.ac
ce
ptJar
(ClassFileVisitorUtils.java:107)
at
org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.ac
ce
pt
(ClassFileVisitorUtils.java:61)
at
org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.
analyze
(ASMDependencyAnalyzer.java:50)
at
org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClas
se
s
(NetBeansManifestUpdateMojo.java:920)
at
org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDepende
nc
yClasses
(NetBeansManifestUpdateMojo.java:763)
at
org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPat
h
(NetBeansManifestUpdateMojo.java:667)
at org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute
(NetBeansManifestUpdateMojo.java:530)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ec
t
(LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ec
t
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThr
ea
dedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:567)
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)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible
solutions, please read the following articles:
[ERROR] [Help 1]
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionExce&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=J1GFeQSwoxUOebAf1R793sl%2F3Vnql9M%2Fi89EyJPMsng%3D&reserved=0
pt
ion
Thanks
From Peter
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]<mailto:[email protected]>
For additional commands, e-mail:
[email protected]<mailto:[email protected]>
For further information about the NetBeans mailing lists, visit:
https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=ggRi43RiiNmaWwRkCrx3%2F1GXd7Br3vZbjvHskPbLIRU%3D&reserved=0
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]<mailto:[email protected]>
For additional commands, e-mail:
[email protected]<mailto:[email protected]>
For further information about the NetBeans mailing lists, visit:
https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=ggRi43RiiNmaWwRkCrx3%2F1GXd7Br3vZbjvHskPbLIRU%3D&reserved=0
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]<mailto:[email protected]>
For additional commands, e-mail:
[email protected]<mailto:[email protected]>
For further information about the NetBeans mailing lists, visit:
https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7Cf2dece02f86d4d1f057f08d74d4c1abc%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637062861785175998&sdata=ggRi43RiiNmaWwRkCrx3%2F1GXd7Br3vZbjvHskPbLIRU%3D&reserved=0
CONFIDENTIALITY NOTICE This message and any included attachments are from
Cerner Corporation and are intended only for the addressee. The information
contained in this message is confidential and may constitute inside or
non-public information under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the
addressee, please promptly delete this message and notify the sender of the
delivery error by e-mail or you may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.