Warning: ftp_fget() expects parameter 1 to be resource, null given in /www/wwwroot/new.weijing.co/wp-admin/includes/class-wp-filesystem-ftpext.php on line 146

解决部署报错No main manifest attribute, in XXX.jar

将build中的入口改为如下即可解决:

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>repackage</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
         <includeSystemScope>true</includeSystemScope>
         <mainClass>xxx.xxx.xxx.xxx</mainClass>
    </configuration>
</plugin>

发表评论

您的电子邮箱地址不会被公开。

Shopping Cart