Skip to content

Commit 290c168

Browse files
committed
[MPIR-454] Upgrade to Doxia 2.0.0 Milestone Stack
This closes #43
1 parent 8813fea commit 290c168

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+516
-477
lines changed

pom.xml

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,14 @@ under the License.
114114
</distributionManagement>
115115

116116
<properties>
117+
<javaVersion>8</javaVersion>
117118
<mavenVersion>3.6.3</mavenVersion>
118-
<doxiaVersion>1.11.1</doxiaVersion>
119-
<doxiaSitetoolsVersion>1.11.1</doxiaSitetoolsVersion>
120-
<scmVersion>2.1.0</scmVersion>
121119
<resolverVersion>1.4.1</resolverVersion>
122-
<sitePluginVersion>3.12.1</sitePluginVersion>
123-
<fluidoSkinVersion>1.11.1</fluidoSkinVersion>
120+
<doxiaVersion>2.0.0-M12</doxiaVersion>
121+
<doxiaSitetoolsVersion>2.0.0-M19</doxiaSitetoolsVersion>
122+
<scmVersion>2.1.0</scmVersion>
123+
<sitePluginVersion>4.0.0-M15</sitePluginVersion>
124+
<fluidoSkinVersion>2.0.0-M9</fluidoSkinVersion>
124125
<checkstyle.violation.ignore>ParameterNumber,MethodLength</checkstyle.violation.ignore>
125126
<project.build.outputTimestamp>2024-07-11T18:06:39Z</project.build.outputTimestamp>
126127
</properties>
@@ -129,18 +130,12 @@ under the License.
129130
<dependency>
130131
<groupId>org.apache.maven.reporting</groupId>
131132
<artifactId>maven-reporting-api</artifactId>
132-
<version>3.1.1</version>
133+
<version>4.0.0-M12</version>
133134
</dependency>
134135
<dependency>
135136
<groupId>org.apache.maven.reporting</groupId>
136137
<artifactId>maven-reporting-impl</artifactId>
137-
<version>3.2.0</version>
138-
<exclusions>
139-
<exclusion>
140-
<groupId>org.codehaus.plexus</groupId>
141-
<artifactId>plexus-container-default</artifactId>
142-
</exclusion>
143-
</exclusions>
138+
<version>4.0.0-M15</version>
144139
</dependency>
145140

146141
<!-- Maven -->
@@ -258,36 +253,18 @@ under the License.
258253
<groupId>org.apache.maven.doxia</groupId>
259254
<artifactId>doxia-sink-api</artifactId>
260255
<version>${doxiaVersion}</version>
261-
<exclusions>
262-
<exclusion>
263-
<groupId>org.codehaus.plexus</groupId>
264-
<artifactId>plexus-container-default</artifactId>
265-
</exclusion>
266-
</exclusions>
267256
</dependency>
268257
<dependency>
269258
<groupId>org.apache.maven.doxia</groupId>
270259
<artifactId>doxia-core</artifactId>
271260
<version>${doxiaVersion}</version>
272-
<exclusions>
273-
<exclusion>
274-
<groupId>org.codehaus.plexus</groupId>
275-
<artifactId>plexus-container-default</artifactId>
276-
</exclusion>
277-
</exclusions>
278261
</dependency>
279262

280263
<!-- Doxia Sitetools -->
281264
<dependency>
282265
<groupId>org.apache.maven.doxia</groupId>
283266
<artifactId>doxia-integration-tools</artifactId>
284267
<version>${doxiaSitetoolsVersion}</version>
285-
<exclusions>
286-
<exclusion>
287-
<groupId>org.codehaus.plexus</groupId>
288-
<artifactId>plexus-container-default</artifactId>
289-
</exclusion>
290-
</exclusions>
291268
</dependency>
292269

