maven打包---pom配置

<project ....>
   ...............

   <build>
        <finalName>包名</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.4.5.RELEASE</version>
                <configuration>
                    <mainClass>主类路径</mainClass>
                    <layout>ZIP</layout>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
       
    </build>
</project>

 

posted @ 2022-10-25 14:28  qx和世界  阅读(130)  评论(0编辑  收藏  举报