From 62028bb5b8c9127f73694b1c7efabe5e109f3017 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 14 Jan 2025 14:22:46 +0000 Subject: Fix apex-pdp image generation - policies generated with docker profile were missing the --working-dir argument - infinispan and hazelcast uplifted and configurations fixed to match the latest versions Issue-ID: POLICY-5192 Change-Id: I4a47c3dbdbbc8e863abaa4097ba00ea31508ffa5 Signed-off-by: adheli.tavares --- examples/examples-acm/pom.xml | 3 +- .../examples-decisionmaker-sharedcontext/pom.xml | 4 +- examples/examples-grpc/pom.xml | 4 +- examples/examples-myfirstpolicy/pom.xml | 352 ++++++++++----------- examples/examples-onap-vcpe/pom.xml | 4 +- 5 files changed, 187 insertions(+), 180 deletions(-) (limited to 'examples') diff --git a/examples/examples-acm/pom.xml b/examples/examples-acm/pom.xml index 9e6135100..9e2945c6b 100644 --- a/examples/examples-acm/pom.xml +++ b/examples/examples-acm/pom.xml @@ -1,7 +1,7 @@ - 4.0.0 - - org.onap.policy.apex-pdp.examples - examples - 4.1.0-SNAPSHOT - + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + 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.apex-pdp.examples + examples + 4.1.0-SNAPSHOT + - examples-myfirstpolicy - ${project.artifactId} - Specific code for the Apex MyFirstPolicy Example + examples-myfirstpolicy + ${project.artifactId} + Specific code for the Apex MyFirstPolicy Example - - MyFirstPolicyModelMvel_0.0.1 - MyFirstPolicyModelJavascript_0.0.1 - MyFirstPolicyModel_0.0.1 - MyFirstPolicyModelSFL_0.0.1 - MyFirstPolicyModelAvro_0.0.1 - + + MyFirstPolicyModelMvel_0.0.1 + MyFirstPolicyModelJavascript_0.0.1 + MyFirstPolicyModel_0.0.1 + MyFirstPolicyModelSFL_0.0.1 + MyFirstPolicyModelAvro_0.0.1 + - - - org.onap.policy.apex-pdp.model - model - ${project.version} - - - org.onap.policy.apex-pdp.core - core - ${project.version} - test - - - org.onap.policy.apex-pdp.auth - cli-editor - ${project.version} - - - org.onap.policy.apex-pdp.plugins.plugins-executor - plugins-executor-mvel - ${project.version} - test - - - org.onap.policy.apex-pdp.plugins.plugins-executor - plugins-executor-javascript - ${project.version} - test - - + + + org.onap.policy.apex-pdp.model + model + ${project.version} + + + org.onap.policy.apex-pdp.core + core + ${project.version} + test + + + org.onap.policy.apex-pdp.auth + cli-editor + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-executor + plugins-executor-mvel + ${project.version} + test + + + org.onap.policy.apex-pdp.plugins.plugins-executor + plugins-executor-javascript + ${project.version} + test + + - - - - org.codehaus.mojo - exec-maven-plugin - - - - generate-policy1m - compile - - java - - - org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain - compile - - - --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1m.name}.apex - - - --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1m.name}.json - - - --log-file=${project.build.directory}/${policymodel1m.name}_policygeneration.log - - --working-dir=${project.basedir} - - - - - generate-policy1j - compile - - java - - - org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain - compile - - - --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1j.name}.apex - - - --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1j.name}.json - - - --log-file=${project.build.directory}/${policymodel1j.name}_policygeneration.log - - --working-dir=${project.basedir} - - - - - generate-policy2 - compile - - java - - - org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain - compile - - - --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/2/${policymodel2.name}.apex - - - --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/2/${policymodel2.name}.json - - - --log-file=${project.build.directory}/${policymodel2.name}_policygeneration.log - - --working-dir=${project.basedir} - - - - - generate-policy3 - compile - - java - - - org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain - compile - - - --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/3/${policymodel3.name}.apex - - - --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/3/${policymodel3.name}.json - - - --log-file=${project.build.directory}/${policymodel3.name}_policygeneration.log - - --working-dir=${project.basedir} - - - - - generate-policy4 - compile - - java - - - org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain - compile - - - --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/4/${policymodel4.name}.apex - - - --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/4/${policymodel4.name}.json - - - --log-file=${project.build.directory}/${policymodel4.name}_policygeneration.log - - --working-dir=${project.basedir} - - - - - - - + + + + org.codehaus.mojo + exec-maven-plugin + + + + generate-policy1m + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + + --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1m.name}.apex + + + --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1m.name}.json + + + --log-file=${project.build.directory}/${policymodel1m.name}_policygeneration.log + + --working-dir=${project.basedir} + + + + + generate-policy1j + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + + --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1j.name}.apex + + + --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1j.name}.json + + + --log-file=${project.build.directory}/${policymodel1j.name}_policygeneration.log + + --working-dir=${project.basedir} + + + + + generate-policy2 + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + + --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/2/${policymodel2.name}.apex + + + --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/2/${policymodel2.name}.json + + + --log-file=${project.build.directory}/${policymodel2.name}_policygeneration.log + + --working-dir=${project.basedir} + + + + + generate-policy3 + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + + --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/3/${policymodel3.name}.apex + + + --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/3/${policymodel3.name}.json + + + --log-file=${project.build.directory}/${policymodel3.name}_policygeneration.log + + --working-dir=${project.basedir} + + + + + generate-policy4 + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + + --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/4/${policymodel4.name}.apex + + + --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/4/${policymodel4.name}.json + + + --log-file=${project.build.directory}/${policymodel4.name}_policygeneration.log + + --working-dir=${project.basedir} + + + + + + + diff --git a/examples/examples-onap-vcpe/pom.xml b/examples/examples-onap-vcpe/pom.xml index c18ef88f2..f64a24ecf 100644 --- a/examples/examples-onap-vcpe/pom.xml +++ b/examples/examples-onap-vcpe/pom.xml @@ -1,7 +1,7 @@