Skip to content

Commit

Permalink
Merge pull request #61 from dcrissman/rpm
Browse files Browse the repository at this point in the history
allow hook to be deployed as rpm
  • Loading branch information
paterczm committed Feb 2, 2016
2 parents 641be85 + 4ee5efb commit ff0612f
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@
<sonar.host.url>http://127.0.0.1:8080</sonar.host.url>
<sonar.projectName>lightblue-audit-hook</sonar.projectName>

<rpm.name>${project.artifactId}</rpm.name>
<rpm.install.basedir>/usr/share/java/lightblue/${project.artifactId}</rpm.install.basedir>

<lightblue.core.version>1.11.0-SNAPSHOT</lightblue.core.version>
<lightblue.mongo.version>1.11.0-SNAPSHOT</lightblue.mongo.version>
</properties>
Expand Down Expand Up @@ -272,6 +275,53 @@
</plugins>
</build>
</profile>
<profile>
<id>rpm</id>
<build>
<plugins>
<!-- RPM packing -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1.4</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>attached-rpm</goal>
</goals>
</execution>
</executions>
<configuration>
<name>${rpm.name}</name>
<copyright>Red Hat</copyright>
<distribution>RHEL</distribution>
<group>Lightblue Platform</group>
<packager>${user.name}</packager>
<defaultFilemode>744</defaultFilemode>
<defaultUsername>jboss</defaultUsername>
<defaultGroupname>jboss</defaultGroupname>
<mappings>
<mapping>
<directory>${rpm.install.basedir}</directory>
<directoryIncluded>false</directoryIncluded>
<sources>
<source>
<location>target/${project.artifactId}-${project.version}.${project.packaging}</location>
</source>
</sources>
<dependency>
<includes>
<include>${project.groupId}:*</include>
</includes>
</dependency>
</mapping>
</mappings>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<reporting>
<plugins>
Expand Down

0 comments on commit ff0612f

Please sign in to comment.