Maven如何引入外部依赖打出可执行的jar

 

https://mvnrepository.com/

 

 

pom.xml中加入:

<build>
<plugins>
      <plugin>
        <!--
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>1.3.3.RELEASE</version>
        -->
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.4.4</version>
        <executions>
          <execution>
            <goals>
              <goal>repackage</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

 

posted @ 2021-04-12 11:33  残星  阅读(101)  评论(0编辑  收藏  举报