...
mkdir -p $HOME/ONAP-APPC
cd $HOME/ONAP-APPC
git clone clone "https://githubgerrit.onap.comorg/onapr/appc-/parent"
git clone https://gerrit.onap.org/r/appc
...
Build appc-parent
cd $HOME/ONAP-APPC/appc-parent
# Updated the CCSDK parent artifact "org.onap.ccsdk.parent" version should like the below one
# You need to manually edit CCSDK version from '1.2.1.3' to '1.2.4' in the following files.
...
mvn clean install -DskipTests | tee -a appc-parent-build.log
Reference Build Log File : appc-parent-build-07242019.log
Build appc core project
cd $HOME/ONAP-APPC/appc
...
mvn clean install -DskipTests -e | tee -a appc-build.log
Reference Git DIFF file : diff-out-001-07242019.txt , diff-out-002-08052019.txt
Reference Build Log File : appc-build-07242019.log, appc-unitest-build-failed-07242019.log, appc-unitest-build-faild-08052019.log, appc-unitest-build-failed-08122019.log
I think the junit tests are failing because the mockito when method is not compatible with the double method calls of the Invocation.Builder class (the .accept().post()):
when(webResourceBuilder.accept(MediaType.APPLICATION_JSON_TYPE).post(Entity.json(String.class),Response.class)).thenReturn(clientResponse);
The way to fix this might be to create a custom mock class for the Invocation.Builder class instead of using a mockito mock for it.
Build appc deployment project (This is responsible to build APPC docker images)
...
The docker image for CDT failed, you can refer the log file appc-deployment-docker-image-build.log to get more details.