spring boot java -jar no main manifest attribute, in xxx.jar解决

spring boot java -jar no main manifest attribute, in xxx.jar

在pom.xml文件中添加如下

<build>
    	<finalName>domefinalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-maven-pluginartifactId>
                <configuration>
                    <mainClass>com.dome.DomeApplicationmainClass>
                configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackagegoal>
                        goals>
                    execution>
                executions>
            plugin>
        plugins>
    build>

你可能感兴趣的:(随笔)