pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.0</version>
  11. </parent>
  12. <artifactId>x_portal_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_general_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. <artifactId>maven-resources-plugin</artifactId>
  99. <executions>
  100. <execution>
  101. <id>copy-jar</id>
  102. <phase>verify</phase>
  103. <goals>
  104. <goal>copy-resources</goal>
  105. </goals>
  106. <configuration>
  107. <outputDirectory>../store/jars</outputDirectory>
  108. <resources>
  109. <resource>
  110. <directory>target</directory>
  111. <includes>
  112. <include>${project.artifactId}.jar</include>
  113. </includes>
  114. </resource>
  115. </resources>
  116. </configuration>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <artifactId>maven-compiler-plugin</artifactId>
  122. <executions>
  123. <execution>
  124. <phase>initialize</phase>
  125. <goals>
  126. <goal>compile</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>