About Microsoft SQL Server
Step 1: Obtaining the Driver
Since the jTDS JDBC driver for MSSQL is not available in the central Maven repository, it must be placed into the local repository of each machine on which you wish to build uPortal.
As an alternative to this, you could set up a maven repository for use by multiple machines.
The first step is to download the JDBC driver for your database. The preferred driver is the jTDS driver from sourceforge. It can be obtained here.
To install the JAR into your local maven repository, use the following command:
The groupId, artifactId and version specified in this command are up to you, but they should match the JAR vendor, name and version to avoid confusion down the road.
Step 2: Add the Dependency
From the uPortal source directory, open the uPortal-4.x.x/pom.xml file, there is a section about 110 lines down that reads:
Modify this to use the MSSQL driver, using the group, artifact and version information from the mvn install:install-file command above.
See Issues section about possible issues using this driver.
Step 3: Configure the Database Filter
1. In the filters folder, locate the default local.properties file under uPortal-4.x.x/filters/local.properties and configure the Database Connection Settings
Step 4: Test the Configuration
dbtest ant target will tell you if you have configured the database connection properly.
Step 5: Build and Deploy
Following a successful test, you can execute the command below to build the database tables and copy files to your servlet container.
Step 6: Restart Tomcat
Much of the information on this page was provided by Bikrant Neupane on the uportal-user list. Thanks.