pom.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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</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>o2oa</groupId>
  41. <artifactId>x_message_core_entity</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.slf4j</groupId>
  45. <artifactId>slf4j-simple</artifactId>
  46. </dependency>
  47. </dependencies>
  48. <build>
  49. <plugins>
  50. <plugin>
  51. <groupId>org.apache.maven.plugins</groupId>
  52. <artifactId>maven-jar-plugin</artifactId>
  53. <version>3.2.0</version>
  54. <configuration>
  55. <archive>
  56. <manifest>
  57. <addClasspath>false</addClasspath>
  58. <mainClass>com.x.server.console.Main</mainClass>
  59. </manifest>
  60. </archive>
  61. </configuration>
  62. </plugin>
  63. <plugin>
  64. <groupId>com.coderplus.maven.plugins</groupId>
  65. <artifactId>copy-rename-maven-plugin</artifactId>
  66. <version>1.0.1</version>
  67. <executions>
  68. <execution>
  69. <phase>verify</phase>
  70. <goals>
  71. <goal>copy</goal>
  72. </goals>
  73. <configuration>
  74. <sourceFile>target/${project.artifactId}.jar</sourceFile>
  75. <destinationFile>../console.jar</destinationFile>
  76. </configuration>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. <plugin>
  81. <groupId>org.codehaus.mojo</groupId>
  82. <artifactId>exec-maven-plugin</artifactId>
  83. <executions>
  84. <execution>
  85. <id>packageO2server</id>
  86. <phase>install</phase>
  87. <goals>
  88. <goal>java</goal>
  89. </goals>
  90. <configuration>
  91. <addOutputToClasspath>true</addOutputToClasspath>
  92. <includePluginDependencies>true</includePluginDependencies>
  93. <includeProjectDependencies>true</includeProjectDependencies>
  94. <mainClass>com.x.base.core.project.build.PackageO2server
  95. </mainClass>
  96. <arguments>
  97. <argument>${basedir}</argument>
  98. </arguments>
  99. </configuration>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. </plugins>
  104. </build>
  105. </project>