diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..78d5aa6
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,31 @@
+name: Build
+on:
+ push:
+ branches:
+ - '**'
+ tags-ignore:
+ - '**'
+
+jobs:
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Setup Java and Maven
+ uses: actions/setup-java@v4
+ with:
+ distribution: 'temurin'
+ java-version: 17
+ cache: 'maven'
+ server-id: 'ReLoAd'
+ server-username: ${{ secrets.MAVEN_SERVER_USERNAME }}
+ server-password: ${{ secrets.MAVEN_SERVER_PASSWORD }}
+ - name: Build with Maven verify
+ if: "github.ref != 'refs/heads/main'"
+ run: ./mvnw -B verify
+ - name: Build with Maven deploy
+ if: "github.ref == 'refs/heads/main'"
+ run: ./mvnw -B deploy
diff --git a/extensions.xml b/.mvn/extensions.xml
similarity index 100%
rename from extensions.xml
rename to .mvn/extensions.xml
diff --git a/settings.xml b/.mvn/settings.xml
similarity index 91%
rename from settings.xml
rename to .mvn/settings.xml
index 7ecad1f..0b2c5a4 100644
--- a/settings.xml
+++ b/.mvn/settings.xml
@@ -4,8 +4,7 @@
ReLoAd-Mirror
- https://nexus.reloadkube.managedservices.resilient-teched.com/repository/default/
-
+ https://nexus.reloadkube.managedservices.resilient-teched.com/repository/default/*
diff --git a/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar
similarity index 100%
rename from wrapper/maven-wrapper.jar
rename to .mvn/wrapper/maven-wrapper.jar
diff --git a/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties
similarity index 70%
rename from wrapper/maven-wrapper.properties
rename to .mvn/wrapper/maven-wrapper.properties
index 346d645..cf90b07 100644
--- a/wrapper/maven-wrapper.properties
+++ b/.mvn/wrapper/maven-wrapper.properties
@@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
-wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
+distributionUrl=https://nexus.reloadkube.managedservices.resilient-teched.com/repository/default//org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
+wrapperUrl=https://nexus.reloadkube.managedservices.resilient-teched.com/repository/default//org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
diff --git a/Base/config.iml b/Base/config.iml
deleted file mode 100644
index 9e3449c..0000000
--- a/Base/config.iml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Base/Configs/checkstyle.xml b/Configs/checkstyle.xml
similarity index 100%
rename from Base/Configs/checkstyle.xml
rename to Configs/checkstyle.xml
diff --git a/Base/Configs/pmd-ruleset.xml b/Configs/pmd-ruleset.xml
similarity index 100%
rename from Base/Configs/pmd-ruleset.xml
rename to Configs/pmd-ruleset.xml
diff --git a/Base/Configs/pom.xml b/Configs/pom.xml
similarity index 93%
rename from Base/Configs/pom.xml
rename to Configs/pom.xml
index c617d77..f14f0c7 100644
--- a/Base/Configs/pom.xml
+++ b/Configs/pom.xml
@@ -6,12 +6,11 @@
works.reloadversions
- 1.0.0
+ ${revision}../Versions/pom.xmlconfigs
- 1.0.0ConfigsGlobal configurations for java tooling
diff --git a/Base/Configs/spotbugs-exclude.xml b/Configs/spotbugs-exclude.xml
similarity index 100%
rename from Base/Configs/spotbugs-exclude.xml
rename to Configs/spotbugs-exclude.xml
diff --git a/Makefile b/Makefile
index 8c140b2..cbf0d24 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ help: ## This help.
# Updates of third-party dependencies
update-dependencies: ## Update Maven dependencies and plugins which have versions defined in properties
- cd Base && ../mvnw --projects :base,:versions clean versions:update-properties
+ ./mvnw --projects :base,:versions clean versions:update-properties
update-snapshot-dependencies: ## Update locked snapshot versions with the latest available one in the POM
- cd Base && ../mvnw --projects :base,:versions versions:unlock-snapshots versions:lock-snapshots
+ ./mvnw --projects :base,:versions versions:unlock-snapshots versions:lock-snapshots
diff --git a/README.md b/README.md
index 92ef852..ebaa256 100644
--- a/README.md
+++ b/README.md
@@ -1,42 +1,29 @@
# MavenSetup
-A basic setup for all maven projects containing a build and tools for java.
+A basic setup for all maven projects containing building and tools for java.
## Howto setup
-1. Execute the following command in the root directory of your project:
- ```bash
- git submodule add --name MavenSetup git@github.com:ResilientGroup/MavenSetup.git .mvn
- # or if you have a fork under your namespace
- git submodule add --name MavenSetup ../MavenSetup.git .mvn
- ```
-2. Add the `branch = .` line to your .gitmodules file for the MavenSetup submodule. It should look like this:
- ```properties
- [submodule="MavenSetup"]
- path = .mvn
- url = ../MavenSetup.git
- branch = .
- ```
-3. Add the following to your pom.xml:
- ````xml
-
-
- works.reload
- base
- 1.0.0
- .mvn/Base/pom.xml
-
+1. Add the following to your pom.xml:
+ ````xml
+
+
+ works.reload
+ base
+ 1.0.0
+ .mvn/Base/pom.xml
+
-
-
- .mvn/Base
-
-
-
- ````
+
+
+ ReLoAd
+ https://nexus.reloadkube.managedservices.resilient-teched.com/repository/reload/
+
+
+
+ ````
## Maven Wrapper Note
As this setup enforces a minimum maven version,
it is not guaranteed that the maven version you have installed on your system is compatible with the project.
-For that, a maven wrapper is included in the setup.
-This means you can use the `.mvn/mvnw` command instead of `mvn` to execute maven commands.
+For that, a maven wrapper is recommended to be used.
It is strongly recommended to use the wrapper in any automated build process, as it ensures that the correct maven version is used.
diff --git a/Base/Versions/pom.xml b/Versions/pom.xml
similarity index 94%
rename from Base/Versions/pom.xml
rename to Versions/pom.xml
index 3cb1434..622bf1f 100644
--- a/Base/Versions/pom.xml
+++ b/Versions/pom.xml
@@ -5,7 +5,7 @@
works.reloadversions
- 1.0.0
+ ${revision}pomVersionsAll default maven versions
@@ -17,6 +17,7 @@
+ 1.0.0UTF-8173.1.0
@@ -34,6 +35,10 @@
+
+ ReLoAd
+ https://nexus.reloadkube.managedservices.resilient-teched.com/repository/reload/
+ ${project.artifactId}-sitefile:///tmp/dummy-site
diff --git a/mvnw b/mvnw
old mode 100755
new mode 100644
diff --git a/Base/pom.xml b/pom.xml
similarity index 99%
rename from Base/pom.xml
rename to pom.xml
index b4428e9..b1c6188 100644
--- a/Base/pom.xml
+++ b/pom.xml
@@ -6,12 +6,11 @@
works.reloadversions
- 1.0.0
+ ${revision}./Versions/pom.xmlbase
- 1.0.0pomBaseGlobal configurations for java projects and code validation tools
@@ -321,7 +320,7 @@
- 3.8.1
+ 3.9.6