pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>net.o2oa</groupId>
  9. <artifactId>o2server</artifactId>
  10. <version>8.3</version>
  11. </parent>
  12. <artifactId>x_program_init</artifactId>
  13. <packaging>war</packaging>
  14. <dependencies>
  15. <dependency>
  16. <groupId>net.o2oa</groupId>
  17. <artifactId>x_base_core_project</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.manticore-projects.tools</groupId>
  21. <artifactId>h2migrationtool</artifactId>
  22. <version>1.3.4</version>
  23. </dependency>
  24. </dependencies>
  25. <build>
  26. <plugins>
  27. <plugin>
  28. <groupId>org.codehaus.mojo</groupId>
  29. <artifactId>exec-maven-plugin</artifactId>
  30. <executions>
  31. <execution>
  32. <id>describeBuilder</id>
  33. <phase>prepare-package</phase>
  34. <goals>
  35. <goal>java</goal>
  36. </goals>
  37. <configuration>
  38. <addOutputToClasspath>true</addOutputToClasspath>
  39. <includePluginDependencies>true</includePluginDependencies>
  40. <includeProjectDependencies>true</includeProjectDependencies>
  41. <mainClass>
  42. com.x.base.core.project.annotation.DescribeBuilder
  43. </mainClass>
  44. <arguments>
  45. <argument>${basedir}</argument>
  46. <argument>${project.build.sourceDirectory}</argument>
  47. </arguments>
  48. </configuration>
  49. </execution>
  50. <execution>
  51. <id>apiBuilder</id>
  52. <phase>prepare-package</phase>
  53. <goals>
  54. <goal>java</goal>
  55. </goals>
  56. <configuration>
  57. <addOutputToClasspath>true</addOutputToClasspath>
  58. <includePluginDependencies>true</includePluginDependencies>
  59. <includeProjectDependencies>true</includeProjectDependencies>
  60. <mainClass>
  61. com.x.base.core.project.annotation.ApiBuilder
  62. </mainClass>
  63. <arguments>
  64. <argument>${basedir}</argument>
  65. <argument>${project.build.sourceDirectory}</argument>
  66. </arguments>
  67. </configuration>
  68. </execution>
  69. <execution>
  70. <id>checkAssemble</id>
  71. <phase>prepare-package</phase>
  72. <goals>
  73. <goal>java</goal>
  74. </goals>
  75. <configuration>
  76. <addOutputToClasspath>true</addOutputToClasspath>
  77. <includePluginDependencies>true</includePluginDependencies>
  78. <includeProjectDependencies>true</includeProjectDependencies>
  79. <mainClass>
  80. com.x.base.core.project.build.CheckAssemble
  81. </mainClass>
  82. </configuration>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. <plugin>
  87. <artifactId>maven-resources-plugin</artifactId>
  88. <executions>
  89. <execution>
  90. <id>copy-war</id>
  91. <phase>verify</phase>
  92. <goals>
  93. <goal>copy-resources</goal>
  94. </goals>
  95. <configuration>
  96. <outputDirectory>../store</outputDirectory>
  97. <resources>
  98. <resource>
  99. <directory>target</directory>
  100. <includes>
  101. <include>${project.artifactId}.war</include>
  102. </includes>
  103. </resource>
  104. </resources>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-deploy-plugin</artifactId>
  112. <version>3.0.0-M2</version>
  113. <configuration>
  114. <skip>true</skip>
  115. </configuration>
  116. </plugin>
  117. <!--plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-war-plugin</artifactId>
  120. <version>3.2.3</version>
  121. <configuration>
  122. <archive>
  123. <addMavenDescriptor>false</addMavenDescriptor>
  124. </archive>
  125. <packagingExcludes>persistence.xml,WEB-INF/lib/**,META-INF
  126. </packagingExcludes>
  127. <failOnMissingWebXml>false</failOnMissingWebXml>
  128. <webResources>
  129. <resource>
  130. <directory>ext</directory>
  131. <includes>
  132. <include>**/*.jar</include>
  133. <include>drivers/h2*.bin</include>
  134. </includes>
  135. <targetPath>WEB-INF/ext</targetPath>
  136. </resource>
  137. </webResources>
  138. </configuration>
  139. </plugin-->
  140. </plugins>
  141. </build>
  142. </project>