pom.xml 2.7 KB

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