datagear/datagear-web/pom.xml

246 lines
7.5 KiB
XML
Raw Normal View History

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-02-07 19:57:26 +08:00
<version>2.3.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>
<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>
<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>
<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>
<exclusions>
<!-- 后面重新引入并设为provided避免war包中包含内嵌Server库 -->
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
2018-09-12 20:16:11 +08:00
</dependency>
<dependency>
<artifactId>spring-boot-starter-tomcat</artifactId>
2020-10-29 21:23:15 +08:00
<groupId>org.springframework.boot</groupId>
<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>
<artifactId>spring-boot-starter-freemarker</artifactId>
2020-10-29 21:23:15 +08:00
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
2020-10-29 21:23:15 +08:00
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</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>
<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>
<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>
</dependencies>
<build>
2020-11-06 22:47:03 +08:00
<finalName>${productName}</finalName>
2018-09-12 20:16:11 +08:00
<plugins>
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>
<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>
<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>
<execution>
2020-11-06 22:47:03 +08:00
<id>prepareDistResources</id>
<phase>prepare-package</phase>
<goals>
2020-11-06 22:47:03 +08:00
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${dist.target.dir}/</outputDirectory>
<resources>
<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>
<include>**/*</include>
</includes>
</resource>
</resources>
</configuration>
</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>