pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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>9.0</version>
  11. </parent>
  12. <artifactId>x_cms_core_entity</artifactId>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <dependency>
  16. <groupId>net.o2oa</groupId>
  17. <artifactId>x_base_core_project</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>net.o2oa</groupId>
  21. <artifactId>x_query_core_entity</artifactId>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <groupId>org.codehaus.mojo</groupId>
  28. <artifactId>exec-maven-plugin</artifactId>
  29. <executions>
  30. <execution>
  31. <id>TableBuilder</id>
  32. <phase>prepare-package</phase>
  33. <goals>
  34. <goal>java</goal>
  35. </goals>
  36. <configuration>
  37. <addOutputToClasspath>true</addOutputToClasspath>
  38. <includePluginDependencies>true</includePluginDependencies>
  39. <includeProjectDependencies>true</includeProjectDependencies>
  40. <mainClass>com.x.base.core.project.annotation.TableBuilder</mainClass>
  41. <arguments>
  42. <argument>${basedir}</argument>
  43. <argument>${project.build.sourceDirectory}</argument>
  44. </arguments>
  45. </configuration>
  46. </execution>
  47. <execution>
  48. <id>metaModelBuilder</id>
  49. <phase>generate-sources</phase>
  50. <goals>
  51. <goal>java</goal>
  52. </goals>
  53. <configuration>
  54. <addOutputToClasspath>true</addOutputToClasspath>
  55. <includePluginDependencies>true</includePluginDependencies>
  56. <includeProjectDependencies>true</includeProjectDependencies>
  57. <mainClass>com.x.base.core.entity.tools.MetaModelBuilder</mainClass>
  58. <arguments>
  59. <argument>${basedir}</argument>
  60. <argument>${project.build.sourceDirectory}</argument>
  61. <argument>${project.build.outputDirectory}</argument>
  62. </arguments>
  63. </configuration>
  64. </execution>
  65. <execution>
  66. <id>enhanceBuilder</id>
  67. <phase>process-classes</phase>
  68. <goals>
  69. <goal>java</goal>
  70. </goals>
  71. <configuration>
  72. <addOutputToClasspath>true</addOutputToClasspath>
  73. <includePluginDependencies>true</includePluginDependencies>
  74. <includeProjectDependencies>true</includeProjectDependencies>
  75. <mainClass>com.x.base.core.entity.tools.EnhanceBuilder</mainClass>
  76. <arguments>
  77. <argument>${project.build.directory}</argument>
  78. <argument>${project.build.outputDirectory}</argument>
  79. </arguments>
  80. </configuration>
  81. </execution>
  82. <execution>
  83. <id>checkCore</id>
  84. <phase>prepare-package</phase>
  85. <goals>
  86. <goal>java</goal>
  87. </goals>
  88. <configuration>
  89. <addOutputToClasspath>true</addOutputToClasspath>
  90. <includePluginDependencies>true</includePluginDependencies>
  91. <includeProjectDependencies>true</includeProjectDependencies>
  92. <mainClass>com.x.base.core.project.build.CheckCore</mainClass>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-resources-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <id>copy-jar</id>
  103. <phase>verify</phase>
  104. <goals>
  105. <goal>copy-resources</goal>
  106. </goals>
  107. <configuration>
  108. <outputDirectory>../store/jars</outputDirectory>
  109. <resources>
  110. <resource>
  111. <directory>target</directory>
  112. <includes>
  113. <include>${project.artifactId}.jar</include>
  114. </includes>
  115. </resource>
  116. </resources>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <artifactId>maven-compiler-plugin</artifactId>
  123. <executions>
  124. <execution>
  125. <phase>initialize</phase>
  126. <goals>
  127. <goal>compile</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </project>