pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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>5.3</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_organization_core_entity</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>o2oa</groupId>
  33. <artifactId>x_cms_core_entity</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>o2oa</groupId>
  37. <artifactId>x_processplatform_core_entity</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>o2oa</groupId>
  41. <artifactId>x_query_core_entity</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>o2oa</groupId>
  45. <artifactId>x_message_core_entity</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.slf4j</groupId>
  49. <artifactId>slf4j-simple</artifactId>
  50. </dependency>
  51. </dependencies>
  52. <build>
  53. <plugins>
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-jar-plugin</artifactId>
  57. <version>3.2.0</version>
  58. <configuration>
  59. <archive>
  60. <manifest>
  61. <addClasspath>false</addClasspath>
  62. <mainClass>com.x.server.console.Main</mainClass>
  63. </manifest>
  64. <manifestEntries>
  65. <Premain-Class>com.x.server.console.InstrumentationAgent</Premain-Class>
  66. </manifestEntries>
  67. </archive>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>com.coderplus.maven.plugins</groupId>
  72. <artifactId>copy-rename-maven-plugin</artifactId>
  73. <version>1.0.1</version>
  74. <executions>
  75. <execution>
  76. <phase>verify</phase>
  77. <goals>
  78. <goal>copy</goal>
  79. </goals>
  80. <configuration>
  81. <sourceFile>target/${project.artifactId}.jar</sourceFile>
  82. <destinationFile>../console.jar</destinationFile>
  83. </configuration>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. <plugin>
  88. <groupId>org.codehaus.mojo</groupId>
  89. <artifactId>exec-maven-plugin</artifactId>
  90. <executions>
  91. <execution>
  92. <id>packageO2server</id>
  93. <phase>install</phase>
  94. <goals>
  95. <goal>java</goal>
  96. </goals>
  97. <configuration>
  98. <addOutputToClasspath>true</addOutputToClasspath>
  99. <includePluginDependencies>true</includePluginDependencies>
  100. <includeProjectDependencies>true</includeProjectDependencies>
  101. <mainClass>com.x.base.core.project.build.PackageO2server
  102. </mainClass>
  103. <arguments>
  104. <argument>${basedir}</argument>
  105. </arguments>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <artifactId>maven-deploy-plugin</artifactId>
  112. <configuration>
  113. <skip>true</skip>
  114. </configuration>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </project>