pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>hsweb-framework</artifactId>
  7. <groupId>org.hsweb</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>hsweb-web-run</artifactId>
  12. <!--配置信息-->
  13. <properties>
  14. <app.name>hsweb-run</app.name>
  15. <app.version>${project.version}</app.version>
  16. </properties>
  17. <!--环境配置-->
  18. <profiles>
  19. <profile>
  20. <id>dev</id>
  21. <properties>
  22. <environment.package>develop</environment.package>
  23. <jdbc.url>jdbc:oracle:thin:@127.0.0.1:1521:XE</jdbc.url>
  24. <jdbc.username>cyjg</jdbc.username>
  25. <jdbc.password>cyjg</jdbc.password>
  26. <jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
  27. </properties>
  28. <activation>
  29. <activeByDefault>true</activeByDefault>
  30. </activation>
  31. </profile>
  32. <profile>
  33. <id>prod</id>
  34. <properties>
  35. <environment.package>product</environment.package>
  36. <logging.path>/var/logger/hsweb/</logging.path>
  37. <jdbc.url>jdbc:oracle:thin:@oracle:1521:XE</jdbc.url>
  38. <jdbc.username>cyjg</jdbc.username>
  39. <jdbc.password>cyjg</jdbc.password>
  40. <jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
  41. </properties>
  42. </profile>
  43. </profiles>
  44. <build>
  45. <resources>
  46. <resource>
  47. <directory>src/main/resources</directory>
  48. <filtering>
  49. true
  50. </filtering>
  51. </resource>
  52. <resource>
  53. <directory>src/main/environment/${environment.package}</directory>
  54. <filtering>
  55. true
  56. </filtering>
  57. </resource>
  58. </resources>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-maven-plugin</artifactId>
  63. <configuration>
  64. <mainClass>org.hsweb.web.boot.Run</mainClass>
  65. <layout>ZIP</layout>
  66. </configuration>
  67. <executions>
  68. <execution>
  69. <goals>
  70. <goal>repackage</goal>
  71. </goals>
  72. </execution>
  73. </executions>
  74. <dependencies>
  75. <dependency>
  76. <groupId>org.springframework</groupId>
  77. <artifactId>springloaded</artifactId>
  78. <version>1.2.5.RELEASE</version>
  79. </dependency>
  80. </dependencies>
  81. </plugin>
  82. <plugin>
  83. <groupId>com.spotify</groupId>
  84. <artifactId>docker-maven-plugin</artifactId>
  85. <version>0.4.5</version>
  86. <configuration>
  87. <imageName>${project.artifactId}</imageName>
  88. <baseImage>hsweb/java8</baseImage>
  89. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  90. <resources>
  91. <resource>
  92. <targetPath>/</targetPath>
  93. <directory>${project.build.directory}</directory>
  94. <include>${project.build.finalName}.jar</include>
  95. </resource>
  96. </resources>
  97. </configuration>
  98. </plugin>
  99. </plugins>
  100. </build>
  101. <dependencies>
  102. <dependency>
  103. <groupId>org.hsweb</groupId>
  104. <artifactId>hsweb-web-controller</artifactId>
  105. </dependency>
  106. <!--<dependency>-->
  107. <!--<groupId>org.springframework.boot</groupId>-->
  108. <!--<artifactId>spring-boot-devtools</artifactId>-->
  109. <!--</dependency>-->
  110. <dependency>
  111. <groupId>org.hsweb</groupId>
  112. <artifactId>hsweb-web-service-impl-common</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.hsweb</groupId>
  116. <artifactId>hsweb-web-dao-impl-mybatis</artifactId>
  117. </dependency>
  118. <!--<dependency>-->
  119. <!--<groupId>org.springframework</groupId>-->
  120. <!--<artifactId>springloaded</artifactId>-->
  121. <!--</dependency>-->
  122. <dependency>
  123. <groupId>org.springframework.boot</groupId>
  124. <artifactId>spring-boot-starter-freemarker</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-configuration-processor</artifactId>
  129. <optional>true</optional>
  130. </dependency>
  131. <dependency>
  132. <groupId>mysql</groupId>
  133. <artifactId>mysql-connector-java</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.oracle</groupId>
  137. <artifactId>ojdbc14</artifactId>
  138. </dependency>
  139. </dependencies>
  140. </project>