pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <artifactId>MicroCommunity</artifactId>
  6. <groupId>com.java110</groupId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>Api</artifactId>
  11. <name>Api</name>
  12. <!-- FIXME change it to the project's website -->
  13. <url>http://www.example.com</url>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven.compiler.source>1.7</maven.compiler.source>
  17. <maven.compiler.target>1.7</maven.compiler.target>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.java110</groupId>
  22. <artifactId>java110-service</artifactId>
  23. <exclusions>
  24. <exclusion>
  25. <artifactId>java110-db</artifactId>
  26. <groupId>com.java110</groupId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.java110</groupId>
  32. <artifactId>java110-config</artifactId>
  33. <scope>provided</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.java110</groupId>
  37. <artifactId>java110-event</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>junit</groupId>
  41. <artifactId>junit</artifactId>
  42. <version>4.11</version>
  43. <scope>test</scope>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <finalName>Api</finalName>
  48. <plugins>
  49. <plugin>
  50. <groupId>org.apache.maven.plugins</groupId>
  51. <artifactId>maven-dependency-plugin</artifactId>
  52. <version>2.10</version>
  53. <executions>
  54. <execution>
  55. <id>unpack</id>
  56. <phase>generate-resources</phase>
  57. <goals>
  58. <goal>unpack</goal>
  59. </goals>
  60. <configuration>
  61. <artifactItems>
  62. <artifactItem>
  63. <groupId>com.java110</groupId>
  64. <artifactId>java110-config</artifactId>
  65. <version>${microcommunity.version}</version>
  66. <type>jar</type>
  67. <overWrite>true</overWrite>
  68. <outputDirectory>${project.build.directory}/classes</outputDirectory>
  69. </artifactItem>
  70. </artifactItems>
  71. </configuration>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. <configuration>
  79. <mainClass>com.java110.api.ApiApplicationStart</mainClass>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-javadoc-plugin</artifactId>
  85. <version>2.10.4</version>
  86. <configuration>
  87. <aggregate>true</aggregate>
  88. <reportOutputDirectory>../javadocs</reportOutputDirectory>
  89. <destDir>security-javadoc</destDir>
  90. <javadocExecutable>${java.home}bin/javadoc</javadocExecutable>
  91. <tags>
  92. <tag>
  93. <name>Description</name>
  94. <placement>a</placement>
  95. <head>功能描述:</head>
  96. </tag>
  97. </tags>
  98. </configuration>
  99. </plugin>
  100. </plugins>
  101. </build>
  102. </project>