|
44 | 44 | <groupId>com.google.j2objc</groupId>
|
45 | 45 | <artifactId>j2objc-annotations</artifactId>
|
46 | 46 | </dependency>
|
47 |
| - <!-- TODO(cpovirk): does this comment belong on the <dependency> in <profiles>? --> |
48 |
| - <!-- TODO(cpovirk): want this only for dependency plugin but seems not to work there? Maven runs without failure, but the resulting Javadoc is missing the hoped-for inherited text --> |
49 | 47 | </dependencies>
|
50 | 48 | <build>
|
51 | 49 | <resources>
|
|
106 | 104 | <plugin>
|
107 | 105 | <artifactId>maven-source-plugin</artifactId>
|
108 | 106 | </plugin>
|
109 |
| - <!-- TODO(cpovirk): include JDK sources when building testlib doc, too --> |
110 |
| - <plugin> |
111 |
| - <artifactId>maven-dependency-plugin</artifactId> |
112 |
| - <executions> |
113 |
| - <execution> |
114 |
| - <id>unpack-jdk-sources</id> |
115 |
| - <phase>generate-sources</phase> |
116 |
| - <goals><goal>unpack-dependencies</goal></goals> |
117 |
| - <configuration> |
118 |
| - <includeArtifactIds>srczip</includeArtifactIds> |
119 |
| - <outputDirectory>${project.build.directory}/jdk-sources</outputDirectory> |
120 |
| - <silent>false</silent> |
121 |
| - <!-- Exclude module-info files (since we're using -source 8 to avoid other modules problems) and FileDescriptor (which uses a language feature not available in Java 8). --> |
122 |
| - <excludes>**/module-info.java,**/java/io/FileDescriptor.java</excludes> |
123 |
| - </configuration> |
124 |
| - </execution> |
125 |
| - </executions> |
126 |
| - </plugin> |
127 | 107 | <plugin>
|
128 | 108 | <groupId>org.codehaus.mojo</groupId>
|
129 | 109 | <artifactId>animal-sniffer-maven-plugin</artifactId>
|
130 | 110 | </plugin>
|
131 | 111 | <plugin>
|
132 | 112 | <artifactId>maven-javadoc-plugin</artifactId>
|
133 | 113 | <configuration>
|
134 |
| - <!-- TODO(cpovirk): Move this to the parent after making jdk-sources available there. --> |
135 |
| - <!-- TODO(cpovirk): can we use includeDependencySources and a local com.oracle.java:jdk-lib:noversion:sources instead of all this unzipping and manual sourcepath modification? --> |
136 |
| - <!-- (We need JDK *sources*, not just -link, so that {@inheritDoc} works.) --> |
137 |
| - <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources</sourcepath> |
138 |
| - |
139 | 114 | <!-- Passing `-subpackages com.google.common` breaks things, so we explicitly exclude everything else instead. -->
|
140 | 115 | <!-- excludePackageNames requires specification of packages separately from "all subpackages".
|
141 | 116 | https://issues.apache.org/jira/browse/MJAVADOC-584 -->
|
|
247 | 222 | </plugin>
|
248 | 223 | </plugins>
|
249 | 224 | </build>
|
250 |
| - <profiles> |
251 |
| - <profile> |
252 |
| - <id>srczip-parent</id> |
253 |
| - <activation> |
254 |
| - <file> |
255 |
| - <exists>${java.home}/../src.zip</exists> |
256 |
| - </file> |
257 |
| - </activation> |
258 |
| - <dependencies> |
259 |
| - <dependency> |
260 |
| - <groupId>jdk</groupId> |
261 |
| - <artifactId>srczip</artifactId> |
262 |
| - <version>999</version> |
263 |
| - <scope>system</scope> |
264 |
| - <systemPath>${java.home}/../src.zip</systemPath> |
265 |
| - <optional>true</optional> |
266 |
| - </dependency> |
267 |
| - </dependencies> |
268 |
| - </profile> |
269 |
| - <profile> |
270 |
| - <id>srczip-lib</id> |
271 |
| - <activation> |
272 |
| - <file> |
273 |
| - <exists>${java.home}/lib/src.zip</exists> |
274 |
| - </file> |
275 |
| - </activation> |
276 |
| - <dependencies> |
277 |
| - <dependency> |
278 |
| - <groupId>jdk</groupId> |
279 |
| - <artifactId>srczip</artifactId> |
280 |
| - <version>999</version> |
281 |
| - <scope>system</scope> |
282 |
| - <systemPath>${java.home}/lib/src.zip</systemPath> |
283 |
| - <optional>true</optional> |
284 |
| - </dependency> |
285 |
| - </dependencies> |
286 |
| - <build> |
287 |
| - <plugins> |
288 |
| - <plugin> |
289 |
| - <artifactId>maven-javadoc-plugin</artifactId> |
290 |
| - <configuration> |
291 |
| - <!-- We need to point at the java.base subdirectory because Maven appears to assume that package foo.bar is located in foo/bar and not java.base/foo/bar when translating excludePackageNames into filenames to pass to javadoc. (Note that manually passing -exclude to javadoc appears to possibly not work at all for java.* types??) Also, referring only to java.base avoids a lot of other sources. --> |
292 |
| - <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources/java.base</sourcepath> |
293 |
| - </configuration> |
294 |
| - </plugin> |
295 |
| - </plugins> |
296 |
| - </build> |
297 |
| - </profile> |
298 |
| - </profiles> |
299 | 225 | </project>
|
0 commit comments