pom.xml 3.9 KB

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