pom.xml 3.3 KB

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