mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
246 lines
8.4 KiB
XML
246 lines
8.4 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">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<parent>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-parent</artifactId>
|
||
<version>3.0.5</version>
|
||
<relativePath />
|
||
</parent>
|
||
|
||
<groupId>com.gitee.fmadmin</groupId>
|
||
<artifactId>sop-code-gen</artifactId>
|
||
<version>2.0.4</version>
|
||
<description>一款代码生成器</description>
|
||
<url>https://gitee.com/durcframework/code-gen</url>
|
||
|
||
<properties>
|
||
<maven.compiler.source>8</maven.compiler.source>
|
||
<maven.compiler.target>8</maven.compiler.target>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-web</artifactId>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-boot-smarthttp</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon.boot.jdkhttp</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon.web.cors</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon.web.staticfiles</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon.logging.logback</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>mybatis-solon-plugin</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-view-thymeleaf</artifactId>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2 -->
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-dbcp2</artifactId>
|
||
<version>2.9.0</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 -->
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-pool2</artifactId>
|
||
<version>2.11.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>dom4j</groupId>
|
||
<artifactId>dom4j</artifactId>
|
||
<version>1.6.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.velocity</groupId>
|
||
<artifactId>velocity</artifactId>
|
||
<version>1.7</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.83</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.xerial</groupId>
|
||
<artifactId>sqlite-jdbc</artifactId>
|
||
<version>3.34.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>8.0.28</version>
|
||
</dependency>
|
||
<!--<dependency>
|
||
<groupId>com.microsoft.sqlserver</groupId>
|
||
<artifactId>mssql-jdbc</artifactId>
|
||
<version>8.4.1.jre8</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.oracle</groupId>
|
||
<artifactId>ojdbc6</artifactId>
|
||
<version>12.1.0.1-atlassian-hosted</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.dameng</groupId>
|
||
<artifactId>DmJdbcDriver18</artifactId>
|
||
<version>8.1.2.141</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.postgresql</groupId>
|
||
<artifactId>postgresql</artifactId>
|
||
<version>42.2.14</version>
|
||
</dependency>-->
|
||
|
||
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.17.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-test-junit4</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>4.13.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<!-- 指定打包名称 -->
|
||
<finalName>${project.artifactId}</finalName>
|
||
|
||
<plugins>
|
||
<!-- compiler插件参数设置,指定编码 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.8.0</version>
|
||
<configuration>
|
||
<source>1.8</source>
|
||
<target>1.8</target>
|
||
<encoding>utf-8</encoding>
|
||
<compilerArgument>-parameters</compilerArgument>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 打包时跳过测试 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<version>2.12.4</version>
|
||
<configuration>
|
||
<skipTests>true</skipTests>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- 添加依赖输出控制 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<version>3.4.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>copy-dependencies</id>
|
||
<phase>prepare-package</phase>
|
||
<goals>
|
||
<goal>copy-dependencies</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||
<overWriteReleases>false</overWriteReleases>
|
||
<overWriteSnapshots>false</overWriteSnapshots>
|
||
<overWriteIfNewer>true</overWriteIfNewer>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<!-- 负责将应用程序打包成可执行的jar文件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<version>3.3.0</version>
|
||
<configuration>
|
||
<archive>
|
||
<manifest>
|
||
<addClasspath>true</addClasspath>
|
||
<!-- 指定classpath的前缀 -->
|
||
<classpathPrefix>lib/</classpathPrefix>
|
||
<!-- 指定主类的类名 -->
|
||
<mainClass>com.gitee.gen.App</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- 负责将整个项目按照自定义的目录结构打成最终的压缩包,方便实际部署 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>3.3.0</version>
|
||
<configuration>
|
||
<descriptors>
|
||
<descriptor>src/main/assembly/assembly-zip.xml</descriptor>
|
||
</descriptors>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>make-assembly</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
</build>
|
||
|
||
</project>
|