ebc

pom_part.xml 9.0KB

    <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> <parent> <groupId>com.ai.ipu.server</groupId> <artifactId>ipu-rest-libs</artifactId> <version>3.1-SNAPSHOT</version> </parent> <artifactId>ebc-sea-platform</artifactId> <packaging>jar</packaging> <properties> <start-class>com.ai.bss.location_rescuers.server.EbcSeaPlatformStart</start-class> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <mongo.java.driver>3.11.2</mongo.java.driver> <ipu>3.1-SNAPSHOT</ipu> <jdk>1.8</jdk> <junit>4.12</junit> <spring-session.version>1.3.2.RELEASE</spring-session.version> <nacos.version>0.1.1</nacos.version> <poi.version>3.14</poi.version> <swagger.version>2.6.1</swagger.version> </properties> <repositories> <!-- 阿里私服 --> <repository> <id>ali</id> <url>http://maven.aliyun.com/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> </repository> <!-- IPU仓库 --> <repository> <id>ipu</id> <name>ipu repository</name> <url>http://114.215.100.48/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> <dependencies> <dependency> <groupId>com.ai.ipu</groupId> <artifactId>ipu-sql-mgmt</artifactId> <version>${ipu}</version> <!-- 屏蔽以后Idea可能启动报错 --> <!-- <scope>provided</scope>--> </dependency> <dependency> <groupId>com.ai.ipu.server</groupId> <artifactId>ipu-restful</artifactId> </dependency> <!--uspa start--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>4.1.9.RELEASE</version> </dependency> <!-- apache start --> <dependency> <groupId>commons-configuration</groupId> <artifactId>commons-configuration</artifactId> <version>1.10</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> </dependency> <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>3.6</version> </dependency> <!-- apache end --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.2.5.Final</version> </dependency> <!-- swagger start --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>${swagger.version}</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>${swagger.version}</version> </dependency> <!-- swagger end --> <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.4.10</version> </dependency> <!-- poi start --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml-schemas</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-scratchpad</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-excelant</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-contrib</artifactId> <version>3.6</version> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>2.1</version> </dependency> <!-- poi end --> <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.10</version> <scope>provided</scope> </dependency> <!-- IPU 镜屏 --> <dependency> <groupId>com.ai.ipu.server</groupId> <artifactId>iot-stomp-server</artifactId> <version>${ipu}</version> <exclusions> <exclusion> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <!--<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> </configuration> </plugin> </plugins> </build>--> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${compiler-version}</source> <target>${compiler-version}</target> <encoding>${encoding}</encoding> <!-- 通过此方法添加本地jar --> <compilerArguments> <!--suppress UnresolvedMavenProperty --> <bootclasspath>${JAVA_HOME}/jre/lib/rt.jar</bootclasspath> <extdirs>${project.basedir}/libs</extdirs> </compilerArguments> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <!-- ==========应用包和依赖包分离的打包方法================ --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources</id> <phase>compile</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <encoding>${encoding}</encoding> <resources> <resource> <directory>${project.build.directory}/classes</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> <include>**/*.yaml</include> <include>**/*.yml</include> <include>**/*.txt</include> </includes> </resource> </resources> <!-- 表示把配置文件拷到和jar包同一个路径下 --> <outputDirectory> ${project.build.directory}/config </outputDirectory> </configuration> </execution> </executions> </plugin> <!-- 复制依赖包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <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> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <!--生成的jar中,不要包含pom.xml和pom.properties这两个文件--> <addMavenDescriptor>false</addMavenDescriptor> <manifest> <!--是否要把第三方jar放到manifest的classpath中--> <addClasspath>true</addClasspath> <!--生成的manifest中classpath的前缀,lib存放第三方jar--> <classpathPrefix>lib/</classpathPrefix> <!--应用的main class--> <mainClass>${start-class}</mainClass> <!-- 去掉jar后的时间戳 --> <useUniqueVersions>false</useUniqueVersions> </manifest> <!-- 自定义的MANIFEST.MF参数 --> <manifestEntries> <!-- 增加classpath目录config --> <Class-Path>./config/</Class-Path> </manifestEntries> </archive> <!--过滤掉不希望包含在jar中的文件--> <excludes> <exclude>**/*.properties</exclude> <exclude>**/*.xml</exclude> <exclude>**/*.yaml</exclude> <exclude>**/*.yml</exclude> <exclude>**/*.txt</exclude> </excludes> </configuration> </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-package.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> <finalName>${project.artifactId}</finalName> </build> </project>