Skip to content

Commit

Permalink
[MPIR-421] Make all ITs with site.xml use an explicit skin
Browse files Browse the repository at this point in the history
This closes #40
  • Loading branch information
michael-o committed Jul 7, 2022
1 parent 3846376 commit 91d0efe
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 21 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,15 @@ under the License.
</distributionManagement>

<properties>
<javaVersion>8</javaVersion>
<doxiaVersion>1.11.1</doxiaVersion>
<doxia-sitetoolsVersion>1.11.1</doxia-sitetoolsVersion>
<mavenVersion>3.2.5</mavenVersion>
<scmVersion>1.13.0</scmVersion>
<aetherVersion>1.0.0.v20140518</aetherVersion>
<sitePluginVersion>3.12.0</sitePluginVersion>
<fluidoSkinVersion>1.11.1</fluidoSkinVersion>
<surefire.version>2.22.2</surefire.version>
<javaVersion>8</javaVersion>
<checkstyle.violation.ignore>ParameterNumber,MethodLength</checkstyle.violation.ignore>
<project.build.outputTimestamp>2022-04-23T10:30:05Z</project.build.outputTimestamp>
</properties>
Expand Down
1 change: 1 addition & 0 deletions src/it/MPIR-242/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<artifacts.url>http://maven.apache.org/plugins/it/${project.artifactId}</artifacts.url>
<fluidoSkinVersion>@fluidoSkinVersion@</fluidoSkinVersion>
</properties>

<url>${artifacts.url}</url>
Expand Down
5 changes: 5 additions & 0 deletions src/it/MPIR-242/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ under the License.

<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<publishDate position="right" />
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>${fluidoSkinVersion}</version>
</skin>
<body>
<breadcrumbs>
<item name="MPIR" href="http://maven.apache.org/plugins/maven-project-info-reports-plugin/index.html" />
Expand Down
1 change: 1 addition & 0 deletions src/it/MPIR-362/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<fluidoSkinVersion>@fluidoSkinVersion@</fluidoSkinVersion>
</properties>

<dependencyManagement>
Expand Down
5 changes: 5 additions & 0 deletions src/it/MPIR-362/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ under the License.

<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<publishDate position="right" />
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>${fluidoSkinVersion}</version>
</skin>
<body>
<breadcrumbs>
<item name="MPIR" href="http://maven.apache.org/plugins/maven-project-info-reports-plugin/index.html" />
Expand Down
1 change: 1 addition & 0 deletions src/it/mpir-229/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<some.property>TEST</some.property>
<artifacts.url>http://maven.apache.org/plugins/it/${some.property}</artifacts.url>
<fluidoSkinVersion>@fluidoSkinVersion@</fluidoSkinVersion>
</properties>

<url>${artifacts.url}</url>
Expand Down
5 changes: 5 additions & 0 deletions src/it/mpir-229/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ under the License.

<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<publishDate position="right"/>
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>${fluidoSkinVersion}</version>
</skin>
<body>
<breadcrumbs>
<item name="MPIR" href="http://maven.apache.org/plugins/maven-project-info-reports-plugin/index.html" />
Expand Down
40 changes: 20 additions & 20 deletions src/it/mpir-229/verify.groovy
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File modulesPage = new File( basedir, 'target/site/modules.html' )
assert modulesPage.text.contains( '<a href="mpir-229-module1-1.0-SNAPSHOT/index.html" title="mpir-229-module1">mpir-229-module1</a>' )
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File modulesPage = new File( basedir, 'target/site/modules.html' )
assert modulesPage.text.contains( '<a href="mpir-229-module1-1.0-SNAPSHOT/index.html" title="mpir-229-module1"><span class="none"></span>mpir-229-module1</a>' )

0 comments on commit 91d0efe

Please sign in to comment.