Hi Fabian,

very thanks for you help. You are completly right: I have changed the 
properties to specify 
the java version to

 <configuration>
                    <source>8</source>
                    <target>8</target>
                    <showDeprecation>true</showDeprecation>
                </configuration>

and I also deletes the line with the osgi dependency availability.

Now it works. The error message has misleaded me to think there must be 
something wrong 
with the manifest generation details.

best regards
Oliver

> 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+fo
> > r+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

Reply via email to