Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  1. Define base properties:

    groupId

    edu.ucdavis.iet.kuali.rice

    artifactId

    ucd-kim-impl

    packaging

    jar

    version

    1.0.0

    name

    ucd-kim-impl

  2. Add dependency properties:

    spring.version

    2.0.4

    spring-ldap.version

    1.3.0.RELEASE

    commons-lang.version

    2.3

    rice-api.version

    0.9.4-SNAPSHOT

    rice-impl.version

    0.9.4-SNAPSHOT

    db-ojb.version

    1.0.4-patch2

    servlet-api.version

    2.4

    xalan.version

    2.4.0

    iet-ldap-widget.version

    1.0.0

  3. Add dependencies:
    • Spring LDAP Core
    • Spring
    • Rice API
    • Rice Implementation
    • Common Lang
    • DB OJB
    • Servlet API
    • Xalan-J
    • IET LDAP Widget
  4. Add repository for Spring LDAP Core

Declare Spring Beans

Configure Dependencies on the Build Path

...

  1. In the Java Build Path dialog box, click on the Libraries tab
  2. Click Add Variable
  3. Select M2_REPO and click OK
  4. Select the variable you just added and click Edit, then Extenstion
  5. Select the appropriate JAR from the Maven repository hierarchy (e.g. spring-2.5.5.jar will be in org/spring/framework/spring/2.5.5)
  6. Repeat for all other dependencies
    Info

    If the JAR you want is not already in your local Maven repository, you must install it using mvn:install
    For example, to install Rice API and Rice Implementation:

    Code Block
    mvn install:install-file -DgroupId=org.kuali.rice -DartifactId=rice-api -Dversion=0.9.4-SNAPSHOT -Dpackaging=jar -Dfile=<workspace>rice<workspace>\rice-0.9.4\api\target\rice-api-0.9.4-SNAPSHOT.jar
    
    Code Block
    mvn install:install-file -DgroupId=org.kuali.rice -DartifactId=rice-impl -Dversion=0.9.4-SNAPSHOT -Dpackaging=jar -Dfile=<workspace>rice<workspace>\rice-0.9.4\impl\target\rice-impl-0.9.4-SNAPSHOT.jar
    

...

  1. In the Java Build Path dialog box, click on the Libraries tab
  2. Click Add External JARs
  3. Select the appropriate JAR from your file system (e.g. C:\JavaLib\spring-framework-2.5.5\dist\spring.jar)
  4. Repeat for all other dependencies
    Tip
    • Method A works well if you want to perform the Maven builds yourself.
    • Method B works well if you use a continuous integration system like Bamboo to perform the Maven builds.

Build the JAR

Method A:
  1. Compile the source code by selecting Project -> *Build Project (alternatively, configure Eclipse to always Build Automatically)
  2. At the command prompt, create a JAR from the compiled code
    Code Block
    
    <workspace>\ucd-kim-impl> mvn
    :clean package
     jar:jar
    
    Info

    This is in lieu of com.sun.tools.javac.code.Symbol$CompletionFailure: file javax\persistence\Table.class not found error.

Deploy to local Maven Repository

Configure the Rice POM

Build the Rice WAR