pom.xml 2.8 KB

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