From d7f6e96eb454f45df7ec571506d11ac2a5c7deac Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 10 Feb 2021 19:03:47 +0000 Subject: Enable building of the tosca PoC code At the moment, because the code in the tosca-controlloop directory is not linked to the CLAMP pom, it is not built by the Jenkins jobs. This commit makes a change to the pom.xml file on the tosca-poc branch only so that the tosca-controlloop code is built. The maven-invoker-plugin runs a build of the code in the tosca-controlloop subdirectory by invoking a build of its pom.xml. The output artifacts are placed in target/tosca-controlloop and do not interfere in any way with the main CLAMP build. However, if there are compile erors/test fails/maven errors in the tosca-controlloop coode, the build wil and should fail. Issue-ID: POLICY-2995 Change-Id: Ie4d3e3189af6afe0a046ab565a7cc2703afa503d Signed-off-by: liamfallon --- pom.xml | 21 +++++++++++ tosca-controlloop/common/pom.xml | 5 +-- tosca-controlloop/design/pom.xml | 5 +-- tosca-controlloop/models/pom.xml | 5 +-- tosca-controlloop/participants/pom.xml | 22 +---------- tosca-controlloop/pom.xml | 69 ++++++++++++++++++++++++++++------ tosca-controlloop/runtime/pom.xml | 18 +++------ 7 files changed, 92 insertions(+), 53 deletions(-) diff --git a/pom.xml b/pom.xml index 92caece96..e85483d31 100644 --- a/pom.xml +++ b/pom.xml @@ -5,6 +5,7 @@ ================================================================================ Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved. + Modifications Copyright (C) 2021 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -1306,6 +1307,26 @@ + + maven-invoker-plugin + 3.2.1 + + tosca-controlloop + ${project.build.directory}/tosca-controlloop + + */pom.xml + + true + + + + build-tosca-controlloop + + run + + + + diff --git a/tosca-controlloop/common/pom.xml b/tosca-controlloop/common/pom.xml index ad69440ea..fef79f002 100755 --- a/tosca-controlloop/common/pom.xml +++ b/tosca-controlloop/common/pom.xml @@ -1,8 +1,7 @@ - - org.assertj - assertj-core - test - - - org.powermock - powermock-api-mockito2 - test - - - junit - junit - test - diff --git a/tosca-controlloop/pom.xml b/tosca-controlloop/pom.xml index a328c03ee..008f45e36 100755 --- a/tosca-controlloop/pom.xml +++ b/tosca-controlloop/pom.xml @@ -1,8 +1,7 @@ diff --git a/tosca-controlloop/runtime/pom.xml b/tosca-controlloop/runtime/pom.xml index d3bfd3925..93498f5e1 100644 --- a/tosca-controlloop/runtime/pom.xml +++ b/tosca-controlloop/runtime/pom.xml @@ -1,8 +1,7 @@