Opennms build failed due to xerces problem (affecting 1.6.x)

For some of you who may have tried building opennms from scratch, you may find a problem where build failed due to xerces dependencies could not be found. Based on several post that I have read, it is due to the relocation of the files. Well, the simples work around to that is to install xerces-1.4.0.jar into your local maven repository. This is the syntax command to do that:

mvn install:install-file -Dfile= -DgroupId= \
    -DartifactId= -Dversion= -Dpackaging=

In a more detail way:
1. Download xerces-1.4.0.jar from your favorite maven repository such as ibiblio.
2. Go to the folder where you save xerces-1.4.0.jar
3. Execute the following command:

mvn install:install-file -Dfile=xerces-1.4.0.jar -DgroupId=xerces \
    -DartifactId=xerces -Dversion=1.4.0 -Dpackaging=jar

Then try again to build opennms. It should then be allright. I hope this would help anyone who encounter such problem.

Comments