...
To build and run uPortal full-source version , you will need the following:
- Java 7 (uPortal 4.2 will run with Java 8 may work, but Java 7 is still preferred). Java 6 will not work.)
- Maven 3.0.3+
- Ant 1.8.2
- The Servlet Container (Tomcat 7.x) (Tomcat 8.x not yet supported)
- Database
To build and run the uPortal quick-start version, download the quick-start version and continue to the Building and Deploying uPortal instructions.
...
- Download Maven
Extract the archive (apache-maven-3.0.x-bin.tar.gz) in the directory you wish to install Maven
Add theNo Format tar -xvf apache-maven-3.0.x-bin.tar.gz
M2_HOME
environment variableMake sure that
JAVA_HOME
is set to the location of your JDKNo Format export JAVA_HOME=/path/to/java/jdk1.x
Configure the
M2_HOME and MAVEN_OPTS
environment variablesNote icon false On Ubuntu, by default Maven is typically found under /usr/share/maven2
No Format export M2_HOME=/path/to/apache-maven/apache-maven-3.0.x
Add the
M2
environment variableNo Format export M2=$M2_HOME/bin
Add
M2
environment variable to your pathNo Format export PATH=$M2:$PATH
Make sure that
JAVA_HOME
is set to the location of your JDK and add to to your pathNo Format export JAVA_HOME=/path/to/java/jdk1.x MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=512m"
Add Java and Maven to your PATH
No Format export PATH=$JAVA_HOME/bin:$PATH :$M2_HOME/bin
Run the following command to verify that it is correctly installed
No Format mvn --version
...
- Download Maven
Unzip the archive, apache-maven-3.0.x-bin.zip to the directory you wish to install Maven (i.e., C:
Program Files\Apache Software Foundation)No Format unzip apache-maven-3.0.x.bin.zip
- Add the
M2_HOME
environment variable
Same as above- open up the system properties (WinKey + Pause)
- select the "Advanced" tab
- click the "Environment Variables" button
- add create the
M2_HOME
variable in the user variables with the valueC:\Program Files\Apache Software Foundation\apache-maven-3.0.x
- Add the
M2
environment variable the same as Step 3. In the user variables enter the value%M2_HOME%\bin
. - Update/Create the
Path
environment variable using the same process as above. In the user variables, prepend the value%M2%
to allow Maven to be available in the command line. - create the
MAVEN_OPTS
variable in the user variables with the value -Xmx1024M -XX:MaxPermSize=512m
- create the
- Same as above (*-nix instructions), make sure that
JAVA_HOME
exists in your user variables or in the system variables and set the location of your JDK (C:\Program Files\Java\jdk1.x) - Update the
Path
environment 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 --version
to verify that it is correctly installed.
...