123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?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>
- <parent>
- <groupId>com.yihu.jw</groupId>
- <artifactId>wlyy-parent-pom</artifactId>
- <version>2.0.0</version>
- <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
- </parent>
- <groupId>com.yihu.iot</groupId>
- <artifactId>svr-iot</artifactId>
- <version>${parent.version}</version>
- <packaging>jar</packaging>
- <dependencies>
- <!-- 支持Tomcat启动 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-eureka</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-config</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.tomcat.embed</groupId>
- <artifactId>tomcat-embed-jasper</artifactId>
- </dependency>
- <!-- 支持Tomcat启动 -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>3.3.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi</artifactId>
- <version>3.15-beta1</version>
- </dependency>
- <dependency>
- <groupId>com.auth0</groupId>
- <artifactId>java-jwt</artifactId>
- <version>3.1.0</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-entity</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-entity-es</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-request-mapping</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-exception</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-rest-model</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-rest-model-es</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-util</artifactId>
- </dependency>
- <dependency>
- <groupId>com.yihu.jw</groupId>
- <artifactId>common-web</artifactId>
- </dependency>
- <!-- jkzl starter -->
- <dependency>
- <groupId>com.yihu</groupId>
- <artifactId>swagger-starter</artifactId>
- <version>2.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.yihu</groupId>
- <artifactId>mysql-starter</artifactId>
- <version>2.0.0</version>
- <exclusions>
- <exclusion>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>tomcat-jdbc</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.zaxxer</groupId>
- <artifactId>HikariCP</artifactId>
- <!-- <scope>runtime</scope> -->
- </dependency>
- <dependency>
- <groupId>com.yihu</groupId>
- <artifactId>elasticsearch-starter</artifactId>
- <version>2.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.yihu</groupId>
- <artifactId>fastdfs-starter</artifactId>
- </dependency>
- </dependencies>
- <build>
- <finalName>svr-iot</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
- <addMavenDescriptor>false</addMavenDescriptor>
- <manifest>
- <!-- 是否要把第三方jar加入到类构建路径 -->
- <addClasspath>true</addClasspath>
- <!-- 外部依赖jar包的最终位置 -->
- <classpathPrefix>lib/</classpathPrefix>
- <mainClass>com.yihu.IOTApplication</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- <!--拷贝依赖到jar外面的lib目录-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-lib</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <!-- 依赖包输出目录,将来不打进jar包里 -->
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
- <excludeTransitive>false</excludeTransitive>
- <stripVersion>false</stripVersion>
- <includeScope>runtime</includeScope>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--指定配置文件,将resources打成外部resource-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
- <manifestEntries>
- <Class-Path>resources/</Class-Path>
- </manifestEntries>
- </archive>
- <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
- <excludes>
- <exclude>**/*.yml</exclude>
- <exclude>**/*.xml</exclude>
- </excludes>
- </configuration>
- </plugin>
- <!-- 拷贝资源文件 外面的resource目录-->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <!-- 资源文件输出目录 -->
- <outputDirectory>${project.build.directory}/resources</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|