|
30 | 30 |
|
31 | 31 | <properties> |
32 | 32 | <requiredCodeCoverage>0.90</requiredCodeCoverage> |
33 | | - <!-- Allow disabling inclusion of Javadoc static resources --> |
34 | | - <skipJavadocResources>false</skipJavadocResources> |
35 | 33 |
|
36 | 34 | <!-- For documentation only; actual coordination is done by the BOMs below --> |
37 | 35 | <spring-framework.version>6.2.11</spring-framework.version> |
|
66 | 64 | <execution><goals><goal>repackage</goal></goals></execution> |
67 | 65 | </executions> |
68 | 66 | </plugin> |
69 | | - <!-- Generate unified Javadoc (all modules) and copy into static /v3/javadoc. --> |
| 67 | + |
| 68 | + <!-- Static analysis helpers (inherit configuration from parent) --> |
| 69 | + <plugin> |
| 70 | + <groupId>org.gaul</groupId> |
| 71 | + <artifactId>modernizer-maven-plugin</artifactId> |
| 72 | + </plugin> |
| 73 | + <plugin> |
| 74 | + <groupId>com.github.spotbugs</groupId> |
| 75 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 76 | + </plugin> |
70 | 77 | <plugin> |
71 | 78 | <groupId>org.apache.maven.plugins</groupId> |
72 | 79 | <artifactId>maven-javadoc-plugin</artifactId> |
73 | | - <executions> |
74 | | - <execution> |
75 | | - <id>unified-site</id> |
76 | | - <phase>prepare-package</phase> |
77 | | - <goals> |
78 | | - <goal>javadoc</goal> |
79 | | - </goals> |
80 | | - <configuration> |
81 | | - <skip>${skipJavadocResources}</skip> |
82 | | - <doctitle>QPP Conversion Tool API</doctitle> |
83 | | - <windowtitle>QPP Conversion Tool API</windowtitle> |
84 | | - <quiet>true</quiet> |
85 | | - <doclint>none</doclint> |
86 | | - <failOnError>false</failOnError> |
87 | | - <!-- Explicitly stitch modules together. Order does not matter; colon separated. --> |
88 | | - <sourcepath>${project.basedir}/../commons/src/main/java:${project.basedir}/../converter/src/main/java:${project.basedir}/../commandline/src/main/java:${project.basedir}/src/main/java</sourcepath> |
89 | | - <!-- Limit to our Java package namespace --> |
90 | | - <subpackages>gov.cms.qpp.conversion</subpackages> |
91 | | - <encoding>UTF-8</encoding> |
92 | | - <!-- For the 'javadoc' goal the correct parameter is outputDirectory (reportOutputDirectory is ignored). --> |
93 | | - <outputDirectory>${project.build.directory}/aggregated-javadoc</outputDirectory> |
94 | | - <additionalJOptions> |
95 | | - <!-- Avoid overly strict doclint on JDK17 while legacy comments are cleaned up --> |
96 | | - <additionalJOption>-Xdoclint:none</additionalJOption> |
97 | | - </additionalJOptions> |
98 | | - </configuration> |
99 | | - </execution> |
100 | | - </executions> |
101 | 80 | </plugin> |
| 81 | + |
| 82 | + <!-- Copy aggregated javadoc from parent to rest-api resources --> |
102 | 83 | <plugin> |
103 | 84 | <groupId>org.apache.maven.plugins</groupId> |
104 | 85 | <artifactId>maven-resources-plugin</artifactId> |
105 | 86 | <version>3.3.1</version> |
106 | 87 | <executions> |
107 | 88 | <execution> |
108 | | - <id>copy-aggregated-javadoc</id> |
109 | | - <!-- Must run AFTER aggregate javadoc (prepare-package) so we copy the freshly generated index.html, not a stale or previous custom landing page. --> |
110 | | - <phase>prepare-package</phase> |
111 | | - <goals><goal>copy-resources</goal></goals> |
| 89 | + <id>copy-javadoc</id> |
| 90 | + <phase>process-classes</phase> |
| 91 | + <goals> |
| 92 | + <goal>copy-resources</goal> |
| 93 | + </goals> |
112 | 94 | <configuration> |
113 | | - <skip>${skipJavadocResources}</skip> |
114 | | - <outputDirectory>${project.build.outputDirectory}/public/v3/javadoc</outputDirectory> |
| 95 | + <outputDirectory>${project.build.outputDirectory}/static/v3/javadoc</outputDirectory> |
115 | 96 | <resources> |
116 | 97 | <resource> |
117 | | - <!-- The javadoc goal writes into aggregated-javadoc/apidocs --> |
118 | | - <directory>${project.build.directory}/aggregated-javadoc/apidocs</directory> |
| 98 | + <directory>${project.basedir}/../target/reports/apidocs</directory> |
119 | 99 | <filtering>false</filtering> |
120 | 100 | </resource> |
121 | 101 | </resources> |
|
124 | 104 | </executions> |
125 | 105 | </plugin> |
126 | 106 |
|
127 | | - <!-- Static analysis helpers (inherit configuration from parent) --> |
128 | | - <plugin> |
129 | | - <groupId>org.gaul</groupId> |
130 | | - <artifactId>modernizer-maven-plugin</artifactId> |
131 | | - </plugin> |
132 | | - <plugin> |
133 | | - <groupId>com.github.spotbugs</groupId> |
134 | | - <artifactId>spotbugs-maven-plugin</artifactId> |
135 | | - </plugin> |
136 | | - |
137 | 107 | <!-- Enforce a single version per GA to catch dependency drift early --> |
138 | 108 | <plugin> |
139 | 109 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments