META-INF.maven.net.hasor.hasor-db.pom.xml Maven / Gradle / Ivy
The newest version!
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.hasor</groupId> <artifactId>hasor-parent</artifactId> <version>4.2.5</version> </parent> <!-- Maven Info --> <artifactId>hasor-db</artifactId> <packaging>jar</packaging> <!-- Project Info --> <name>Hasor-DB</name> <description>the hasor DataBase project.</description> <developers> <developer> <name>赵永春(Mr.Zhao)</name> <email>[email protected]</email> </developer> </developers> <!-- 引用依赖 --> <dependencies> <!-- Log依赖 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <!-- hasor --> <dependency> <groupId>net.hasor</groupId> <artifactId>hasor-commons</artifactId> </dependency> <dependency> <groupId>net.hasor</groupId> <artifactId>hasor-core</artifactId> <scope>provided</scope> </dependency> <!-- shade --> <dependency> <groupId>ognl</groupId> <artifactId>ognl</artifactId> <version>3.2.14</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.github.jsqlparser</groupId> <artifactId>jsqlparser</artifactId> <version>3.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.github.jsqlparser</groupId> <artifactId>jsqlparser</artifactId> <version>3.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <!-- 测试 --> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.22</version> <scope>test</scope> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.2.18</version> <scope>test</scope> </dependency> <dependency> <groupId>com.oracle.database.jdbc</groupId> <artifactId>ojdbc8</artifactId> <version>19.8.0.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.oracle.database.xml</groupId> <artifactId>xdb</artifactId> <version>19.8.0.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.oracle.database.xml</groupId> <artifactId>xmlparserv2</artifactId> <version>19.8.0.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- 把 jsqlparser 的源码和 class 集成到 hasor-db 项目中(为了解决 MSSQL 中分页查询语句改写处理 top 的问题) --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <createSourcesJar>true</createSourcesJar> <createDependencyReducedPom>false</createDependencyReducedPom> <minimizeJar>true</minimizeJar> <artifactSet> <includes> <include>ognl:ognl</include> <include>org.javassist:javassist</include> <include>com.github.jsqlparser:jsqlparser</include> </includes> </artifactSet> <relocations> <relocation> <pattern>ognl</pattern> <shadedPattern>net.hasor.db.ognl</shadedPattern> </relocation> <relocation> <pattern>javassist</pattern> <shadedPattern>net.hasor.db.javassist</shadedPattern> </relocation> <relocation> <pattern>net.sf.jsqlparser</pattern> <shadedPattern>net.hasor.db.jsqlparser</shadedPattern> </relocation> </relocations> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/maven/ognl/**</exclude> <exclude>META-INF/maven/org.javassist/**</exclude> <exclude>META-INF/maven/com.github.jsqlparser/**</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>