SpringBoot项目打包

1.在pom.xml的build>plugins中加入如下配置

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-assembly-pluginartifactId>
                <version>3.1.0version>
                <configuration>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependenciesdescriptorRef>
                    descriptorRefs>
                configuration>
                <executions>
                    <execution>
                        <id>make-assemblyid>
                        <phase>packagephase>
                        <goals>
                            <goal>singlegoal>
                        goals>
                    execution>
                executions>
            plugin>
        plugins>
    build>

2.点击maven project(右边栏)->选择Lifecycle->点击package或install打包,如下图所示:
SpringBoot项目打包_第1张图片

你可能感兴趣的:(SpringBoot,Flink,spring,boot,maven,打包,jar)