Made a little commandline tool for preparation of of releases. I figured I’d share it here, maybe someone finds it useful . Feedback is welome.
machak
April 29, 2019, 2:12pm
2
thanks for sharing.
One question: is it not easier to use scm tags and just use mvn:prepare/release commands?
/m
That’s a valid option as well I guess, but that would probably need additional configuration per project, am I right? I never really used that, maybe you could explain?
machak
April 29, 2019, 2:27pm
4
Maven release plugin automatically tags/releases/deploys your artifacts once configured correctly. It also suggest next build number etc.
https://maven.apache.org/components/maven-release/maven-release-plugin/usage.html
We use it for all our github/internal release management…see for example:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015-2018 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Hippo Content Export / Import</name>
This file has been truncated. show original