SPRING boot 打可执行jar

Springboot项目打成Jar包Pom配置


2018年02月09日 10:39:56 阅读数:585 标签: springboot jar  更多 
个人分类: JAVA  


版权声明:本文为博主原创文章,转载请标明出处: https://blog.csdn.net/u012343297/article/details/79296065 

<groupId>com.kpatch</groupId>
<artifactId>KpatchExec</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>1
2
3
4

<build>
      <plugins>
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
         </plugin>
         <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>com.kpatch.KpatchApplication</mainClass>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>

            </plugin> 
      </plugins>
    </build>

 

posted on 2018-08-29 16:43  jis117  阅读(1374)  评论(0编辑  收藏  举报

导航