swagger-annotations-2.2.8.pom 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.core.v3</groupId>
  5. <artifactId>swagger-project</artifactId>
  6. <version>2.2.8</version>
  7. <relativePath>../..</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>swagger-annotations</artifactId>
  11. <name>swagger-annotations</name>
  12. <description>swagger-annotations</description>
  13. <build>
  14. <sourceDirectory>src/main/java</sourceDirectory>
  15. <defaultGoal>install</defaultGoal>
  16. <plugins>
  17. <plugin>
  18. <groupId>biz.aQute.bnd</groupId>
  19. <artifactId>bnd-maven-plugin</artifactId>
  20. </plugin>
  21. <plugin>
  22. <groupId>org.apache.maven.plugins</groupId>
  23. <artifactId>maven-jar-plugin</artifactId>
  24. <configuration>
  25. <archive>
  26. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  27. <manifestEntries>
  28. <Automatic-Module-Name>io.swagger.v3.oas.annotations</Automatic-Module-Name>
  29. </manifestEntries>
  30. </archive>
  31. </configuration>
  32. </plugin>
  33. <plugin>
  34. <groupId>io.swagger.core.v3</groupId>
  35. <artifactId>swagger-eclipse-transformer-maven-plugin</artifactId>
  36. <version>${project.version}</version>
  37. <configuration>
  38. <attach>false</attach>
  39. <classifier>jakarta</classifier>
  40. <outputDirectory>${project.basedir}/../swagger-project-jakarta/modules/${project.artifactId}-jakarta/transformed</outputDirectory>
  41. </configuration>
  42. <executions>
  43. <execution>
  44. <id>transform-jakarta</id>
  45. <goals>
  46. <goal>run</goal>
  47. </goals>
  48. <phase>package</phase>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. </plugins>
  53. </build>
  54. <profiles>
  55. <profile>
  56. <!-- this is used during release (see CI/CI.md file for details) to prepare javadocs for publishing to gh-pages -->
  57. <id>release</id>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-enforcer-plugin</artifactId>
  63. <version>${enforcer-plugin-version}</version>
  64. <executions>
  65. <execution>
  66. <id>enforce-no-snapshots</id>
  67. <goals>
  68. <goal>enforce</goal>
  69. </goals>
  70. <configuration>
  71. <rules>
  72. <requireReleaseVersion>
  73. <message>Publish javadocs for a SNAPSHOT is not allowed.</message>
  74. </requireReleaseVersion>
  75. </rules>
  76. <fail>true</fail>
  77. </configuration>
  78. </execution>
  79. </executions>
  80. </plugin>
  81. <plugin>
  82. <artifactId>maven-resources-plugin</artifactId>
  83. <version>3.1.0</version>
  84. <executions>
  85. <execution>
  86. <id>copy-resources</id>
  87. <phase>deploy</phase>
  88. <goals>
  89. <goal>copy-resources</goal>
  90. </goals>
  91. <configuration>
  92. <outputDirectory>${project.build.directory}/javadocprep/swagger-core/${project.version}/apidocs</outputDirectory>
  93. <resources>
  94. <resource>
  95. <directory>${project.build.directory}/apidocs</directory>
  96. <filtering>true</filtering>
  97. </resource>
  98. </resources>
  99. </configuration>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. </plugins>
  104. </build>
  105. </profile>
  106. </profiles>
  107. <dependencies>
  108. <dependency>
  109. <groupId>jakarta.ws.rs</groupId>
  110. <artifactId>jakarta.ws.rs-api</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.testng</groupId>
  115. <artifactId>testng</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. </dependencies>
  119. </project>