Requirements
uPortal Environment Requirements
To build and run uPortal full-source version , you will need the following:
Java 8. uPortal 4.3 will run with Java 7 but it is not preferred.
Maven 3.0.2+ (uPortal 4.3+ requires Maven 3.2.2+)
Ant 1.8.2 or 1.9.3 or later
The Servlet Container (Tomcat 8.x) (Tomcat 7.x currently still works)
Database
To build and run the uPortal quick-start version (bundled package for simple and quick evaluation; downloaded zip or tar.gz includes self-contained Tomcat/maven/ant but you still need to have your own Java installed), download the quick-start version and continue to the Building and Deploying uPortal instructions. You do not need to do the rest of the items on this page (though you do need your own Java installed and setup as indicated below if you don't already have that).
Install Java JDK
Unix/Linux Maven Installation
If not already present on your system, download and install Java.
Make sure that
JAVA_HOMEis set to the location of your JDK
export JAVA_HOME=/path/to/java/jdk1.8Windows Java Installation
If not already present on your system, download and install Java.
Make sure that
JAVA_HOMEis set to the location of your JDK
Installing Apache Maven
The uPortal 4.2.0 manual originally stated Maven 3.0.3. I found that the initdb failed after updating the SimpleContentPortlet from v1.x to v2.x due to incompatible slf4j API versions. I found that Maven 3.2.2 worked fine so I updated these instructions to use Maven 3.2.2 instead of 3.0.3.
Unix/Linux Maven Installation
Download Maven
Extract the archive (apache-maven-3.2.x-bin.tar.gz) in the directory you wish to install Maven
tar -xvf apache-maven-3.2.x-bin.tar.gzMake sure that
JAVA_HOMEis set to the location of your JDKexport JAVA_HOME=/path/to/java/jdk1.xConfigure the
M2_HOME and MAVEN_OPTSenvironment variablesexport M2_HOME=/path/to/apache-maven/apache-maven-3.2.x export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=512m"Add Java and Maven to your PATH
export PATH=$JAVA_HOME/bin:$PATH:$M2_HOME/binRun the following command to verify that it is correctly installed
mvn --version
Windows Maven Installation
Download Maven
Unzip the archive, apache-maven-3.2.x-bin.zip to the directory you wish to install Maven (i.e., C:\Program Files\Apache Software Foundation)
unzip apache-maven-3.2.x.bin.zipAdd the
M2_HOMEenvironment variableopen up the system properties (WinKey + Pause)
select the "Advanced" tab
click the "Environment Variables" button
create the
M2_HOMEvariable in the user variables with the valueC:\Program Files\Apache Software Foundation\apache-maven-3.2.xcreate the
MAVEN_OPTSvariable in the user variables with the value -Xmx1024M -XX:MaxPermSize=512m
Same as above (*-nix instructions), make sure that
JAVA_HOMEexists in your user variables or in the system variables and set the location of your JDK (C:\Program Files\Java\jdk1.x)Update the
Pathenvironment variable to include both%JAVA_HOME%\bin(which should come first or early) and %M2_HOME%\bin (which may come last or late) using the Step 3 instructions.Open a new command prompt (Winkey + R then type
cmd) and runmvn --versionto verify that it is correctly installed.
Installing Apache Ant
Download Apache Ant (it needs to be version 1.8.2; you can get that older version of Ant here: http://archive.apache.org/dist/ant/binaries/ )
Extract the archive in the directory you wish to install Apache Ant
//extracting tar.gz archive tar -xvf apache-ant-1.8.2-bin.tar.gzAdd the
ANT_HOMEenvironment variableexport ANT_HOME=/path/to/apache-ant-1.8.2Make sure the
JAVA_HOMEenvironment variable is setupexport JAVA_HOME=/usr/local/jdk-1.xAdd the
ANT_HOMEto thePATHvariableexport PATH=$PATH:$ANT_HOME/binConfirm that your Ant installation is working by running the following command
ant -version
Having problems with these instructions?
Please send us feedback at uportal-user@lists.jasig.org