]> juplo.de Git - hibernate4-maven-plugin/commitdiff
Switchted the docs to `maven-thymeleaf-skin:1.1.2` 1.0.5
authorKai Moritz <kai@juplo.de>
Mon, 6 May 2019 20:16:01 +0000 (22:16 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 26 Oct 2025 15:59:05 +0000 (16:59 +0100)
* Upgraded `maven-thymeleaf-skin` to `1.1.1` and adjusted the configuration
* Upgraded `maven-site-plugin` to version `3.21.0`
* Upgraded `maven-thymeleaf-skin` to version `1.1.2`
* Added the prefix `/projects` to the URIs of the generated site
* Switched the linking for all old projects to the refined path
* Added a `Dockerfile` for building the project
* Added missing versions and refined the pathes for old versions

Dockerfile [new file with mode: 0644]
README.sh [new file with mode: 0755]
pom.xml
src/site/site.xml
src/site/xhtml/index.xhtml

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..b05bfd1
--- /dev/null
@@ -0,0 +1,17 @@
+FROM openjdk:8-jdk
+
+RUN apt-get update
+RUN apt-get install -y maven
+
+ARG UID=1000
+ARG GID=1000
+
+RUN groupadd -g ${GID} build && useradd -m -u ${UID} -g ${GID} -s /bin/bash build
+
+USER build
+WORKDIR /home/build
+
+ENV HOME=/home/build
+ENV MAVEN_USER_HOME=/home/build/.m2
+
+ENV MAVEN_CONFIG=/home/build/.m2
diff --git a/README.sh b/README.sh
new file mode 100755 (executable)
index 0000000..4500a61
--- /dev/null
+++ b/README.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+docker build -t jdk .
+docker run --rm --name jdk -it -u $(id -u):$(id -g) -v $(pwd):/home/build -v $HOME/.m2:/home/build/.m2 jdk mvn clean compile test-compile site
diff --git a/pom.xml b/pom.xml
index 89862bc68aab63022be981e87fba942882c8d56b..68d01ae3d5a8bdcde61a58880b1f5fc3101dd7a4 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
   <description>Plugin for generating a database-schema from Hibernate-4-Mapping-Annotations</description>
   <version>1.0.5</version>
   <packaging>maven-plugin</packaging>
-  <url>http://juplo.de/hibernate4-maven-plugin</url>
+  <url>https://juplo.de/hibernate-maven-plugin/index.html</url>
 
   <prerequisites>
     <maven>2.0.6</maven>
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>3.21.0</version>
+        <configuration>
+          <siteDirectory>${project.build.directory}/filtered-site</siteDirectory>
+        </configuration>
+        <dependencies>
+          <dependency><!-- add support for ssh/scp -->
+            <groupId>org.apache.maven.wagon</groupId>
+            <artifactId>wagon-ssh-external</artifactId>
+            <version>2.12</version>
+          </dependency>
+        </dependencies>
+      </plugin>
     </plugins>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <artifactId>maven-site-plugin</artifactId>
-          <version>3.3</version>
-          <configuration>
-            <siteDirectory>${project.build.directory}/filtered-site</siteDirectory>
-          </configuration>
-          <dependencies>
-            <dependency><!-- add support for ssh/scp -->
-              <groupId>org.apache.maven.wagon</groupId>
-              <artifactId>wagon-ssh</artifactId>
-              <version>1.0</version>
-            </dependency>
-          </dependencies>
-        </plugin>
-      </plugins>
-    </pluginManagement>
   </build>
 
   <reporting>
index 5399d17734632984d22f0e655bbe9b380101d7e3..cb9efcfed2a2caf4357a40dc430c726187176d1d 100644 (file)
@@ -1,7 +1,7 @@
 <project>
-  <googleAnalyticsAccountId>UA-571104-3</googleAnalyticsAccountId>
   <body>
     <menu>
+      <item name="Hibernate Maven Plugin" href="index.html"/>
       <item name="Configuration Examples" href="configuration.html"/>
       <item name="Parameter Documentation" href="export-mojo.html"/>
       <item name="Enable Debug-Output" href="debugging.html"/>
     <menu ref="reports"/>
   </body>
   <skin>
-    <groupId>de.juplo</groupId>
-    <artifactId>juplo-maven-skin</artifactId>
-    <version>1.0.7</version>
+    <groupId>de.juplo.maven</groupId>
+    <artifactId>maven-thymeleaf-skin</artifactId>
+    <version>1.1.2</version>
   </skin>
+  <custom>
+    <thymeproxy>
+      <prefix>/projects</prefix>
+      <path>/hibernate-maven-plugin/</path>
+      <crumbs>"/index.html","/projects.html"</crumbs>
+      <command>th:replace="~{/templates/layout.html :: layout(uri='' + ~{:: code[class='site_uri']/text()}, title=~{:: title}, maincontent=~{:: .maincontent}, json='MERGE:' + ~{:: pre[class='json']/text()})}"</command>
+    </thymeproxy>
+  </custom>
 </project>
 
index d4568618dc28a5cbcf5346cbb11aec4c947bdda2..53939b5d41756db6a3dcadc7e36e681195521fad 100644 (file)
   </ul>
   <h2>Releases</h2>
   <ul>
-    <li><a href="http://juplo.de/hibernate4-maven-plugin">current version</a></li>
+    <li><a href="https://juplo.de/hibernate-maven-plugin">current version</a></li>
     <li>${project.version} (this version)</li>
-    <li><a href="http://juplo.de/hibernate4-maven-plugin-1.0.4">1.0.4</a></li>
-    <li><a href="http://juplo.de/hibernate4-maven-plugin-1.0.3">1.0.3</a></li>
-    <li><a href="http://juplo.de/hibernate4-maven-plugin-1.0.2">1.0.2</a></li>
-    <li><a href="http://juplo.de/hibernate4-maven-plugin-1.0.1">1.0.1</a></li>
-    <li><a href="http://juplo.de/hibernate4-maven-plugin-1.0">1.0</a></li>
+    <li><a href="/projects/hibernate-maven-plugin/1.0.4/index.html">1.0.4</a></li>
+    <li><a href="/projects/hibernate-maven-plugin/1.0.3/index.html">1.0.3</a></li>
+    <li><a href="/projects/hibernate-maven-plugin/1.0.2/index.html">1.0.2</a></li>
+    <li><a href="/projects/hibernate-maven-plugin/1.0.1/index.html">1.0.1</a></li>
+    <li><a href="/projects/hibernate-maven-plugin/1.0/index.html">1.0</a></li>
   </ul>
  </body>
 </html>