293270
<!-- Plexus -->
@@ -427,6 +404,13 @@ under the License.
427404
<keyalg>RSA</keyalg>
428405
</configuration>
429406
</plugin>
407+
<plugin>
408+
<groupId>org.apache.maven.plugins</groupId>
409+
<artifactId>maven-surefire-plugin</artifactId>
410+
<configuration>
411+
<argLine>-Dfile.encoding=UTF-8</argLine>
412+
</configuration>
413+
</plugin>
430414
</plugins>
431415
</pluginManagement>
432416
<plugins>
@@ -491,6 +475,35 @@ under the License.
491475
</properties>
492476
<build>
493477
<plugins>
478+
<plugin>
479+
<groupId>org.apache.maven.plugins</groupId>
480+
<artifactId>maven-clean-plugin</artifactId>
481+
<!--
482+
This is necessary if "mvn site" has been invoked previously with 3.x
483+
and leaves 0-byte files in the local repository for MRM Maven Plugin
484+
to serve which are broken from a consumer's PoV.
485+
-->
486+
<executions>
487+
<execution>
488+
<id>delete-0-byte-site-descriptors</id>
489+
<goals>
490+
<goal>clean</goal>
491+
</goals>
492+
<phase>pre-integration-test</phase>
493+
<configuration>
494+
<excludeDefaultDirectories>true</excludeDefaultDirectories>
495+
<filesets>
496+
<fileset>
497+
<directory>${settings.localRepository}/org/apache/apache</directory>
498+
<includes>
499+
<include>**/*-site*.xml</include>
500+
</includes>
501+
</fileset>
502+
</filesets>
503+
</configuration>
504+
</execution>
505+
</executions>
506+
</plugin>
494507
<plugin>
495508
<groupId>org.apache.maven.plugins</groupId>
496509
<artifactId>maven-invoker-plugin</artifactId>

src/it/MPIR-300/verify.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
plugins = new File( basedir, 'target/site/plugins.html' ).text;
20+
plugins = new File( basedir, 'target/reports/plugins.html' ).text;
2121

2222
// version of maven-invoker-plugin is defined in pluginManagement
2323
assert plugins.contains( '<td>1.invoker-pluginManagement</td>' );
@@ -31,4 +31,4 @@ assert plugins.contains( '<td>2.checkstyle-plugin</td>' );
3131
// version of maven-changes-plugin is defined in reporting (overriding pluginManagement and plugins)
3232
assert plugins.contains( '<td>3.changes-reporting</td>' );
3333

34-
return true;
34+
return true;

src/it/MPIR-349/parent/verify.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
File indexPage = new File( basedir, 'target/site/index.html' )
20+
File indexPage = new File( basedir, 'target/reports/index.html' )
2121
assert !indexPage.text.contains( 'sitePublishLocation' )
2222

23-
File modulesPage = new File( basedir, 'target/site/modules.html' )
23+
File modulesPage = new File( basedir, 'target/reports/modules.html' )
2424
assert !modulesPage.text.contains( 'sitePublishLocation' )

src/it/MPIR-375/verify.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
File log = new File( basedir, 'build.log' );
2020
assert !( log.text.contains("org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.eclipse.m2e:lifecycle-mapping:pom") );
2121

22-
plugins = new File( basedir, 'target/site/plugin-management.html' ).text;
22+
plugins = new File( basedir, 'target/reports/plugin-management.html' ).text;
2323

2424
// maven-javadoc-plugin is defined in pluginManagement and not excluded
2525
assert plugins.contains( 'maven-javadoc-plugin' );
2626

2727
// org.eclipse.m2e:lifecycle-mapping plugin is excluded
2828
assert !( plugins.contains( 'org.eclipse.m2e' ) );
29-
assert !( plugins.contains( 'lifecycle-mapping' ) );
29+
assert !( plugins.contains( 'lifecycle-mapping' ) );

src/it/MPIR-407/verify.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
dependencies = new File( basedir, 'target/site/dependencies.html' ).text;
20+
dependencies = new File( basedir, 'target/reports/dependencies.html' ).text;
2121

2222
assert !( dependencies.contains( 'The Apache Software License, Version 2.0' ) );
2323
assert !( dependencies.contains( 'Apache Public License 2.0' ) );

src/it/MPIR-412/verify.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ import groovy.xml.XmlParser
2222
// should be able to parse the output as XML
2323
parser = new XmlParser();
2424
parser.setFeature( 'http://apache.org/xml/features/disallow-doctype-decl', false );
25-
result = parser.parse( new File( basedir, 'target/site/dependencies.html' ) );
25+
result = parser.parse( new File( basedir, 'target/reports/dependencies.html' ) );
2626
assert result instanceof Node;

src/it/MPIR-431/verify.groovy

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,39 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
String html = new File( basedir, 'target/site/dependencies.html' ).text
19+
String html = new File( basedir, 'target/reports/dependencies.html' ).text
2020

21+
// Revise after DOXIA-704
2122
def summaryLine = '''\
2223
<tr class="b">
23-
<td align="right">compile: 1</td>
24-
<td align="right">compile: 45.5 kB</td>
25-
<td align="right">compile: 47</td>
26-
<td align="right">compile: 36</td>
27-
<td align="right">compile: 4</td>
28-
<td rowspan="3" style="vertical-align: middle;" align="center">1.3</td>
29-
<td align="right">compile: 1</td></tr>
24+
<td style="text-align: right;">compile: 1</td>
25+
<td style="text-align: right;">compile: 45.5 kB</td>
26+
<td style="text-align: right;">compile: 47</td>
27+
<td style="text-align: right;">compile: 36</td>
28+
<td style="text-align: right;">compile: 4</td>
29+
<td rowspan="3" style="text-align: center; vertical-align: middle;">1.3</td>
30+
<td style="text-align: right;">compile: 1</td></tr>
3031
<tr class="a">
31-
<td align="right">runtime: 1</td>
32-
<td align="right">runtime: 284.2 kB</td>
33-
<td align="right">runtime: 155</td>
34-
<td align="right">runtime: 133</td>
35-
<td align="right">runtime: 10</td>
36-
<td align="right">runtime: 1</td></tr>
32+
<td style="text-align: right;">runtime: 1</td>
33+
<td style="text-align: right;">runtime: 284.2 kB</td>
34+
<td style="text-align: right;">runtime: 155</td>
35+
<td style="text-align: right;">runtime: 133</td>
36+
<td style="text-align: right;">runtime: 10</td>
37+
<td style="text-align: right;">runtime: 1</td></tr>
3738
<tr class="b">
38-
<td align="right">provided: 1</td>
39-
<td align="right">provided: 85.7 kB</td>
40-
<td align="right">provided: 209</td>
41-
<td align="right">provided: 192</td>
42-
<td align="right">provided: 4</td>
43-
<td align="right">-</td></tr>
39+
<td style="text-align: right;">provided: 1</td>
40+
<td style="text-align: right;">provided: 85.7 kB</td>
41+
<td style="text-align: right;">provided: 209</td>
42+
<td style="text-align: right;">provided: 192</td>
43+
<td style="text-align: right;">provided: 4</td>
44+
<td style="text-align: right;">-</td></tr>
4445
<tr class="a">
45-
<td align="right">test: 3</td>
46-
<td align="right">test: 2.2 MB</td>
47-
<td align="right">test: 1619</td>
48-
<td align="right">test: 1493</td>
49-
<td align="right">test: 91</td>
50-
<td align="center">1.8</td>
51-
<td align="right">test: 3</td></tr>'''
46+
<td style="text-align: right;">test: 3</td>
47+
<td style="text-align: right;">test: 2.2 MB</td>
48+
<td style="text-align: right;">test: 1619</td>
49+
<td style="text-align: right;">test: 1493</td>
50+
<td style="text-align: right;">test: 91</td>
51+
<td style="text-align: center;">1.8</td>
52+
<td style="text-align: right;">test: 3</td></tr>'''
5253

5354
assert html.contains( summaryLine.replaceAll( "\n", System.lineSeparator() ) )

src/it/MPIR-437/verify.groovy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
File dependencies = new File( basedir, 'target/site/dependencies.html' )
19+
File dependencies = new File( basedir, 'target/reports/dependencies.html' )
2020
def summaryRow = '''\
2121
<tr class="b">
22-
<td align="right">1</td>
23-
<td align="right">78.8 kB</td>
24-
<td align="right">141</td>
25-
<td align="right">-</td>
26-
<td align="right">-</td>
27-
<td align="center">-</td>
28-
<td align="right">-</td></tr>
22+
<td style="text-align: right;">1</td>
23+
<td style="text-align: right;">78.8 kB</td>
24+
<td style="text-align: right;">141</td>
25+
<td style="text-align: right;">-</td>
26+
<td style="text-align: right;">-</td>
27+
<td style="text-align: center;">-</td>
28+
<td style="text-align: right;">-</td></tr>
2929
'''
3030

3131
assert dependencies.text.contains( summaryRow.replaceAll( "\n", System.lineSeparator() ) )

src/it/MPIR-455/invoker.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# Remove with next major version
19-
invoker.mavenOpts = -Duser.language=en
2018
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:dependencies

0 commit comments

Comments
 (0)