swagger-annotations-1.6.1.pom 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <parent>
  4. <groupId>io.swagger</groupId>
  5. <artifactId>swagger-project</artifactId>
  6. <version>1.6.1</version>
  7. <relativePath>../..</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <groupId>io.swagger</groupId>
  11. <artifactId>swagger-annotations</artifactId>
  12. <version>1.6.1</version>
  13. <packaging>bundle</packaging>
  14. <name>swagger-annotations</name>
  15. <build>
  16. <sourceDirectory>src/main/java</sourceDirectory>
  17. <defaultGoal>install</defaultGoal>
  18. <plugins>
  19. <plugin>
  20. <groupId>org.apache.felix</groupId>
  21. <artifactId>maven-bundle-plugin</artifactId>
  22. <version>${felix-version}</version>
  23. <extensions>true</extensions>
  24. <configuration>
  25. <instructions>
  26. <Export-Package>io.swagger.annotations</Export-Package>
  27. </instructions>
  28. </configuration>
  29. </plugin>
  30. </plugins>
  31. </build>
  32. <profiles>
  33. <profile>
  34. <id>publish-javadocs</id>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.apache.maven.plugins</groupId>
  39. <artifactId>maven-enforcer-plugin</artifactId>
  40. <version>${enforcer-plugin-version}</version>
  41. <executions>
  42. <execution>
  43. <id>enforce-no-snapshots</id>
  44. <goals>
  45. <goal>enforce</goal>
  46. </goals>
  47. <configuration>
  48. <rules>
  49. <requireReleaseVersion>
  50. <message>Publish javadocs for a SNAPSHOT is not allowed.</message>
  51. </requireReleaseVersion>
  52. </rules>
  53. <fail>true</fail>
  54. </configuration>
  55. </execution>
  56. </executions>
  57. </plugin>
  58. <plugin>
  59. <artifactId>maven-resources-plugin</artifactId>
  60. <version>2.7</version>
  61. <executions>
  62. <execution>
  63. <id>copy-resources</id>
  64. <!-- here the phase you need -->
  65. <phase>deploy</phase>
  66. <goals>
  67. <goal>copy-resources</goal>
  68. </goals>
  69. <configuration>
  70. <outputDirectory>${project.build.directory}/javadocprep/swagger-core/${project.version}/apidocs</outputDirectory>
  71. <resources>
  72. <resource>
  73. <directory>${project.build.directory}/apidocs</directory>
  74. <filtering>true</filtering>
  75. </resource>
  76. </resources>
  77. </configuration>
  78. </execution>
  79. </executions>
  80. </plugin>
  81. <plugin>
  82. <groupId>com.pyx4j</groupId>
  83. <artifactId>maven-junction-plugin</artifactId>
  84. <executions>
  85. <execution>
  86. <phase>deploy</phase>
  87. <goals>
  88. <goal>link</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. <configuration>
  93. <links>
  94. <!-- link the html generated by client to webapp directory -->
  95. <link>
  96. <dst>${project.build.directory}/javadocprep/swagger-core/current</dst>
  97. <src>${project.build.directory}/javadocprep/swagger-core/${project.version}</src>
  98. </link>
  99. </links>
  100. </configuration>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-scm-publish-plugin</artifactId>
  105. <version>1.1</version>
  106. <configuration>
  107. <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory>
  108. <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment>
  109. <content>${project.build.directory}/javadocprep</content>
  110. <skipDeletedFiles>true</skipDeletedFiles>
  111. <pubScmUrl>scm:git:https://github.com/swagger-api/swagger-core</pubScmUrl>
  112. <scmBranch>gh-pages</scmBranch>
  113. </configuration>
  114. <executions>
  115. <execution>
  116. <id>publish-javadocs</id>
  117. <phase>deploy</phase>
  118. <goals>
  119. <goal>publish-scm</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. </profile>
  127. </profiles>
  128. </project>