From 22afe401ca130eba6543f740039e8a3c13d11861 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 2 Apr 2024 15:15:39 +0100 Subject: Dependency management update - including dependencies to pom.xml files only where they are used, avoiding extra dependencies being added in all packages. Issue-ID: POLICY-4945 Change-Id: I85b18befe3fe2877c754b1ac818d1b4994f9f7f9 Signed-off-by: adheli.tavares --- models-base/pom.xml | 33 +++++- models-dao/pom.xml | 15 ++- .../src/test/resources/META-INF/persistence.xml | 1 + models-decisions/pom.xml | 14 ++- models-errors/pom.xml | 36 ++++++- .../models/errors/concepts/ErrorResponseUtils.java | 10 +- models-interactions/model-actors/actor.vfc/pom.xml | 4 +- .../model-actors/actorServiceProvider/pom.xml | 7 +- .../impl/OperationPartialTest.java | 8 +- models-interactions/model-actors/pom.xml | 8 +- models-interactions/model-impl/aai/pom.xml | 14 +++ models-interactions/model-impl/appc/pom.xml | 17 ++- models-interactions/model-impl/appclcm/pom.xml | 18 +++- models-interactions/model-impl/cds/pom.xml | 17 ++- models-interactions/model-impl/events/pom.xml | 21 +++- models-interactions/model-impl/guard/pom.xml | 13 ++- models-interactions/model-impl/rest/pom.xml | 28 ++++- models-interactions/model-impl/sdnc/pom.xml | 7 +- models-interactions/model-impl/sdnr/pom.xml | 16 ++- models-interactions/model-impl/so/pom.xml | 5 + models-interactions/model-simulators/pom.xml | 16 +++ models-pap/pom.xml | 20 +++- .../src/test/resources/META-INF/persistence.xml | 1 + models-pdp/pom.xml | 26 ++++- .../src/test/resources/META-INF/persistence.xml | 1 + models-provider/pom.xml | 31 ++++-- .../src/test/resources/META-INF/persistence.xml | 1 + models-sim/policy-models-sim-pdp/pom.xml | 10 +- .../TestPdpSimulatorParameterHandler.java | 18 ++-- .../resources/PdpSimulatorConfigParameters.json | 8 -- .../src/test/resources/TestConfigParameters.json | 8 -- models-sim/policy-models-simulators/pom.xml | 17 ++- .../org/onap/policy/models/simulators/Main.java | 1 - models-tosca/pom.xml | 28 +++-- .../src/test/resources/META-INF/persistence.xml | 1 + pom.xml | 114 ++------------------- 36 files changed, 400 insertions(+), 193 deletions(-) diff --git a/models-base/pom.xml b/models-base/pom.xml index 621d64afc..f52d0adba 100644 --- a/models-base/pom.xml +++ b/models-base/pom.xml @@ -1,6 +1,6 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.onap.policy.models @@ -45,14 +45,30 @@ ${project.version} - org.onap.policy.common - common-parameters - ${policy.common.version} + org.onap.policy.common + common-parameters + ${policy.common.version} + + + org.onap.policy.common + utils-test + ${policy.common.version} + test com.h2database h2 test + + org.assertj + assertj-core + test + + + com.openpojo + openpojo + test + diff --git a/models-pdp/src/test/resources/META-INF/persistence.xml b/models-pdp/src/test/resources/META-INF/persistence.xml index 8e15613c8..d4fb65a83 100644 --- a/models-pdp/src/test/resources/META-INF/persistence.xml +++ b/models-pdp/src/test/resources/META-INF/persistence.xml @@ -23,6 +23,7 @@ + org.hibernate.jpa.HibernatePersistenceProvider org.onap.policy.models.dao.converters.CDataConditioner org.onap.policy.models.dao.converters.Uuid2String org.onap.policy.models.base.PfConceptKey diff --git a/models-provider/pom.xml b/models-provider/pom.xml index 3b031128f..d09d730b0 100644 --- a/models-provider/pom.xml +++ b/models-provider/pom.xml @@ -1,7 +1,7 @@