|
104 | 104 |
|
105 | 105 | <packaging>jar</packaging> |
106 | 106 |
|
| 107 | + <!-- activating any profile switches off the activeByDefault "default" one, so config that every build needs belongs here rather than in a profile that "mvn deploy -P release" turns off --> |
| 108 | + <build> |
| 109 | + <plugins> |
| 110 | + <plugin> |
| 111 | + <groupId>org.apache.maven.plugins</groupId> |
| 112 | + <artifactId>maven-jar-plugin</artifactId> |
| 113 | + <version>3.5.1</version> |
| 114 | + <configuration> |
| 115 | + <archive> |
| 116 | + <manifestEntries> |
| 117 | + <!-- JPMS consumers "requires se.michaelthelin.spotify"; without this the name is derived from the file name instead and their module graph breaks --> |
| 118 | + <Automatic-Module-Name>se.michaelthelin.spotify</Automatic-Module-Name> |
| 119 | + </manifestEntries> |
| 120 | + </archive> |
| 121 | + </configuration> |
| 122 | + </plugin> |
| 123 | + </plugins> |
| 124 | + </build> |
| 125 | + |
107 | 126 | <profiles> |
108 | 127 | <profile> |
109 | 128 | <id>default</id> |
|
163 | 182 | <artifactId>maven-surefire-plugin</artifactId> |
164 | 183 | <version>3.5.6</version> |
165 | 184 | </plugin> |
166 | | - <plugin> |
167 | | - <groupId>org.apache.maven.plugins</groupId> |
168 | | - <artifactId>maven-jar-plugin</artifactId> |
169 | | - <version>3.5.1</version> |
170 | | - <configuration> |
171 | | - <archive> |
172 | | - <manifestEntries> |
173 | | - <Automatic-Module-Name>se.michaelthelin.spotify</Automatic-Module-Name> |
174 | | - </manifestEntries> |
175 | | - </archive> |
176 | | - </configuration> |
177 | | - </plugin> |
178 | 185 | </plugins> |
179 | 186 | </build> |
180 | 187 | </profile> |
|
199 | 206 | <!-- accessors and builder setters in model_objects carry no prose of their own, |
200 | 207 | so only broken syntax and dead references should be reported --> |
201 | 208 | <doclint>all,-missing</doclint> |
| 209 | + <!-- the jar carries an Automatic-Module-Name, which is enough for javadoc to switch to the modular layout; the published pages live at package paths, so keep generating them there --> |
| 210 | + <legacyMode>true</legacyMode> |
202 | 211 | </configuration> |
203 | 212 | </plugin> |
204 | 213 | </plugins> |
|
262 | 271 | </executions> |
263 | 272 | <configuration> |
264 | 273 | <doclint>all,-missing</doclint> |
| 274 | + <!-- see the javadoc-check profile: an Automatic-Module-Name alone flips javadoc to the modular layout and would move every published page --> |
| 275 | + <legacyMode>true</legacyMode> |
265 | 276 | <outputDirectory>${project.basedir}/</outputDirectory> |
266 | 277 | </configuration> |
267 | 278 | </plugin> |
|
0 commit comments