NutzCN Logo
问答 nutzboot使用jdk17,maven打包异常java.lang.IllegalArgumentException: Unsupported class file major version 61
发布于 497天前 作者 忧郁深蓝 2424 次浏览 复制 上一个帖子 下一个帖子
标签:

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.silly</groupId>
    <artifactId>mall</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <nutzboot.version>2.6.0-SNAPSHOT</nutzboot.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <mysql.version>8.0.33</mysql.version>
        <slf4j.version>2.0.7</slf4j.version>
        <logback.version>1.4.8</logback.version>
    </properties>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.nutz</groupId>
                <artifactId>nutzboot-parent</artifactId>
                <version>${nutzboot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-swagger</artifactId>
        </dependency>

       <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-nutz-mvc</artifactId>
        </dependency>

       <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-nutz-dao</artifactId>
        </dependency>
       <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-test-junit4</artifactId>
           <version>${nutzboot.version}</version>
        </dependency>

       <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-jetty</artifactId>
        </dependency>

       <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-jdbc</artifactId>
        </dependency>

       <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-redis</artifactId>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-core</artifactId>
            <version>${logback.version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.28</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <id>nutz-snapshots</id>
            <url>https://jfrog.nutz.cn/artifactory/snapshots</url>
        </repository>

    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>nutz-snapshots</id>
            <url>https://jfrog.nutz.cn/artifactory/snapshots</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>17</source>
                    <target>17</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.nutz.boot</groupId>
                <artifactId>nutzboot-maven-plugin</artifactId>
                <version>${nutzboot.version}</version>
            </plugin>
        </plugins>
    </build>
</project>

使用命令

mvn clean package nutzboot:shade

命令行

PS E:\workspace\idea_workspace\self\mall> mvn clean package nutzboot:shade
[INFO] Scanning for projects...
Downloading from nutz-snapshots: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/boot/nutzboot-maven-plugin/2.6.0-SNAPSHOT/maven-metadata.xml
Downloaded from nutz-snapshots: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/boot/nutzboot-maven-plugin/2.6.0-SNAPSHOT/maven-metadata.xml (784 B at 559 B/s)
[INFO] 
[INFO] ---------------------------< com.silly:mall >---------------------------
[INFO] Building mall 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates.
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mall ---
[INFO] Deleting E:\workspace\idea_workspace\self\mall\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mall ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ mall ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to E:\workspace\idea_workspace\self\mall\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mall ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\workspace\idea_workspace\self\mall\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mall ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\workspace\idea_workspace\self\mall\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mall ---
[INFO] Surefire report directory: E:\workspace\idea_workspace\self\mall\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mall ---
[INFO] Building jar: E:\workspace\idea_workspace\self\mall\target\mall-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- nutzboot-maven-plugin:2.6.0-SNAPSHOT:shade (default-cli) @ mall ---
Downloading from nutz-snapshots: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-core/2.6.0-SNAPSHOT/maven-metadata.xml
Downloaded from nutz-snapshots: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-core/2.6.0-SNAPSHOT/maven-metadata.xml (989 B at 9.6 kB/s)
Downloading from nutz-snapshots: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.70-SNAPSHOT/maven-metadata.xml
Downloaded from nutz-snapshots: https://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutz/1.r.70-SNAPSHOT/maven-metadata.xml (1.2 kB at 12 kB/s)
[INFO] bad class file? E:\workspace\idea_workspace\self\mall\target\classes\com\silly\mall\bean\User.class
java.lang.IllegalArgumentException: Unsupported class file major version 61
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:196)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:177)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:163)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:284)
    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.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    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:294)
    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:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    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)
[INFO] bad class file? E:\workspace\idea_workspace\self\mall\target\classes\com\silly\mall\MainLauncher.class
java.lang.IllegalArgumentException: Unsupported class file major version 61
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:196)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:177)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:163)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:284)
    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.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.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    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:294)
    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:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    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)
[INFO] bad class file? E:\workspace\idea_workspace\self\mall\target\classes\com\silly\mall\module\TimeModule.class
java.lang.IllegalArgumentException: Unsupported class file major version 61
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:196)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:177)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:163)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:284)
    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.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    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:294)
    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:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    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)
[INFO] bad class file? E:\workspace\idea_workspace\self\mall\target\classes\com\silly\mall\module\UserModule.class
java.lang.IllegalArgumentException: Unsupported class file major version 61
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:196)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:177)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:163)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:284)
    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.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    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:294)
    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:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    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)
[INFO] bad class file? E:\workspace\idea_workspace\self\mall\target\test-classes\com\silly\mall\TestMainLauncher.class
java.lang.IllegalArgumentException: Unsupported class file major version 61
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:196)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:177)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:163)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:284)
    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.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.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    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:294)
    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:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    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)
[INFO] MainLaucher not found, skip this action!!!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.282 s
[INFO] Finished at: 2023-07-12T21:34:09+08:00
[INFO] ------------------------------------------------------------------------

2 回复

改一下pom.xml, 定义一下main类的全名, 例如

            <plugin>
                <groupId>org.nutz.boot</groupId>
                <artifactId>nutzboot-maven-plugin</artifactId>
                <version>${nutzboot.version}</version>
                <configuration>
					<mainClass>com.openluat.bs.MainLauncher</mainClass>
				</configuration>
            </plugin>

可以了,兽总威武!~

添加回复
请先登陆
回到顶部