瀏覽代碼

增加配置文件设置

develop
林万龙 3 年之前
父節點
當前提交
d4f7faa112
共有 1 個文件被更改,包括 4 次插入39 次删除
  1. +4
    -39
      pom.xml

+ 4
- 39
pom.xml 查看文件

@@ -153,57 +153,22 @@
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!--mybatis自动生成代码插件-->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<configuration>
<!-- 是否覆盖,true表示会替换生成的JAVA文件,false则不覆盖 -->
<overwrite>false</overwrite>
<!--fork : 使用 devtools生效-->
<fork>true</fork>
</configuration>
<dependencies>
<!--mysql驱动包-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.18</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.7</version>
</dependency>
</dependencies>

</plugin>
<!-- Dockerfile -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.10</version>
<executions>
<execution>
<id>default</id>
<goals>
<goal>build</goal>
<goal>push</goal>
<goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<repository>${project.artifactId}</repository>
<!--tag>${project.version}</tag -->
<buildArgs>
<JAR_FILE>gd202101.jar</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>


Loading…
取消
儲存