You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@htrace.apache.org by cm...@apache.org on 2015/06/12 00:52:09 UTC

incubator-htrace git commit: HTRACE-182. htraced: add rpm build via -Prpm (cmccabe)

Repository: incubator-htrace
Updated Branches:
  refs/heads/master c0edd4886 -> 55fdb11fd


HTRACE-182. htraced: add rpm build via -Prpm (cmccabe)


Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/55fdb11f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/55fdb11f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/55fdb11f

Branch: refs/heads/master
Commit: 55fdb11fde64d5556b8e014be225607d61f4ad23
Parents: c0edd48
Author: Colin P. Mccabe <cm...@apache.org>
Authored: Thu Jun 11 15:26:37 2015 -0700
Committer: Colin P. Mccabe <cm...@apache.org>
Committed: Thu Jun 11 15:52:02 2015 -0700

----------------------------------------------------------------------
 htrace-htraced/pom.xml | 66 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/55fdb11f/htrace-htraced/pom.xml
----------------------------------------------------------------------
diff --git a/htrace-htraced/pom.xml b/htrace-htraced/pom.xml
index 446bd5a..94c2dba 100644
--- a/htrace-htraced/pom.xml
+++ b/htrace-htraced/pom.xml
@@ -157,6 +157,11 @@ language governing permissions and limitations under the License. -->
           </filesets>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>rpm-maven-plugin</artifactId>
+        <version>2.1.1</version>
+      </plugin>
     </plugins>
   </build>
   <dependencies>
@@ -205,4 +210,65 @@ language governing permissions and limitations under the License. -->
       <version>9.2.6.v20141205</version>
     </dependency>
   </dependencies>
+  <profiles>
+    <profile>
+      <id>rpm</id>
+      <activation><property><name>rpm</name></property></activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>rpm-maven-plugin</artifactId>
+            <version>2.1.1</version>
+            <extensions>true</extensions>
+            <executions>
+              <execution>
+                <id>generate-rpm</id>
+                <goals><goal>rpm</goal></goals>
+                <phase>package</phase>
+              </execution>
+            </executions>
+            <configuration>
+              <group>Application</group>
+              <needarch>true</needarch>
+              <release>3.3.0</release>
+              <defaultDirmode>755</defaultDirmode>
+              <defaultFilemode>644</defaultFilemode>
+              <defaultUsername>root</defaultUsername>
+              <mappings>
+                <mapping>
+                  <directory>/usr/local/htraced/web</directory>
+                  <sources>
+                    <source>
+                      <location>src/web</location>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/usr/local/htraced/bin</directory>
+                  <filemode>755</filemode>
+                  <sources>
+                    <source>
+                      <location>src/go/build/htrace</location>
+                    </source>
+                    <source>
+                      <location>src/go/build/htraced</location>
+                    </source>
+                  </sources>
+                </mapping>
+                <mapping>
+                  <directory>/usr/local/htraced/java</directory>
+                  <sources>
+                    <source>
+                      <location>target/htrace-htraced-3.3.0-incubating-SNAPSHOT.jar</location>
+                    </source>
+                  </sources>
+                </mapping>
+              </mappings>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>