2018-09-12 20:16:11 +08:00
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
<project
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
|
|
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.datagear</groupId>
|
|
|
|
|
<artifactId>datagear</artifactId>
|
2021-08-10 19:05:49 +08:00
|
|
|
|
<version>2.8.0</version>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<artifactId>datagear-web</artifactId>
|
|
|
|
|
<name>datagear-web</name>
|
2020-11-03 19:08:44 +08:00
|
|
|
|
<packaging>war</packaging>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
|
|
|
|
|
<properties>
|
2020-11-03 19:08:44 +08:00
|
|
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<productName>datagear-${project.version}</productName>
|
|
|
|
|
<productNameJar>${productName}.jar</productNameJar>
|
|
|
|
|
<productNameWar>${productName}.war</productNameWar>
|
2020-11-07 15:07:08 +08:00
|
|
|
|
<dist.target.dir>${project.build.directory}/${productName}-bin/${productName}</dist.target.dir>
|
|
|
|
|
<dist.package.target.dir>${project.build.directory}/${productName}-packages</dist.package.target.dir>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.datagear</groupId>
|
2020-03-20 13:45:21 +08:00
|
|
|
|
<artifactId>datagear-persistence</artifactId>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.datagear</groupId>
|
|
|
|
|
<artifactId>datagear-management</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2019-06-11 20:16:20 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.datagear</groupId>
|
|
|
|
|
<artifactId>datagear-dataexchange</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2019-12-17 19:02:32 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.datagear</groupId>
|
|
|
|
|
<artifactId>datagear-analysis</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2019-07-11 10:31:40 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.datagear</groupId>
|
|
|
|
|
<artifactId>datagear-util</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>javax.servlet</groupId>
|
2018-12-04 15:14:29 +08:00
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
</dependency>
|
2020-10-31 00:19:11 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<dependency>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
2020-11-07 17:20:07 +08:00
|
|
|
|
<exclusions>
|
2020-11-08 11:54:20 +08:00
|
|
|
|
<!-- 后面重新引入并设为provided,避免war包中包含内嵌Server库 -->
|
2020-11-07 17:20:07 +08:00
|
|
|
|
<exclusion>
|
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2020-11-08 11:54:20 +08:00
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2020-11-08 11:54:20 +08:00
|
|
|
|
<scope>provided</scope>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2020-11-07 17:20:07 +08:00
|
|
|
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2020-11-07 17:20:07 +08:00
|
|
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2020-11-07 17:20:07 +08:00
|
|
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
2021-08-16 21:04:23 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
|
|
|
<artifactId>caffeine</artifactId>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
</dependency>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
|
<artifactId>spring-jdbc</artifactId>
|
|
|
|
|
</dependency>
|
2020-11-09 21:50:09 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.aspectj</groupId>
|
|
|
|
|
<artifactId>aspectjweaver</artifactId>
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
</dependency>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<dependency>
|
2020-04-25 17:01:33 +08:00
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
|
<artifactId>derby</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2020-03-31 18:24:31 +08:00
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
<artifactId>commons-dbcp2</artifactId>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>commons-fileupload</groupId>
|
|
|
|
|
<artifactId>commons-fileupload</artifactId>
|
2020-11-04 20:26:07 +08:00
|
|
|
|
<version>${commons-fileupload.version}</version>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.quartz-scheduler</groupId>
|
|
|
|
|
<artifactId>quartz</artifactId>
|
|
|
|
|
</dependency>
|
2021-03-30 16:15:17 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<finalName>${productName}</finalName>
|
2018-10-23 11:11:17 +08:00
|
|
|
|
|
2018-09-12 20:16:11 +08:00
|
|
|
|
<plugins>
|
2021-02-09 22:47:17 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<archive>
|
|
|
|
|
<manifestEntries>
|
|
|
|
|
<Built-By>datagear.tech</Built-By>
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
</archive>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
2020-10-29 21:23:15 +08:00
|
|
|
|
</plugin>
|
|
|
|
|
|
2018-10-23 11:11:17 +08:00
|
|
|
|
<plugin>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
<version>${maven-antrun-plugin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>clearDistDirectory</id>
|
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<tasks>
|
|
|
|
|
<delete dir="${dist.target.dir}" includeEmptyDirs="true" />
|
|
|
|
|
<mkdir dir="${dist.target.dir}"/>
|
|
|
|
|
<delete dir="${dist.package.target.dir}" includeEmptyDirs="true" />
|
|
|
|
|
<mkdir dir="${dist.package.target.dir}" />
|
|
|
|
|
</tasks>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
2018-10-23 11:11:17 +08:00
|
|
|
|
<executions>
|
2020-11-07 15:07:08 +08:00
|
|
|
|
<execution>
|
|
|
|
|
<id>prepareWarResources</id>
|
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<outputDirectory>${project.build.directory}/${productName}/</outputDirectory>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>dist/war</directory>
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>readme.txt</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
|
2018-10-23 11:11:17 +08:00
|
|
|
|
<execution>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<id>prepareDistResources</id>
|
|
|
|
|
<phase>prepare-package</phase>
|
2018-10-23 11:11:17 +08:00
|
|
|
|
<goals>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<outputDirectory>${dist.target.dir}/</outputDirectory>
|
|
|
|
|
<resources>
|
2021-09-06 20:21:22 +08:00
|
|
|
|
<resource>
|
|
|
|
|
<directory>dist/bin</directory>
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>config/**/*</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</resource>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<resource>
|
2020-11-07 15:07:08 +08:00
|
|
|
|
<directory>dist/bin</directory>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
<includes>
|
2021-09-06 20:21:22 +08:00
|
|
|
|
<include>readme.txt</include>
|
|
|
|
|
<include>shutdown.sh</include>
|
|
|
|
|
<include>startup.bat</include>
|
|
|
|
|
<include>startup.sh</include>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
</includes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
</configuration>
|
2018-10-23 11:11:17 +08:00
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2020-11-06 22:47:03 +08:00
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
<version>${maven-antrun-plugin.version}</version>
|
|
|
|
|
<executions>
|
2020-11-07 15:07:08 +08:00
|
|
|
|
<execution>
|
|
|
|
|
<id>prepareWarLICENSE</id>
|
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<tasks>
|
|
|
|
|
<copy file="../LICENSE" todir="${project.build.directory}/${productName}" />
|
|
|
|
|
</tasks>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<execution>
|
|
|
|
|
<id>buildDistPackage</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<tasks>
|
|
|
|
|
<copy file="${project.build.directory}/${productName}.war" tofile="${dist.target.dir}/${productNameJar}" />
|
|
|
|
|
<mkdir dir="${dist.target.dir}/logs"/>
|
|
|
|
|
<copy file="../LICENSE" todir="${dist.target.dir}" />
|
|
|
|
|
|
2020-11-07 15:07:08 +08:00
|
|
|
|
<zip destfile="${dist.package.target.dir}/${productName}.zip" basedir="${project.build.directory}/${productName}-bin" includes="${productName}/**/*" />
|
2020-11-06 22:47:03 +08:00
|
|
|
|
<copy file="${project.build.directory}/${productNameWar}.original" tofile="${dist.package.target.dir}/${productNameWar}" />
|
|
|
|
|
</tasks>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
2018-09-12 20:16:11 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</project>
|