Fixed git commit hash in version

Changed plugin to "scriptus" by md_5
This commit is contained in:
Eric 2017-01-13 22:37:13 +01:00
parent f0a0d760a0
commit a755c065d2

62
pom.xml
View File

@ -17,7 +17,7 @@
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
<version.number>1.11.1</version.number> <version.number>1.11.1</version.number>
<version.final>${version.number}-${git.commit.id.abbrev}</version.final> <version.final>${version.number}-${version.git}</version.final>
<github.global.server>github</github.global.server> <github.global.server>github</github.global.server>
@ -25,6 +25,33 @@
</properties> </properties>
<profiles> <profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>net.md-5</groupId>
<artifactId>scriptus</artifactId>
<version>0.2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>describe</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptionProperty>version.git</descriptionProperty>
<format>%s</format>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>doclint-java8</id> <id>doclint-java8</id>
<activation> <activation>
@ -112,6 +139,19 @@
</distributionManagement> </distributionManagement>
<build> <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
<configuration>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
@ -119,7 +159,8 @@
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
</resources> </resources>
<plugins> </configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
@ -156,23 +197,6 @@ Timestamp: ${maven.build.timestamp}
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<generateGitPropertiesFile>false</generateGitPropertiesFile>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>