[New] added new setVersion.sh script
This commit is contained in:
parent
3c3ea2f089
commit
a78fd702bd
|
@ -3,4 +3,13 @@ if [ "$#" != "1" ] ; then
|
|||
echo "ERROR: Version missing or wrong arguments!"
|
||||
exit 1
|
||||
fi
|
||||
mvn versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false
|
||||
|
||||
if ! mvn -f pom.xml versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false ; then
|
||||
echo "ERROR: Failed to change version in root!"
|
||||
exit 1
|
||||
fi
|
||||
if ! mvn -f versioning_eitchnet_pom.xml versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false ; then
|
||||
echo "ERROR: Failed to change version in submodule!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
<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/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
|
||||
<buildTimestamp>${maven.build.timestamp}</buildTimestamp>
|
||||
</properties>
|
||||
|
||||
<groupId>ch.eitchnet</groupId>
|
||||
<artifactId>ch.eitchnet</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>ch.eitchnet</name>
|
||||
<description>Module build for ch.eitchnet</description>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:https://github.com/eitchnet/strolch.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:eitch/strolch.git</developerConnection>
|
||||
<url>https://github.com/eitchnet/strolch</url>
|
||||
</scm>
|
||||
|
||||
<modules>
|
||||
<module>../ch.eitchnet.privilege</module>
|
||||
<module>../ch.eitchnet.utils</module>
|
||||
<module>../ch.eitchnet.xmlpers</module>
|
||||
<module>ch.eitchnet.parent</module>
|
||||
</modules>
|
||||
</project>
|
Loading…
Reference in New Issue