...
- Eclipse
- Local Maven Repository (e.g. C:\mvnrepository)
- M2_REPO
- M2_OPTS
- Rice Foundation Codebase
- Download and build codebase JDK
Development Environment
Build Sheet
Install Rice API and Rice Implementation into local Maven repository
Code Block |
---|
mvn install:install-file -DgroupId=org.kuali.rice -DartifactId=rice-api -Dversion=0.9.4-SNAPSHOT -Dpackaging=jar -Dfile=<workspace>rice-0.9.4\api\target\rice-api-0.9.4-SNAPSHOT.jar
|
...
Create Maven Project
- At a command prompt, navigate to your <workspace> (e.g. C:\Development\KualiRice.workspace)
- Create a web application project using the maven-archetype-quickstart archetype
Code Block <workspace> mvn archetype:create -DgroupId=edu.ucdavis.iet.kuali.rice -DartifactId=ucd-kim-impl -DarchetypeArtifactId=maven-archetype-quickstart
Info This creates a directory named ucd-kim-impl (after the artifactId) in your <workspace>
- Navigate to the ucd-kim-impl subdirectory and generate the Eclipse project
Code Block <workspace>\ucd-kim-impl> mvn eclipse:eclipse
...
- In the Java Build Path dialog box, click on the Libraries tab
- Click Add Variable
- Select M2_REPO and click OK
- Select the variable you just added and click Edit, then Extenstion
- 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)
- 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-0.9.4\api\target\rice-api-0.9.4-SNAPSHOT.jar
Code Block mvn install:install-file -DgroupId=org.kuali.rice -DartifactId=rice-api -Dversion=0.9.4-SNAPSHOT -Dpackaging=jar -Dfile=<workspace>rice-0.9.4\impl\target\rice-impl-0.9.4-SNAPSHOT.jar
Method B:
- In the Java Build Path dialog box, click on the Libraries tab
- Click Add External JARs
- Select the appropriate JAR from your file system (e.g. C:\JavaLib\spring-framework-2.5.5\dist\spring.jar)
- 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.
...