|
33 | 33 | </plugin>
|
34 | 34 | </plugins>
|
35 | 35 | </build>
|
36 |
| - <profiles> |
37 |
| - <profile> |
38 |
| - <id>publish-javadocs</id> |
39 |
| - <build> |
40 |
| - <plugins> |
41 |
| - <plugin> |
42 |
| - <groupId>org.apache.maven.plugins</groupId> |
43 |
| - <artifactId>maven-enforcer-plugin</artifactId> |
44 |
| - <version>${enforcer-plugin-version}</version> |
45 |
| - <executions> |
46 |
| - <execution> |
47 |
| - <id>enforce-no-snapshots</id> |
48 |
| - <goals> |
49 |
| - <goal>enforce</goal> |
50 |
| - </goals> |
51 |
| - <configuration> |
52 |
| - <rules> |
53 |
| - <requireReleaseVersion> |
54 |
| - <message>Publish javadocs for a SNAPSHOT is not allowed.</message> |
55 |
| - </requireReleaseVersion> |
56 |
| - </rules> |
57 |
| - <fail>true</fail> |
58 |
| - </configuration> |
59 |
| - </execution> |
60 |
| - </executions> |
61 |
| - </plugin> |
62 |
| - <plugin> |
63 |
| - <artifactId>maven-resources-plugin</artifactId> |
64 |
| - <version>2.7</version> |
65 |
| - <executions> |
66 |
| - <execution> |
67 |
| - <id>copy-resources</id> |
68 |
| - <!-- here the phase you need --> |
69 |
| - <phase>deploy</phase> |
70 |
| - <goals> |
71 |
| - <goal>copy-resources</goal> |
72 |
| - </goals> |
73 |
| - <configuration> |
74 |
| - <outputDirectory>${project.build.directory}/javadocprep/swagger-core/${project.version}/apidocs</outputDirectory> |
75 |
| - <resources> |
76 |
| - <resource> |
77 |
| - <directory>${project.build.directory}/apidocs</directory> |
78 |
| - <filtering>true</filtering> |
79 |
| - </resource> |
80 |
| - </resources> |
81 |
| - </configuration> |
82 |
| - </execution> |
83 |
| - </executions> |
84 |
| - </plugin> |
85 |
| - <plugin> |
86 |
| - <groupId>com.pyx4j</groupId> |
87 |
| - <artifactId>maven-junction-plugin</artifactId> |
88 |
| - <executions> |
89 |
| - <execution> |
90 |
| - <phase>deploy</phase> |
91 |
| - <goals> |
92 |
| - <goal>link</goal> |
93 |
| - </goals> |
94 |
| - </execution> |
95 |
| - </executions> |
96 |
| - <configuration> |
97 |
| - <links> |
98 |
| - <!-- link the html generated by client to webapp directory --> |
99 |
| - <link> |
100 |
| - <dst>${project.build.directory}/javadocprep/swagger-core/current</dst> |
101 |
| - <src>${project.build.directory}/javadocprep/swagger-core/${project.version}</src> |
102 |
| - </link> |
103 |
| - </links> |
104 |
| - </configuration> |
105 |
| - </plugin> |
106 |
| - <plugin> |
107 |
| - <groupId>org.apache.maven.plugins</groupId> |
108 |
| - <artifactId>maven-scm-publish-plugin</artifactId> |
109 |
| - <version>1.1</version> |
110 |
| - <configuration> |
111 |
| - <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory> |
112 |
| - <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment> |
113 |
| - <content>${project.build.directory}/javadocprep</content> |
114 |
| - <skipDeletedFiles>true</skipDeletedFiles> |
115 |
| - <pubScmUrl>scm:git:https://github.com/swagger-api/swagger-core</pubScmUrl> |
116 |
| - <scmBranch>gh-pages</scmBranch> |
117 |
| - </configuration> |
118 |
| - <executions> |
119 |
| - <execution> |
120 |
| - <id>publish-javadocs</id> |
121 |
| - <phase>deploy</phase> |
122 |
| - <goals> |
123 |
| - <goal>publish-scm</goal> |
124 |
| - </goals> |
125 |
| - </execution> |
126 |
| - </executions> |
127 |
| - </plugin> |
128 |
| - </plugins> |
129 |
| - </build> |
130 |
| - </profile> |
131 |
| - </profiles> |
132 | 36 | </project>
|
0 commit comments