pom.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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_console</artifactId>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <dependency>
  16. <groupId>o2oa</groupId>
  17. <artifactId>x_base_core_project</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>o2oa</groupId>
  21. <artifactId>x_bbs_core_entity</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>o2oa</groupId>
  25. <artifactId>x_program_center_core_entity</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>o2oa</groupId>
  29. <artifactId>x_cms_core_entity</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>o2oa</groupId>
  33. <artifactId>x_processplatform_core_entity</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>o2oa</groupId>
  37. <artifactId>x_query_core_entity</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.slf4j</groupId>
  41. <artifactId>slf4j-simple</artifactId>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-jar-plugin</artifactId>
  49. <configuration>
  50. <archive>
  51. <manifest>
  52. <addClasspath>false</addClasspath>
  53. <mainClass>com.x.server.console.Main</mainClass>
  54. </manifest>
  55. </archive>
  56. </configuration>
  57. </plugin>
  58. <plugin>
  59. <groupId>com.coderplus.maven.plugins</groupId>
  60. <artifactId>copy-rename-maven-plugin</artifactId>
  61. <executions>
  62. <execution>
  63. <phase>verify</phase>
  64. <goals>
  65. <goal>copy</goal>
  66. </goals>
  67. <configuration>
  68. <sourceFile>target/${project.artifactId}.jar</sourceFile>
  69. <destinationFile>../console.jar</destinationFile>
  70. </configuration>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.codehaus.mojo</groupId>
  76. <artifactId>exec-maven-plugin</artifactId>
  77. <executions>
  78. <execution>
  79. <id>createVersionFile</id>
  80. <phase>install</phase>
  81. <goals>
  82. <goal>java</goal>
  83. </goals>
  84. <configuration>
  85. <addOutputToClasspath>true</addOutputToClasspath>
  86. <includePluginDependencies>true</includePluginDependencies>
  87. <includeProjectDependencies>true</includeProjectDependencies>
  88. <mainClass>com.x.base.core.project.build.CreateVersionFile
  89. </mainClass>
  90. <arguments>
  91. <argument>${basedir}</argument>
  92. </arguments>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </project>