pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <artifactId>sis-background</artifactId>
  7. <groupId>com.gyee</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <groupId>com.gyee</groupId>
  11. <artifactId>consumer</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>consumer</name>
  14. <description>Demo project for Spring Boot</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-test</artifactId>
  26. <scope>test</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.alibaba</groupId>
  30. <artifactId>druid</artifactId>
  31. <version>1.1.10</version>
  32. <scope>compile</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.oracle</groupId>
  36. <artifactId>ojdbc6</artifactId>
  37. <version>11.2.0.3</version>
  38. <scope>compile</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-web</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.projectlombok</groupId>
  46. <artifactId>lombok</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework</groupId>
  50. <artifactId>spring-webmvc</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.commons</groupId>
  54. <artifactId>commons-lang3</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-lang</groupId>
  58. <artifactId>commons-lang</artifactId>
  59. <version>2.6</version>
  60. <scope>compile</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>cglib</groupId>
  64. <artifactId>cglib</artifactId>
  65. <version>2.2.2</version>
  66. <scope>compile</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>io.swagger</groupId>
  70. <artifactId>swagger-annotations</artifactId>
  71. <version>1.5.20</version>
  72. <scope>compile</scope>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <!-- 使用maven-jar-plugin和maven-dependency-plugin插件打包 -->
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-jar-plugin</artifactId>
  81. <version>3.0.2</version>
  82. <configuration>
  83. <archive>
  84. <manifest>
  85. <addClasspath>true</addClasspath>
  86. <classpathPrefix>lib/</classpathPrefix>
  87. <mainClass>com.gyee.consumer.ConsumerApplication</mainClass>
  88. </manifest>
  89. </archive>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-dependency-plugin</artifactId>
  95. <version>3.0.2</version>
  96. <executions>
  97. <execution>
  98. <id>copy-dependencies</id>
  99. <phase>package</phase>
  100. <goals>
  101. <goal>copy-dependencies</goal>
  102. </goals>
  103. <configuration>
  104. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-maven-plugin</artifactId>
  112. <configuration>
  113. <fork>true</fork>
  114. <!--增加jvm参数-->
  115. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.codehaus.mojo</groupId>
  120. <artifactId>exec-maven-plugin</artifactId>
  121. <version>1.6.0</version>
  122. <!-- <executions>-->
  123. <!-- <execution>-->
  124. <!-- <goals>-->
  125. <!-- <goal>java</goal>-->
  126. <!-- </goals>-->
  127. <!-- </execution>-->
  128. <!-- </executions>-->
  129. <configuration>
  130. <classpathScope>test</classpathScope>
  131. <!-- <mainClass>com.itheima.test.MybatisTest</mainClass>-->
  132. </configuration>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>