This is instructions to build the source from SVN. There could be some errors though. Hope it will help.

First note: Do NOT install anything to locations that have spaces in its path. So Tomcat does NOT go to c:\Program Files\Tomcat, instead it goes to c:\Tomcat or similar. This goes for JDK, Maven, Tomcat, Ant and the Jetspeed project.

Download and install JDK (1.5), remove any existing JDKs before if have any (should work anyway, but Java can be tricky)

Download maven 1.0.2
unpack maven and copy somewhere
add MAVEN_HOME environment variable pointing to unpacked dir

Download Ant
unpack Ant and copy somewhere
add ANT_HOME environment variable pointing to unpacked dir

Download tomcat 5.5.12
unpack tomcat to somewhere
add CATALINA_HOME environment variable pointing to unpacked dir

At this point you probably have to reboot if youre using windows to make the environment variables working

create file named build.properties to ${user_home} dir e.g. on *nix to /home/myusername/ or on windows to c:\Documents and Settings\myusername\

add this content to it and modify as necessary

/*********** build.properties START *************/

# ---------------------------------------------------
# Values to be customised
# ---------------------------------------------------

# User / and NOT \ even on Windows and paths cannot have
# spaces so C:/Program Files/Tomcat won't work and neither
# will "C:/Program Files/Tomcat" so NO quotes either

# Full path to you jetspeed project
basedir=c:/jetspeed-2

# Change this to match your tomcat installation folder
tomcat.home=c:/tomcat

# MySQL host

mysql.host=localhost

# MySQL must have root account with password root
# (change from pre-configured section if other)
# and tables j2 and j2test or a user which has access to these

# ---------------------------------------------------
# Pre configured values
# ---------------------------------------------------

# If this wraps it wont work, should be a single line starting here

maven.repo.remote = http://www.bluesunrise.com/maven, http://www.ibiblio.org/maven,http://ibiblio.lsu.edu/main/maven, http://dist.codehaus.org, http://cvs.apache.org/repository, http://mirrors.sunsite.dk/maven, http://smokeping.planetmirror.com/pub/maven

# And ending here, excluding these comments of course ;)


# If you're behind a proxy

maven.proxy.host=proxyhostaddress
maven.proxy.port=proxyport

# Change these to match you mysql user
mysql.user=root
mysql.password=root

# ---------------------------------------------------------------------
# JETSPEED 2
# ----------------------------------------------------------------------

org.apache.jetspeed.project.home=${basedir}

org.apache.jetspeed.server.home=${tomcat.home}
org.apache.jetspeed.server.shared=${org.apache.jetspeed.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir=${org.apache.jetspeed.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user=j2deployer
org.apache.jetspeed.services.autodeployment.password=j2deployer
org.apache.jetspeed.catalina.version.major=5.5

# configure MySQL TEST DB

# Create appropriate databases and users #

org.apache.jetspeed.test.database.default.name=mysql
org.apache.jetspeed.test.database.url=jdbc:mysql://${mysql.host}/j2test?useServerPrepStmts=false
org.apache.jetspeed.test.database.driver=com.mysql.jdbc.Driver
org.apache.jetspeed.test.database.user=${mysql.user}
org.apache.jetspeed.test.database.password=${mysql.password}

# Change this path to match the location where you
# unzipped the connector
org.apache.jetspeed.test.jdbc.drivers.path=c:/path/to/mysql-connector-java-3.1.12-bin.jar

# configure MySQL Production DB

# Create appropriate databases and users #

org.apache.jetspeed.production.database.default.name=mysql
org.apache.jetspeed.production.database.url=jdbc:mysql://${mysql.host}/j2?useServerPrepStmts=false
org.apache.jetspeed.production.database.driver=com.mysql.jdbc.Driver
org.apache.jetspeed.production.database.user=${mysql.user}
org.apache.jetspeed.production.database.password=${mysql.password}

# Change this path to match the location where you
# unzipped the connector
org.apache.jetspeed.production.jdbc.drivers.path=c:/path/to/mysql-connector-java-3.1.12-bin.jar

/*********** build.properties END *************/


cd to the folder one level under the folder you set as basedir

svn co http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk jetspeed-2

cd jetspeed-2

maven initMavenPlugin

maven allClean allBuild

maven j2:quickStart

If everything gave you "Build successful" go on, if not do some debugging

copy c:/path/to/mysql-connector-java-3.1.12-bin.jar to $CATALINA_HOME/shared/lib/

execute $CATALINA_HOME/bin/startup.sh

browse to http://localhost:8080/jetspeed

Should see your portal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to