springboot项目在打包的时候,突然报告 程序包sun.plugin.util不存在
解决:
<build> <!-- 设置打包名称 --> <finalName>xxx</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>*.*.*.*Application</mainClass>//替换成对应的主启动类的全路径名字 </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <compilerArguments> <bootclasspath>${env.JAVA_HOME}/jre/lib/rt.jar</bootclasspath> </compilerArguments> </configuration> </plugin> </plugins> </build>