Building the SCA source code is simple Code Block |
---|
cd java/sca
mvn
|
It should work even if you start with an empty Maven local repository, and it should always work. This assumes that maven is able to retrieve a SNAPSHOT version of SDO (and of course the rest of software that SCA depends on) as we haven't built anything other than SCA here. There can be occasional problems downloading artifacts from remote Maven repositories so if mvn fails with network related sounding messages sometimes just trying again can fix the problem.
Once you have done a top-down build, and your local maven repository is populated, you can start using the maven off line option to speed up the build process
Background Color |
---|
| Importing SCA modules into your Development IDE |
Using EclipseIf this is the first time you are using your workspace with maven m2 local repository, you will need to tell your Eclipse workspace the location of the directory, and you can do this with the following command : Code Block |
---|
mvn -Declipse.workspace=[path-to-eclipse-workspace] eclipse:add-maven-rep
|
In order to generate the necessary project files to import the SCA modules to Eclipse, you can use the maven eclipse plugin Code Block |
---|
cd java/sca
mvn -Peclipse eclipse:eclipse
|
Now, launch your Eclipse IDE, select File->Import->Existing projects into Workplace, and then select the base SCA directory (e.g java/sca) and then press Finish, this should import all SCA modules into your Eclipse Workspace. Anchor |
---|
| Coding Guidelines |
---|
| Coding Guidelines |
---|
|
Background Color |
---|
| Coding Guidelines |
There are a few simple guidelines when developing for JAVA SCA: - Formatting standards are defined by the .checkstyle and .pmd configurations in the source repository. Please be sure to check code is formatted properly before doing a checkin (see below). If you are unfamiliar with Checkstyle or PMD, please see http://checkstyle.sourceforge.net/
|