Skip to content

Commit

Permalink
Site build - gitHub ribbon, stage site
Browse files Browse the repository at this point in the history
- gitHub ribbon from parent project use artifact name, not valid for multi module
- stage site during build - one less a manual goal
  • Loading branch information
slawekjaranowski committed Nov 20, 2022
1 parent 61c1f97 commit 7e7ed21
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@ For publishing the site do the following:

```
cd target/checkout
../mvnw verify site site:stage scm-publish:publish-scm
../mvnw site
../mvnw scm-publish:publish-scm
```

for multi module site - we need two executions
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,21 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- multi module project - stage site -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
<goal>stage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
26 changes: 18 additions & 8 deletions src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0
http://maven.apache.org/xsd/decoration-1.8.0.xsd">
https://maven.apache.org/xsd/decoration-1.8.0.xsd">

<body>
<breadcrumbs>
<item name="MojoHaus" href="https://www.mojohaus.org/"/>
<item name="${this.name}" href="${this.url}" />
</breadcrumbs>
<custom>
<fluidoSkin>
<gitHub>
<projectId>mojohaus/versions</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>gray</ribbonColor>
</gitHub>
</fluidoSkin>
</custom>

<menu ref="modules"/>
</body>
<body>
<breadcrumbs>
<item name="MojoHaus" href="https://www.mojohaus.org/"/>
<item name="${this.name}" href="${this.url}"/>
</breadcrumbs>

<menu ref="modules"/>
</body>
</project>

0 comments on commit 7e7ed21

Please sign in to comment.