A template to use when starting a new open source project.
e.g. by using
cp -R repository-template-java/ new-name && cd new-name && git config --local --unset remote.origin.url && git config --local --add remote.origin.url git@github.com:baloise/new-name.git && git reset --hard $(git commit-tree FETCH_HEAD^{tree} -m "Initial contribution") && git grep -l 'repository-template-java' | xargs sed -i '' -e 's/repository-template-java/new-name/g' && mvn clean verify && git add -A && git commit -m "Rename from template to new-name" && cd ..
Run e.g. on main: mvn -B release:prepare
e.g. via
Subsequently the GitHub action worksflow "create release" will pick up the published tag and release and deploy the artifacts in the Github package registry.
Add proxy to settings.xml (however in IntelliJ that does not properly work):
<setings
<proxies>
<proxy>
<id>http-proxyproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>localhost</host>
<port>8888</port>
</proxy>
</proxies>
</settings>
File > Settings > Build, Execution, Deployments > Maven > Runner > VM Arguments
-DproxyHost=localhost -DproxyPort=8888 -DproxySet=true -Dio.swagger.parser.util.RemoteUrl.trustAll=true -Dio.swagger.v3.parser.util.RemoteUrl.trustAll=true