Skip to content

Commit

Permalink
Added various build instructions and corrected the source file path f…
Browse files Browse the repository at this point in the history
…or the RPM

git-svn-id: http://jboss-rpm.googlecode.com/svn/trunk@34 e808befa-01d2-11df-8f7b-bfe16de6f99b
  • Loading branch information
henrik242 committed Mar 19, 2010
1 parent 3e7ebcd commit 45ee829
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 25 deletions.
41 changes: 32 additions & 9 deletions README.txt
Original file line number Diff line number Diff line change
@@ -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/

48 changes: 32 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 45ee829

Please sign in to comment.