mvn clean package 报错Unable to find a single main class from the following candidates
2020-01-15 10:21
2151 查看
<properties> <java.version>1.8</java.version> <start-class>com.test.JavaApplication</start-class> </properties>
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>${start-class}</mainClass> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
转载于:https://my.oschina.net/iioschina/blog/3073235
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Maven使用package打包Spring Boot时出现:Unable to find a single main class from the following candidates的问题解决
- Springboot repackage failed: Unable to find a single main class from the following candidates
- SpringBoot学习之一 Unable to find a single main class from the following candidates
- Unable to find a single main class from the following candidates
- 解决Unable to find a single main class from the following candidates [xxx,xxx]
- Unable to find a single main class from the following candidates
- Unable to find a single main class from the following candidates
- Caused by: java.lang.IllegalStateException: Unable to find a single main class from问题解决
- spring boot打包时Unable to find a single main class的解决方法
- 解决com.sun.tools.javac.Main is not on the classpath / Unable to find a javac compiler 的问题
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK(转
- unable to find javac compiler;com.sun.tools.javac.Mainisnotontheclasspath的问题的解决
- unable to find javac compiler;com.sun.tools.javac.Mainisnotontheclasspath的问题的解决
- SpringBoot控制台程序不允许出现多个含main方法的类--Unable to find a single main class
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- 问题:Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- mvn clean package -pl 参数 -am -Dmaven.test.skip=true :Could not find the selected project in the reac
- 用MyEclipse启动tomcat 报错Could not find the main class
- Eclipse运行android项目报错Unable to build: the file dx.jar was not loaded from the SDK folder的解决办法