Fork me on GitHub

Building

To build the Coherence Spring project you need to have the following software installed:

  1. Java SE Development Kit 7.

    Available from: Oracle Java SE Downloads

  2. Apache Maven Version 3.3.9

    Available here: Apache Maven Downloads

  3. The source code.

Once you have these installed building the entire source tree is as simple as executing the following shell command (from the root of the source directory):

$ mvn clean install

However the fact that the Coherence Spring project depends on a commercial product, namely Oracle Coherence that of which is not available in a public Apache Maven Repository, probably means that your first build is likely to fail because of a missing dependency on coherence.jar.

Should this problem occur you may need to manually install a suitable coherence.jar into your local repository or your organization’s repository manager.

If you haven’t used or don’t plan on using the Maven support provided with the Oracle Coherence installed, to manually install the standard coherence.jar into your local Apache Maven repository, simply change to $COHERENCE_HOME/lib directory and run the following command:

$ mvn install:install-file  \
      -DgroupId=com.oracle.coherence  \
      -DartifactId=coherence  \
      -Dversion=12.1.2-0-5  \
      -Dfile=coherence.jar  \
      -Dpackaging=jar \
      -DgeneratePom=true

The groupId, artifactId and version are critically important. They must be as indicated above otherwise the Coherence Spring won’t build.

Of course the above assumes that you are installing the Coherence 12.1.2-0-5 jar file. If you want to install one of the more recent releases, change the version number in the command above accordingly.

Once the coherence.jar is properly installed into your Apache Maven repository, you should be able to build the Coherence Spring project.