pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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>metaModelBuilder</id>
  27. <phase>generate-sources</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.entity.tools.MetaModelBuilder</mainClass>
  36. <arguments>
  37. <argument>${basedir}</argument>
  38. <argument>${project.build.sourceDirectory}</argument>
  39. <argument>${project.build.outputDirectory}</argument>
  40. </arguments>
  41. </configuration>
  42. </execution>
  43. <execution>
  44. <id>enhanceBuilder</id>
  45. <phase>process-classes</phase>
  46. <goals>
  47. <goal>java</goal>
  48. </goals>
  49. <configuration>
  50. <addOutputToClasspath>true</addOutputToClasspath>
  51. <includePluginDependencies>true</includePluginDependencies>
  52. <includeProjectDependencies>true</includeProjectDependencies>
  53. <mainClass>com.x.base.core.entity.tools.EnhanceBuilder</mainClass>
  54. <arguments>
  55. <argument>${project.build.directory}</argument>
  56. <argument>${project.build.outputDirectory}</argument>
  57. </arguments>
  58. </configuration>
  59. </execution>
  60. <execution>
  61. <id>checkCore</id>
  62. <phase>prepare-package</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.project.build.CheckCore</mainClass>
  71. </configuration>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <plugin>
  76. <artifactId>maven-resources-plugin</artifactId>
  77. <executions>
  78. <execution>
  79. <id>copy-jar</id>
  80. <phase>verify</phase>
  81. <goals>
  82. <goal>copy-resources</goal>
  83. </goals>
  84. <configuration>
  85. <outputDirectory>../store/jars</outputDirectory>
  86. <resources>
  87. <resource>
  88. <directory>target</directory>
  89. <includes>
  90. <include>${project.artifactId}.jar</include>
  91. </includes>
  92. </resource>
  93. </resources>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <artifactId>maven-compiler-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <phase>initialize</phase>
  103. <goals>
  104. <goal>compile</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. </plugins>
  110. </build>
  111. </project>