pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.jzg</groupId>
  6. <artifactId>tenant</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>costsorrule</artifactId>
  10. <packaging>jar</packaging>
  11. <name>costsorrule Maven Webapp</name>
  12. <url>http://maven.apache.org</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-web</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.jzg</groupId>
  20. <artifactId>quotation-commons</artifactId>
  21. <version>1.0-SNAPSHOT</version>
  22. <scope>compile</scope>
  23. </dependency>
  24. </dependencies>
  25. <build>
  26. <plugins>
  27. <plugin>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-maven-plugin</artifactId>
  30. <executions>
  31. <execution>
  32. <id>repackage</id>
  33. <phase>none</phase>
  34. </execution>
  35. </executions>
  36. </plugin>
  37. <plugin>
  38. <groupId>org.apache.maven.plugins</groupId>
  39. <artifactId>maven-dependency-plugin</artifactId>
  40. <executions>
  41. <execution>
  42. <id>copy-dependencies</id>
  43. <phase>package</phase>
  44. <goals>
  45. <goal>copy-dependencies</goal>
  46. </goals>
  47. <configuration>
  48. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  49. <overWriteReleases>false</overWriteReleases>
  50. <overWriteSnapshots>false</overWriteSnapshots>
  51. <overWriteIfNewer>true</overWriteIfNewer>
  52. </configuration>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-jar-plugin</artifactId>
  59. <configuration>
  60. <archive>
  61. <manifest>
  62. <addClasspath>true</addClasspath>
  63. <classpathPrefix>lib/</classpathPrefix>
  64. <mainClass>com.jzg.costsorrule.CostsOrRuleApplication</mainClass> <!-- 替换为你的主类 -->
  65. <useUniqueVersions>false</useUniqueVersions>
  66. </manifest>
  67. <manifestEntries>
  68. <Class-Path>config/</Class-Path>
  69. </manifestEntries>
  70. </archive>
  71. <outputDirectory>${project.parent.basedir}/../target</outputDirectory>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-resources-plugin</artifactId>
  77. <version>3.1.0</version>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>