|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | | - Copyright 2017 Basis Technology Corp. |
| 3 | + Copyright 2018 Basis Technology Corp. |
4 | 4 |
|
5 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
6 | 6 | you may not use this file except in compliance with the License. |
|
42 | 42 | </distributionManagement> |
43 | 43 | <properties> |
44 | 44 | <bnd-maven-plugin.version>3.2.0</bnd-maven-plugin.version> |
45 | | - <maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version> |
| 45 | + <build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version> |
| 46 | + <http-components-version>4.5.2</http-components-version> |
| 47 | + <maven-clean-plugin.version>3.0.0</maven-clean-plugin.version> |
| 48 | + <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> |
| 49 | + <!-- There appears to be a regression between 3.0.0-M1 and 3.0.0 that causes |
| 50 | + exclusions to fail. And javadoc does not like the generated annotations |
| 51 | + source in the models sub-module. And none of these versions work with |
| 52 | + JDK 1.7. Hence the exclusion in Travis. --> |
| 53 | + <maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version> |
| 54 | + <maven-source-plugin.version>2.4</maven-source-plugin.version> |
| 55 | + <mockserver-version>3.10.2</mockserver-version> |
46 | 56 | <site-skin-version>1.5</site-skin-version> |
47 | 57 | </properties> |
48 | 58 | <modules> |
|
75 | 85 | </dependencyManagement> |
76 | 86 | <build> |
77 | 87 | <plugins> |
| 88 | + <plugin> |
| 89 | + <groupId>org.apache.maven.plugins</groupId> |
| 90 | + <artifactId>maven-clean-plugin</artifactId> |
| 91 | + <version>${maven-clean-plugin.version}</version> |
| 92 | + <configuration> |
| 93 | + <filesets> |
| 94 | + <fileset> |
| 95 | + <directory>${project.basedir}</directory> |
| 96 | + <includes> |
| 97 | + <include>**/mockserver.log</include> |
| 98 | + </includes> |
| 99 | + </fileset> |
| 100 | + </filesets> |
| 101 | + <followSymlinks>false</followSymlinks> |
| 102 | + </configuration> |
| 103 | + </plugin> |
78 | 104 | <plugin> |
79 | 105 | <groupId>org.apache.maven.plugins</groupId> |
80 | 106 | <artifactId>maven-compiler-plugin</artifactId> |
81 | | - <version>3.7.0</version> |
| 107 | + <version>${maven-compiler-plugin.version}</version> |
82 | 108 | <configuration> |
83 | 109 | <compilerVersion>1.7</compilerVersion> |
84 | 110 | <source>1.7</source> |
|
102 | 128 | <plugin> |
103 | 129 | <groupId>org.apache.maven.plugins</groupId> |
104 | 130 | <artifactId>maven-javadoc-plugin</artifactId> |
105 | | - <version>2.10.3</version> |
| 131 | + <version>${maven-javadoc-plugin.version}</version> |
106 | 132 | <executions> |
107 | 133 | <execution> |
108 | | - <id>aggregate</id> |
109 | | - <goals> |
110 | | - <goal>aggregate</goal> |
111 | | - </goals> |
112 | | - <phase>site</phase> |
113 | | - </execution> |
114 | | - <execution> |
115 | | - <id>plain</id> |
| 134 | + <id>attach-javadocs</id> |
116 | 135 | <goals> |
117 | 136 | <goal>jar</goal> |
118 | 137 | </goals> |
119 | | - <phase>package</phase> |
120 | 138 | </execution> |
121 | 139 | </executions> |
| 140 | + <configuration> |
| 141 | + <sourceFileExcludes> |
| 142 | + <exclude>**/target/generated-sources/annotations/com/basistech/rosette/apimodel/**</exclude> |
| 143 | + </sourceFileExcludes> |
| 144 | + </configuration> |
122 | 145 | </plugin> |
123 | 146 | <plugin> |
124 | 147 | <groupId>org.apache.maven.plugins</groupId> |
125 | 148 | <artifactId>maven-source-plugin</artifactId> |
126 | | - <version>2.4</version> |
| 149 | + <version>${maven-source-plugin.version}</version> |
127 | 150 | <executions> |
128 | 151 | <execution> |
129 | 152 | <id>attach-sources</id> |
|
151 | 174 | <plugin> |
152 | 175 | <groupId>org.codehaus.mojo</groupId> |
153 | 176 | <artifactId>build-helper-maven-plugin</artifactId> |
154 | | - <version>3.0.0</version> |
| 177 | + <version>${build-helper-maven-plugin.version}</version> |
155 | 178 | <executions> |
156 | 179 | <execution> |
157 | 180 | <id>add-source</id> |
|
167 | 190 | </execution> |
168 | 191 | </executions> |
169 | 192 | </plugin> |
170 | | - <plugin> |
171 | | - <groupId>org.apache.maven.plugins</groupId> |
172 | | - <artifactId>maven-javadoc-plugin</artifactId> |
173 | | - <configuration> |
174 | | - <!-- is there a better way? builder-helper has add-source but no remove-source --> |
175 | | - <sourcepath>model/target/generated-sources/delombok; |
176 | | - json/src/main/java; |
177 | | - common/src/main/java; |
178 | | - api/src/main/java</sourcepath> |
179 | | - </configuration> |
180 | | - </plugin> |
181 | 193 | </plugins> |
182 | 194 | <pluginManagement> |
183 | 195 | <plugins> |
|
196 | 208 | </plugins> |
197 | 209 | </pluginManagement> |
198 | 210 | </build> |
199 | | - <reporting> |
200 | | - <plugins> |
201 | | - <plugin> |
202 | | - <groupId>org.apache.maven.plugins</groupId> |
203 | | - <artifactId>maven-javadoc-plugin</artifactId> |
204 | | - <version>2.10.3</version> |
205 | | - <reportSets> |
206 | | - <reportSet> |
207 | | - <id>non-aggregate</id> |
208 | | - <reports> |
209 | | - <report>javadoc</report> |
210 | | - </reports> |
211 | | - </reportSet> |
212 | | - <reportSet> |
213 | | - <id>aggregate</id> |
214 | | - <reports> |
215 | | - <report>aggregate</report> |
216 | | - </reports> |
217 | | - </reportSet> |
218 | | - </reportSets> |
219 | | - </plugin> |
220 | | - </plugins> |
221 | | - </reporting> |
| 211 | + <profiles> |
| 212 | + <profile> |
| 213 | + <id>aggregate-javadoc</id> |
| 214 | + <build> |
| 215 | + <pluginManagement> |
| 216 | + <plugins> |
| 217 | + <plugin> |
| 218 | + <groupId>org.apache.maven.plugins</groupId> |
| 219 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 220 | + <version>${maven-javadoc-plugin.version}</version> |
| 221 | + <executions> |
| 222 | + <execution> |
| 223 | + <id>gh-pages</id> |
| 224 | + <goals> |
| 225 | + <goal>aggregate-jar</goal> |
| 226 | + </goals> |
| 227 | + </execution> |
| 228 | + </executions> |
| 229 | + <configuration> |
| 230 | + <!-- is there a better way? builder-helper has add-source but no remove-source --> |
| 231 | + <sourcepath>model/target/generated-sources/delombok; |
| 232 | + json/src/main/java; |
| 233 | + common/src/main/java; |
| 234 | + api/src/main/java</sourcepath> |
| 235 | + </configuration> |
| 236 | + </plugin> |
| 237 | + </plugins> |
| 238 | + </pluginManagement> |
| 239 | + </build> |
| 240 | + </profile> |
| 241 | + </profiles> |
222 | 242 | </project> |
0 commit comments