nutzboot-maven-plugin打包报插件没有发现,使用的nutzboot版本是2.2.9。
阿里云镜像? 配了星号?
中央库也没问题
https://repo1.maven.org/maven2/org/nutz/boot/nutzboot-maven-plugin/
@wendal 大神,这个插件似乎好久没更新了,能让它支持jdk11+么,比较喜欢用新一点得jdk,语法糖好吃
错误信息全部相同,似乎就是在扫描类得时候,不识别,如下:
bad class file? W:\PH\AFlowJava\trunk\AFlowSource\aflow-common\target\classes\ph\aflow\common\error\AFlowErrorProcessor.class
java.lang.IllegalArgumentException: Unsupported class file major version 55
at org.objectweb.asm.ClassReader. (ClassReader.java:166)
at org.objectweb.asm.ClassReader. (ClassReader.java:148)
at org.objectweb.asm.ClassReader. (ClassReader.java:136)
at org.objectweb.asm.ClassReader. (ClassReader.java:237)
at org.nutz.boot.maven.AbstractNbMojo$1.visit (AbstractNbMojo.java:40)
at org.nutz.lang.util.Disks.visitFile (Disks.java:37)
at org.nutz.lang.util.Disks.visitFile (Disks.java:43)
at org.nutz.lang.util.Disks.visitFile (Disks.java:43)
at org.nutz.lang.util.Disks.visitFile (Disks.java:43)
at org.nutz.lang.util.Disks.visitFile (Disks.java:43)
at org.nutz.lang.util.Disks.visitFile (Disks.java:43)
at org.nutz.lang.util.Disks.visitFile (Disks.java:43)
at org.nutz.boot.maven.AbstractNbMojo.searchMainClass (AbstractNbMojo.java:37)
at org.nutz.boot.maven.NbShadeMojo.execute (NbShadeMojo.java:65)
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.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:566)
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)
如果用jdk11,就是报Unsupported class file major version 55,若是用jdk14,就是Unsupported class file major version 58
如果我把maven-compiler-plugin得source和target改成8就可以.
@wendal 求更新^_*
@wendal 如果我用jdk11,但输出设定为jdk8,是否会有问题?
@wendal 但是在idea中直接运行或调试,没有问题.就是打包得时候,仅仅是把各个类库打了个jar,而不能输出一个整包,该如何配置?
@wendal 👍👍👍👍👍👍👍👍
@wendal nutzboot,我用2.4.0-SNAPSHOT就可以了?