Hello Oliver,

I just checked your pom.xml and it seems you have set Maven to use the latest 
Java Version 14. Do you have Java 14 installed on your system and is it used 
for building? You have specified source and target in the maven compiler 
plugin, but I think you also have to specify the release for JDKs 9+. Just add

<release>14</release>

In the configuration section of the maven-compiler-plugin.

But tbh I wouldn’t build with JDK 14 unless you really need some features from 
that version, but you will force everyone who wants to use your plugin to 
install at least JDK 14 which sometimes might not be possible or wanted.


Cheers,
Fabian



> Am 30.06.2020 um 21:40 schrieb Oliver Rettig <[email protected]>:
> 
> Hi all,
> 
> I am working on a Nebeans Plugin to translate selected text segments:
> 
> https://github.com/orat/netbeans-translator
> 
> It is a reimplementation of the old plugin
> 
> http://plugins.netbeans.org/plugin/4189/google-translator-integrator
> 
> where the source code isnt available any more. Furthermore it is a test to 
> learn for me how 
> to publish Netbeans Plugins. 
> 
> It includes an SPI and a default implementation based on the google 
> translation service.
> 
> I started to follow the guide to store it as a plugin into the maven central 
> and the Netbeans 
> plugin repository
> 
> https://cwiki.apache.org/confluence/display/NETBEANS/Step+by+step+guide+for+upload
> +NBM+to+Maven+Central
> 
> I have several problems with it.
> 
> The first one occures after switching from ant to Maven. The build does not 
> work any more. I 
> got the following error message:
> 
> ------
> Failed to execute goal 
> org.apache.netbeans.utilities:nbm-maven-plugin:4.5:manifest (default-
> manifest) on project translator: Execution default-manifest of goal 
> org.apache.netbeans.utilities:nbm-maven-plugin:4.5:manifest failed: 
> Unsupported class file 
> major version 58 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal 
> org.apache.netbeans.utilities:nbm-maven-plugin:4.5:manifest 
> (default-manifest) on project 
> translator: Execution default-manifest of goal 
> org.apache.netbeans.utilities:nbm-maven-
> plugin:4.5:manifest failed: Unsupported class file major version 58
>    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.buildProject 
> (LifecycleModuleBuilder.java:117)
>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>    at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.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:957)
>    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>    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:564)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:
> 282)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:
> 406)
>    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-manifest 
> of goal org.apache.netbeans.utilities:nbm-maven-plugin:4.5:manifest failed: 
> Unsupported 
> class file major version 58
>    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.buildProject 
> (LifecycleModuleBuilder.java:117)
>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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



Reply via email to