90 lines
2.8 KiB
XML
90 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>ruoyi</artifactId>
|
|
<groupId>com.ruoyi</groupId>
|
|
<version>3.8.2</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>ruoyi-sql</artifactId>
|
|
<packaging>jar</packaging>
|
|
<build>
|
|
<plugins>
|
|
<!--添加sql-maven-plugin插件 -->
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>sql-maven-plugin</artifactId>
|
|
<version>1.5</version>
|
|
<!---因为该实例中用到的数据库是mysql,故需依赖于mysql连接驱动 -->
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>5.1.27</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<!--为该插件配置数据库连接信息 -->
|
|
<configuration>
|
|
<driver>com.mysql.jdbc.Driver</driver>
|
|
<url>jdbc:mysql://localhost:3306/ry_vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8</url>
|
|
<username>root</username>
|
|
<password>root</password>
|
|
<autocommit>true</autocommit>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>create-data</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
<configuration>
|
|
<autocommit>true</autocommit>
|
|
<srcFiles>
|
|
<srcFile>quartz.sql</srcFile>
|
|
<srcFile>ry_20210908.sql</srcFile>
|
|
</srcFiles>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
|
<plugin>
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
<version>1.0.0</version>
|
|
<configuration>
|
|
<lifecycleMappingMetadata>
|
|
<pluginExecutions>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>
|
|
org.codehaus.mojo
|
|
</groupId>
|
|
<artifactId>
|
|
sql-maven-plugin
|
|
</artifactId>
|
|
<versionRange>
|
|
[1.5,)
|
|
</versionRange>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
</pluginExecutions>
|
|
</lifecycleMappingMetadata>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</project> |