123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?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">
- <parent>
- <artifactId>face-admin</artifactId>
- <groupId>com.pj</groupId>
- <version>0.0.1-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sp-start</artifactId>
- <packaging>jar</packaging>
- <!-- 指定一些属性 -->
- <properties>
- <!-- 主类地址,一定要配置,否则打包时运行会出错 -->
- <java.run.main.class>com.pj.SpStartApplication</java.run.main.class>
- </properties>
- <dependencies>
- <!-- ============== 项目依赖 start =============== -->
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>sp-admin</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>alarm-system</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>venues-system</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>alarm-system</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>filing-system</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>face-identify</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>car-identify</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>epidemic-prevention</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <dependency>
- <groupId>com.pj</groupId>
- <artifactId>monitor-system</artifactId>
- <version>${project.parent.version}</version>
- </dependency>
- <!-- ============== 项目依赖 end =============== -->
- </dependencies>
- <!-- 构建配置 -->
- <build>
- <finalName>face-system</finalName>
- <plugins>
- <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <classpathPrefix>lib/</classpathPrefix>
- <mainClass>${java.run.main.class}</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- <!-- 拷贝依赖的jar包到lib目录 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>
- ${project.build.directory}/lib
- </outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- </project>
|