You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
4.6 KiB
161 lines
4.6 KiB
12 months ago
|
<?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>
|
||
|
<artifactId>datagear-webapp</artifactId>
|
||
|
<packaging>jar</packaging>
|
||
|
<groupId>org.datagear</groupId>
|
||
|
<version>4.6.0</version>
|
||
|
<properties>
|
||
|
<springboot.version>2.7.11</springboot.version>
|
||
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||
|
<productName>datagear-webapp</productName>
|
||
|
<productNameJar>${productName}.jar</productNameJar>
|
||
|
<productNameWar>${productName}.war</productNameWar>
|
||
|
<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>
|
||
|
</properties>
|
||
|
<dependencyManagement>
|
||
|
<dependencies>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||
|
<version>2.7.11</version>
|
||
|
<type>pom</type>
|
||
|
<scope>import</scope>
|
||
|
</dependency>
|
||
|
</dependencies>
|
||
|
</dependencyManagement>
|
||
|
<dependencies>
|
||
|
<dependency>
|
||
|
<groupId>org.datagear</groupId>
|
||
|
<artifactId>datagear-web</artifactId>
|
||
|
<version>4.6.0</version>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<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>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-security</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-validation</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-devtools</artifactId>
|
||
|
<optional>true</optional>
|
||
|
</dependency>
|
||
|
</dependencies>
|
||
|
|
||
|
<build>
|
||
|
<finalName>${productName}</finalName>
|
||
|
|
||
|
<plugins>
|
||
|
<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>
|
||
|
<plugin>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<goals>
|
||
|
<goal>repackage</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
|
||
|
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-resources-plugin</artifactId>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<id>prepareWarResources</id>
|
||
|
<phase>prepare-package</phase>
|
||
|
<goals>
|
||
|
<goal>copy-resources</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<outputDirectory>${project.build.directory}/${productName}/</outputDirectory>
|
||
|
<resources>
|
||
|
<resource>
|
||
|
<directory>src/dist/war</directory>
|
||
|
<filtering>true</filtering>
|
||
|
<includes>
|
||
|
<include>readme.txt</include>
|
||
|
</includes>
|
||
|
</resource>
|
||
|
</resources>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
|
||
|
<execution>
|
||
|
<id>prepareDistResources</id>
|
||
|
<phase>prepare-package</phase>
|
||
|
<goals>
|
||
|
<goal>copy-resources</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<outputDirectory>${dist.target.dir}/</outputDirectory>
|
||
|
<resources>
|
||
|
<resource>
|
||
|
<directory>src/dist/bin</directory>
|
||
|
<filtering>false</filtering>
|
||
|
<includes>
|
||
|
<include>config/**/*</include>
|
||
|
</includes>
|
||
|
</resource>
|
||
|
<resource>
|
||
|
<directory>src/dist/bin</directory>
|
||
|
<filtering>true</filtering>
|
||
|
<includes>
|
||
|
<include>readme.txt</include>
|
||
|
<include>shutdown.sh</include>
|
||
|
<include>startup.bat</include>
|
||
|
<include>startup.sh</include>
|
||
|
</includes>
|
||
|
</resource>
|
||
|
</resources>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
|
||
|
</plugins>
|
||
|
</build>
|
||
|
</project>
|