You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/07/09 15:18:06 UTC
[3/3] git commit: SLIDER-221 rpm is only built on the -Prpm profile
SLIDER-221 rpm is only built on the -Prpm profile
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/d44d4c1b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/d44d4c1b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/d44d4c1b
Branch: refs/heads/feature/SLIDER-221_Create_an_RPM_for_slider
Commit: d44d4c1bf0e4a57d0cebb7408936d8f8a546442f
Parents: f62539b
Author: Steve Loughran <st...@apache.org>
Authored: Wed Jul 9 14:17:48 2014 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Jul 9 14:17:48 2014 +0100
----------------------------------------------------------------------
slider-assembly/pom.xml | 235 +++++++++++++++++++++++--------------------
1 file changed, 124 insertions(+), 111 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/d44d4c1b/slider-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/pom.xml b/slider-assembly/pom.xml
index adfd875..95df363 100644
--- a/slider-assembly/pom.xml
+++ b/slider-assembly/pom.xml
@@ -189,117 +189,7 @@
</executions>
</plugin>
- <!-- RPM -->
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <version>${maven-rpm-plugin.version}</version>
- <executions>
- <execution>
- <id>generate-rpm</id>
- <goals>
- <goal>rpm</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <license>http://www.apache.org/licenses/LICENSE-2.0</license>
- <name>slider</name>
-<!----> <distribution></distribution>
- <group>Applications/Engineering</group>
- <!--<icon>src/main/resources/icon.gif</icon>-->
- <!--<packager>ASF</packager>-->
- <prefix>${rpm.basedir}</prefix>
- <!--
- <changelogFile>src/changelog</changelogFile>
- -->
- <!-- <defineStatements>
- <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
- </defineStatements>-->
- <provides>
- <provide>apache-slider</provide>
- </provides>
- <mappings>
- <mapping>
- <directory>${rpm.basedir}</directory>
- <!-- RW.R..R.. -->
- <filemode>644</filemode>
-
- <username>${rpm.username}</username>
- <groupname>${rpm.groupname}</groupname>
- <sources>
- <source>
- <location>target/classes</location>
- </source>
- </sources>
- </mapping>
-
- <!-- binaries -->
- <mapping>
- <directory>${rpm.bindir}</directory>
- <!-- RWXR.XR.X -->
- <filemode>0755</filemode>
- <username>${rpm.username}</username>
- <groupname>${rpm.groupname}</groupname>
- <sources>
- <source>
- <location>src/main/scripts</location>
- </source>
- </sources>
- </mapping>
-
- <!-- library -->
- <mapping>
- <directory>${rpm.libdir}</directory>
- <!-- RW.R..R.. -->
- <filemode>644</filemode>
-
- <username>${rpm.username}</username>
- <groupname>${rpm.groupname}</groupname>
- <sources>
- <source>
- <location>${src.libdir}</location>
- </source>
- </sources>
- </mapping>
-
- <!-- configuration -->
- <mapping>
- <directory>${rpm.confdir}</directory>
- <configuration>true</configuration>
- <filemode>0755</filemode>
- <username>${rpm.username}</username>
- <groupname>${rpm.groupname}</groupname>
- <sources>
- <source>
- <location>${src.confdir}</location>
- </source>
- </sources>
- </mapping>
-
- </mappings>
-<!--
-Scripts.
--->
- <preinstallScriptlet>
- <script>echo "installing slider"</script>
- </preinstallScriptlet>
-<!--
- <postinstallScriptlet>
- <scriptFile>src/main/scripts/postinstall</scriptFile>
- <fileEncoding>utf-8</fileEncoding>
- </postinstallScriptlet>
--->
-<!--
- <preremoveScriptlet>
- <scriptFile>src/main/scripts/preremove</scriptFile>
- <fileEncoding>utf-8</fileEncoding>
- </preremoveScriptlet>
--->
- </configuration>
- </plugin>
-
+
</plugins>
@@ -313,6 +203,129 @@ Scripts.
</plugins>
</reporting>
+ <profiles>
+ <profile>
+ <id>rpm</id>
+ <build>
+ <plugins>
+ <!-- RPM -->
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>rpm-maven-plugin</artifactId>
+ <version>${maven-rpm-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>generate-rpm</id>
+ <goals>
+ <goal>rpm</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <license>http://www.apache.org/licenses/LICENSE-2.0</license>
+ <name>slider</name>
+ <!---->
+ <distribution></distribution>
+ <group>Applications/Engineering</group>
+ <!--<icon>src/main/resources/icon.gif</icon>-->
+ <!--<packager>ASF</packager>-->
+ <prefix>${rpm.basedir}</prefix>
+ <!--
+ <changelogFile>src/changelog</changelogFile>
+ -->
+ <!-- <defineStatements>
+ <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
+ </defineStatements>-->
+ <provides>
+ <provide>apache-slider</provide>
+ </provides>
+ <mappings>
+ <mapping>
+ <directory>${rpm.basedir}</directory>
+ <!-- RW.R..R.. -->
+ <filemode>644</filemode>
+
+ <username>${rpm.username}</username>
+ <groupname>${rpm.groupname}</groupname>
+ <sources>
+ <source>
+ <location>target/classes</location>
+ </source>
+ </sources>
+ </mapping>
+
+ <!-- binaries -->
+ <mapping>
+ <directory>${rpm.bindir}</directory>
+ <!-- RWXR.XR.X -->
+ <filemode>0755</filemode>
+ <username>${rpm.username}</username>
+ <groupname>${rpm.groupname}</groupname>
+ <sources>
+ <source>
+ <location>src/main/scripts</location>
+ </source>
+ </sources>
+ </mapping>
+
+ <!-- library -->
+ <mapping>
+ <directory>${rpm.libdir}</directory>
+ <!-- RW.R..R.. -->
+ <filemode>644</filemode>
+
+ <username>${rpm.username}</username>
+ <groupname>${rpm.groupname}</groupname>
+ <sources>
+ <source>
+ <location>${src.libdir}</location>
+ </source>
+ </sources>
+ </mapping>
+
+ <!-- configuration -->
+ <mapping>
+ <directory>${rpm.confdir}</directory>
+ <configuration>true</configuration>
+ <filemode>0755</filemode>
+ <username>${rpm.username}</username>
+ <groupname>${rpm.groupname}</groupname>
+ <sources>
+ <source>
+ <location>${src.confdir}</location>
+ </source>
+ </sources>
+ </mapping>
+
+ </mappings>
+ <!--
+ Scripts.
+ -->
+ <preinstallScriptlet>
+ <script>echo "installing slider"</script>
+ </preinstallScriptlet>
+ <!--
+ <postinstallScriptlet>
+ <scriptFile>src/main/scripts/postinstall</scriptFile>
+ <fileEncoding>utf-8</fileEncoding>
+ </postinstallScriptlet>
+ -->
+ <!--
+ <preremoveScriptlet>
+ <scriptFile>src/main/scripts/preremove</scriptFile>
+ <fileEncoding>utf-8</fileEncoding>
+ </preremoveScriptlet>
+ -->
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
<dependencies>
<dependency>