Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added various build instructions and corrected the source file path f…

…or the RPM

git-svn-id: http://jboss-rpm.googlecode.com/svn/trunk@34 e808befa-01d2-11df-8f7b-bfe16de6f99b
  • Loading branch information...
commit 45ee8298755ebfb7bb5176760f535ab1005175e6 1 parent 3e7ebcd
@henrik242 henrik242 authored
Showing with 64 additions and 25 deletions.
  1. +32 −9 README.txt
  2. +32 −16 pom.xml
View
41 README.txt
@@ -1,17 +1,40 @@
-Build instructions
-==================
+RPM build instructions: 3 options
+==================================
-1) Download the jboss eap 5.0.0.GA binary [1] or build it from source [2].
+Prerequisites
+-------------
-2) unzip the zipfile to src main, e.g.: unzip <zipfile> -d src/main/
+Ensure that you have a .rpmmacros file in your $HOME directory.
+A sample of this file is provided in rpmmacros.sample.
-3) Ensure that you have a .rpmmacros file in your $HOME directory.
- A sample of this file is provided in rpmmacros.sample.
+Option 1: Regular build
+-----------------------
-4) build with 'mvn install'. The resulting RPM file is
- located at target/rpm/jboss-eap/RPMS/noarch/.
+Run 'mvn clean install'. This will download and build the source, and create the RPM.
+
+Option 2: Build manually from SVN
+---------------------------------
+
+1) mkdir jboss-eap-5.0-src; cd jboss-eap-5.0-src
+2) svn co http://anonsvn.jboss.org/repos/jbossas/tags/JBPAPP_5_0_0_GA jboss-as
+3) cd jboss-as/build
+4) ant
+5) cd ../../..
+6) mvn clean install -Djboss.skip.download -Djboss.skip.unzip -Djboss.skip.build
+
+Option 3: Download the binary
+-----------------------------
+
+1) Download the binary (login required) [1]
+2) mkdir -p jboss-eap-5.0-src/jboss-as/build/output/jboss-5.0.0.GA
+3) unzip <zipfile> -d jboss-eap-5.0-src/jboss-as/build/output/jboss-5.0.0.GA
+4) mvn clean install -Djboss.skip.download -Djboss.skip.unzip -Djboss.skip.build
+
+Successful build: The RPM
+-------------------------
+
+The resulting RPM is located in target/rpm/jboss-eap/RPMS/
[1] https://support.redhat.com/jbossnetwork/restricted/listSoftware.html?product=appplatform
-[2] http://anonsvn.jboss.org/repos/jbossas/tags/JBPAPP_5_0_0_GA/
View
48 pom.xml
@@ -1,5 +1,6 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>jboss-rpm</artifactId>
@@ -72,19 +73,34 @@
<configuration>
<tasks>
<taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" />
- <if><not><isset property="jboss.skip.download" /></not><then>
- <get
- src="http://ftp.redhat.com/pub/redhat/jbeap/5.0.0/en/source/jboss-eap-src-5.0.0.GA.zip"
- dest="${basedir}/jboss-eap-src-5.0.0.GA.zip" verbose="true"
- usetimestamp="true" />
- </then></if>
- <if><not><isset property="jboss.skip.unzip" /></not><then>
- <unzip src="jboss-eap-src-5.0.0.GA.zip" dest="${basedir}/"
- overwrite="false" />
- </then></if>
- <if><not><isset property="jboss.skip.build" /></not><then>
- <ant antfile="build.xml" dir="${basedir}/jboss-eap-5.0-src/jboss-as/build" />
- </then></if>
+ <if>
+ <not>
+ <isset property="jboss.skip.download" />
+ </not>
+ <then>
+ <get
+ src="http://ftp.redhat.com/pub/redhat/jbeap/5.0.0/en/source/jboss-eap-src-5.0.0.GA.zip"
+ dest="${basedir}/jboss-eap-src-5.0.0.GA.zip" verbose="true"
+ usetimestamp="true" />
+ </then>
+ </if>
+ <if>
+ <not>
+ <isset property="jboss.skip.unzip" />
+ </not>
+ <then>
+ <unzip src="jboss-eap-src-5.0.0.GA.zip" dest="${basedir}/"
+ overwrite="false" />
+ </then>
+ </if>
+ <if>
+ <not>
+ <isset property="jboss.skip.build" />
+ </not>
+ <then>
+ <ant antfile="build.xml" dir="${basedir}/jboss-eap-5.0-src/jboss-as/build" />
+ </then>
+ </if>
</tasks>
</configuration>
<goals>
@@ -142,7 +158,7 @@
<groupname>root</groupname>
<sources>
<source>
- <location>${basedir}/jboss-eap-5.0-src/jboss-as</location>
+ <location>${basedir}/jboss-eap-5.0-src/jboss-as/build/output/jboss-5.0.0.GA</location>
</source>
</sources>
</mapping>
Please sign in to comment.
Something went wrong with that request. Please try again.