| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?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>
- <packaging>jar</packaging>
- <parent>
- <groupId>com.kakarote</groupId>
- <artifactId>wkcrm</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <artifactId>message</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>message</name>
- <description>消息引擎</description>
- <dependencies>
- <dependency>
- <groupId>com.kakarote</groupId>
- <artifactId>core</artifactId>
- <version>${core.version}</version>
- </dependency>
- <!-- RabbitMQ -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-amqp</artifactId>
- </dependency>
- <!-- websocket -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-websocket</artifactId>
- </dependency>
- <!-- netty-socketio: 仿`node.js`实现的socket.io服务端 -->
- <dependency>
- <groupId>com.corundumstudio.socketio</groupId>
- <artifactId>netty-socketio</artifactId>
- <version>1.7.7</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/com.getui.push/restful-sdk -->
- <dependency>
- <groupId>com.getui.push</groupId>
- <artifactId>restful-sdk</artifactId>
- <version>1.0.0.1</version>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <!-- xml放在java目录下-->
- <directory>src/main/java/com/qdoner/message/</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </resource>
- <!--解决idea不识别resources的问题-->
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- <!--打包jar-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <!--MANIFEST.MF 中 Class-Path 加入前缀-->
- <classpathPrefix>lib/</classpathPrefix>
- <!--jar包不包含唯一版本标识-->
- <useUniqueVersions>false</useUniqueVersions>
- <!--指定入口类-->
- <mainClass>com.qdoner.message.MessageApplication</mainClass>
- </manifest>
- <manifestEntries>
- <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
- <Class-Path>./config/</Class-Path>
- </manifestEntries>
- </archive>
- <outputDirectory>${project.build.directory}</outputDirectory>
- </configuration>
- </plugin>
- <!--拷贝依赖 copy-dependencies-->
- <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>
- <!--拷贝资源文件 copy-resources-->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>src/main/resources/</directory>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}/config</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>../assembly.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Allatori plugin start -->
- <!-- <plugin>-->
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
- <!-- <artifactId>maven-resources-plugin</artifactId>-->
- <!-- <version>2.6</version>-->
- <!-- <executions>-->
- <!-- <execution>-->
- <!-- <id>copy-and-filter-allatori-config</id>-->
- <!-- <phase>package</phase>-->
- <!-- <goals>-->
- <!-- <goal>copy-resources</goal>-->
- <!-- </goals>-->
- <!-- <configuration>-->
- <!-- <outputDirectory>${basedir}/target</outputDirectory>-->
- <!-- <resources>-->
- <!-- <resource>-->
- <!-- <directory>${basedir}/allatori</directory>-->
- <!-- <includes>-->
- <!-- <include>allatori.xml</include>-->
- <!-- </includes>-->
- <!-- <filtering>true</filtering>-->
- <!-- </resource>-->
- <!-- </resources>-->
- <!-- </configuration>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- </plugin>-->
- <!-- <plugin>-->
- <!-- <groupId>org.codehaus.mojo</groupId>-->
- <!-- <artifactId>exec-maven-plugin</artifactId>-->
- <!-- <version>1.2.1</version>-->
- <!-- <executions>-->
- <!-- <execution>-->
- <!-- <id>run-allatori</id>-->
- <!-- <phase>package</phase>-->
- <!-- <goals>-->
- <!-- <goal>exec</goal>-->
- <!-- </goals>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- <configuration>-->
- <!-- <executable>java</executable>-->
- <!-- <arguments>-->
- <!-- <argument>-Xms128m</argument>-->
- <!-- <argument>-Xmx512m</argument>-->
- <!-- <argument>-jar</argument>-->
- <!-- <argument>${basedir}/lib/allatori.jar</argument>-->
- <!-- <argument>${basedir}/target/allatori.xml</argument>-->
- <!-- </arguments>-->
- <!-- </configuration>-->
- <!-- </plugin>-->
- <!-- Allatori plugin end -->
- </plugins>
- </build>
- </project>
|