averbraeck / sim0mq-java

Java version of Message Bus for Distributed Simulations
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Update maven site generation on server to site version 2.0.0 #8

Closed averbraeck closed 4 months ago

averbraeck commented 4 months ago

The site generation is outdated (version 1.6.0). The latest maven site generation version is 2.0.0, compatible with the maven site plugin version 4.0.

The site file has to be changed to:

<site xmlns="http://maven.apache.org/SITE/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
  name="${project.artifactId} ${project.version}">

  <publishDate position="left" format="dd-MM-yyyy HH:mm" />

  <bannerLeft name="${project.name}" />
  <bannerRight name="${project.artifactId} ${project.version}" />

  <skin>
    <groupId>org.apache.maven.skins</groupId>
    <artifactId>maven-fluido-skin</artifactId>
    <version>2.0.0-M8</version>
  </skin>

  <body>
    <menu> ... </menu>
    <menu> ... </menu>
    <menu> ... </menu>
  </body>

</site>
averbraeck commented 4 months ago

The site.xml now looks as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>
<site xmlns="http://maven.apache.org/SITE/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
  name="${project.artifactId} ${project.version}">

  <publishDate position="left" format="dd-MM-yyyy HH:mm" />

  <bannerLeft name="${project.name}" />
  <bannerRight name="${project.artifactId} ${project.version}" />

  <skin>
    <groupId>org.apache.maven.skins</groupId>
    <artifactId>maven-fluido-skin</artifactId>
    <version>2.0.0-M8</version>
  </skin>

  <body>

    <menu name="API">
      <item name="JavaDocs" href="apidocs/index.html" target="_blank" />
    </menu>

    <menu name="PROJECT REPORTS">
      <item name="Reports" href="project-reports.html" />
      <item name="Source Xref" href="xref/index.html" target="_blank" />
      <item name="Test JavaDocs" href="test-apidocs/index.html" target="_blank" />
      <item name="Test Xref" href="xref-test/index.html" target="_blank" />
      <item name="Checkstyle" href="checkstyle.html" />
      <item name="Surefire report" href="surefire-report.html" />
      <item name="JaCoCo" href="jacoco/index.html" target="_blank" />
      <item name="Tag List" href="taglist.html" />
      <item name="SpotBugs" href="spotbugs.html" />
      <item name="CPD" href="cpd.html" />
      <item name="PMD" href="pmd.html" />
    </menu>

    <menu name="PROJECT INFO">
      <item name="About" href="index.html" />
      <item name="Project Summary" href="project-summary.html" />
      <item name="Dependencies" href="dependencies.html" />
      <item name="Project Team" href="team-list.html" />
      <item name="Project License" href="license.html" />
      <item name="Versions + Changes" href="changes-report.html" />
      <item name="Sim0MQ Manual" href="manual/" target="_blank" />
    </menu>

    <menu name="RELATED" inherit="bottom">
      <item name="DSOL" href="https://simulation.tudelft.nl/dsol/manual" target="_blank" />
      <item name="DJUNITS manual" href="http://djunits.org" target="_blank" />
      <item name="DJUTILS manual" href="http://djutils.org" target="_blank" />
      <item name="0MQ" href="http://zeromq.org" target="_blank" />
      <item name="Simulation@TU Delft" href="http://simulation.tudelft.nl" target="_blank" />
      <item name="About Sim0MQ" href="index.html" />
    </menu>

  </body>
</site>
averbraeck commented 4 months ago

Site generation works as intended.