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 <mcheun...@hotmail.com> 
Envoyé : dimanche 6 octobre 2019 05:17
À : dev@netbeans.apache.org
Objet : Re: maven-compiler-plugin problem

Thank you very much Robert

________________________________
From: Robert Scholte <rfscho...@apache.org>
Sent: Saturday, October 5, 2019 11:29 PM
To: dev@netbeans.apache.org <dev@netbeans.apache.org>
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://www.mojohaus.org/plugins.html# shows you the plugins has been moved
to http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/

 From here the documentation is a little bit tricky, but you can look for
the manifest goal.
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

Here you see that they changes the groupId to org.apache.netbeans.utilities

Hopefully version 4.2 will fix it, otherwise
https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin
describes how to report a bug/improvement.

thanks,
Robert

On Sat, 05 Oct 2019 14:18:32 +0200, Peter Cheung <mcheun...@hotmail.com>
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.buildProjec
> t
> (LifecycleModuleBuilder.java:117)
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> t
> (LifecycleModuleBuilder.java:81)
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThrea
> 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.buildProjec
> t
> (LifecycleModuleBuilder.java:117)
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> t
> (LifecycleModuleBuilder.java:81)
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThrea
> 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.DependencyClassFileVis
> itor.visitClass
> (DependencyClassFileVisitor.java:65)
>
>     at
> org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visi
> tClass
> (ClassFileVisitorUtils.java:163)
>
>     at
> org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acce
> ptJar
> (ClassFileVisitorUtils.java:107)
>
>     at
> org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acce
> pt
> (ClassFileVisitorUtils.java:61)
>
>     at
> org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.
> analyze
> (ASMDependencyAnalyzer.java:50)
>
>     at
> org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClasse
> s
> (NetBeansManifestUpdateMojo.java:920)
>
>     at
> org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDependenc
> yClasses
> (NetBeansManifestUpdateMojo.java:763)
>
>     at
> org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPath
> (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.buildProjec
> t
> (LifecycleModuleBuilder.java:117)
>
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> t
> (LifecycleModuleBuilder.java:81)
>
>     at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThrea
> 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]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionExcept
> ion
>
>
> Thanks
> From Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to