ebc

pom.xml 13KB

    <?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> <groupId>com.ai.bss</groupId> <artifactId>security-protection-service</artifactId> <parent> <artifactId>components</artifactId> <groupId>com.ai.bss</groupId> <version>2.1.5-SNAPSHOT</version> </parent> <dependencies> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.0.3</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>work-tool-service-api</artifactId> <version>2.1.5-SNAPSHOT</version> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>work-tool-service</artifactId> <version>2.1.5-SNAPSHOT</version> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>worker-service</artifactId> <version>2.1.5-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-security </artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>characteristic-spec-service</artifactId> <version>2.1.5-SNAPSHOT</version> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>worker-service-api</artifactId> <version>2.1.5-SNAPSHOT</version> </dependency> <!-- <dependency> <groupId>com.ai.bss</groupId> <artifactId>work-attendance-service-api</artifactId> <version>2.1.5-SNAPSHOT</version> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>work-attendance-service</artifactId> <version>2.1.5-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-security </artifactId> </exclusion> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-test </artifactId> </exclusion> <exclusion> <groupId>org.hibernate</groupId> <artifactId> hibernate-envers </artifactId> </exclusion> </exclusions> </dependency> --> <dependency> <groupId>com.ai.bss</groupId> <artifactId>work-safety-service</artifactId> <version>2.1.5-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-security </artifactId> </exclusion> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-test </artifactId> </exclusion> <exclusion> <groupId>org.hibernate</groupId> <artifactId> hibernate-envers </artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.ai.bss</groupId> <artifactId>system-user-service</artifactId> <version>2.1.5-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-security </artifactId> </exclusion> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-starter-test </artifactId> </exclusion> <exclusion> <groupId>org.hibernate</groupId> <artifactId> hibernate-envers </artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.ai.bss</groupId> <version>2.1.5-SNAPSHOT</version> <artifactId>components-minio</artifactId> </dependency> <!-- uspa登录拦截效验--> <dependency> <groupId>com.wframe</groupId> <artifactId>sso-util</artifactId> <version>1.2</version> </dependency> <!-- 缓存 --> <dependency> <groupId>com.ai.ipu</groupId> <artifactId>ipu-cache</artifactId> <version>3.1-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>net.sourceforge.jexcelapi</groupId> <artifactId>jxl</artifactId> <version>2.6.12</version> </dependency> </dependencies> <repositories> <repository> <id>mgpd</id> <name>mgpd</name> <url>http://maven.cst.asiainfo.com/repository/mgpd-group/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>mgpd</id> <name>mgpd</name> <url>http://maven.cst.asiainfo.com/repository/mgpd-group/</url> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <build> <resources> <resource> <directory>src/main/resources</directory> <!-- 根据输入参数动态修改相关内容 --> <filtering>true</filtering> <excludes/> </resource> </resources> <plugins> <!-- 配置文件转移到conf目录 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <encoding>UTF-8</encoding> <!-- 表示把配置文件拷到和jar包同一个路径下 --> <outputDirectory> ${project.build.directory}/conf </outputDirectory> <resources> <resource> <directory>${project.build.directory}/classes</directory> <includes> <include>db/*.sql</include> <include>**/*.yml</include> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <!-- The configuration of maven-jar-plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <!-- The configuration of the plugin --> <configuration> <!-- Configuration of the archive --> <archive> <!--生成的jar中,不要包含pom.xml和pom.properties这两个文件--> <addMavenDescriptor>false</addMavenDescriptor> <!-- Manifest specific configuration --> <manifest> <!--是否要把第三方jar放到manifest的classpath中--> <addClasspath>true</addClasspath> <!--生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/--> <classpathPrefix>lib/</classpathPrefix> <!--应用的main class--> <mainClass>com.ai.bss.security.protection.SecurityProtectionApp</mainClass> <!-- MANIFEST.MF文件添加SNAPSHOT依赖包的时候,不带时间戳,直接使用SNAPSHOT --> <useUniqueVersions>false</useUniqueVersions> </manifest> <manifestEntries> <Class-Path>./conf/</Class-Path> </manifestEntries> </archive> <!--过滤掉不希望包含在jar中的文件--> <excludes> <exclude>**/*.properties</exclude> <exclude>**/*.xml</exclude> <exclude>**/*.yml</exclude> <exclude>**/*.sql</exclude> <exclude>db</exclude> </excludes> </configuration> </plugin> <!-- 配置依赖jar转移到lib目录 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> </configuration> </execution> </executions> </plugin> <!-- The configuration of maven-assembly-plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> <!-- The configuration of the plugin --> <configuration> <!-- Specifies the configuration file of the assembly plugin --> <descriptors> <descriptor>src/main/assembly/assembly.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <!-- 不打包test代码 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> </project>