OPENDJ-2175 Change rpm package name
If project.version maven property contains SNAPSHOT keyword, the rpm package release field will be 'SNAPSHOT' plus timestamp. Otherwise it is set to 1.
| | |
| | | |
| | | <properties> |
| | | <rpm.prefix>/opt/${lowerCaseProductName}</rpm.prefix> |
| | | <rpm.release>1</rpm.release> |
| | | </properties> |
| | | |
| | | <build> |
| | |
| | | <version>2.0.1</version> |
| | | <executions> |
| | | <execution> |
| | | <id>properties</id> |
| | | <phase>verify</phase> |
| | | <goals> |
| | | <goal>version</goal> |
| | | </goals> |
| | | </execution> |
| | | <execution> |
| | | <id>generate-rpm-package</id> |
| | | <phase>verify</phase> |
| | | <goals> |
| | |
| | | <configuration> |
| | | <summary>${shortProductName}</summary> |
| | | <name>${lowerCaseProductName}</name> |
| | | <version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</version> |
| | | <release>${rpm.release}.${maven.build.timestamp}</release> |
| | | <prefix>${rpm.prefix}</prefix> |
| | | <license>CDDL</license> |
| | | <group>Productivity/Networking/LDAP/Servers</group> |