Allow rpm to be build as part of package phase
This allows the creation of the RPM artifact as part of the maven package phase. The result of this is that we get checksum and name correction for-free as it's all build an installed into the m2 repository. This also publishes the RPM together with .deb to the mvn mirror. Note: this will only build the RPM as part of the package phase if `-Dpackage.rpm=true` since the binaries to build the RPM are not availabel on all platforms.
This commit is contained in:
parent
164212940b
commit
75a51ede24
25
core/pom.xml
25
core/pom.xml
|
@ -1111,6 +1111,31 @@
|
|||
</activation>
|
||||
<!-- not including license-maven-plugin is sufficent to expose default license -->
|
||||
</profile>
|
||||
<profile>
|
||||
<id>package-rpm</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>package.rpm</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>rpm-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-rpm</id>
|
||||
<goals>
|
||||
<goal>attached-rpm</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>sign-rpm</id>
|
||||
<activation>
|
||||
|
|
Loading…
Reference in New Issue