56°

mvn clean package 报错Unable to find a single main class from the following candidates

<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>

本文由【writeademo】发布于开源中国,原文链接:https://my.oschina.net/iioschina/blog/3073235

全部评论: 0

    我有话说: