From 755eb9df282d80273043a2e902e2a51bf6eaab24 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 22 Jan 2020 12:11:11 +0000 Subject: Run apex-pdp in Java 11: base changes This change brings in the minimum changes to get apex-pdp running in Java 11. Other reviews will bring in changes to remove Java 11 warnings and to convert apex-pdp Javascript handling from the now deprecated nashorn engine. Issue-ID: POLICY-1581 Change-Id: I879bbae08d4e67aca3f1bfeedeca639d8dbbc281 Signed-off-by: liamfallon --- examples/examples-myfirstpolicy/pom.xml | 63 +++++++++++++++++++++++++++------ 1 file changed, 52 insertions(+), 11 deletions(-) (limited to 'examples/examples-myfirstpolicy') diff --git a/examples/examples-myfirstpolicy/pom.xml b/examples/examples-myfirstpolicy/pom.xml index 0e3424120..ec61748f0 100644 --- a/examples/examples-myfirstpolicy/pom.xml +++ b/examples/examples-myfirstpolicy/pom.xml @@ -1,6 +1,7 @@ - + 4.0.0 org.onap.policy.apex-pdp.examples @@ -30,7 +34,8 @@ Specific code for the Apex MyFirstPolicy Example - ${project.basedir}/src + MyFirstPolicyModel_0.0.1 + MyFirstPolicyModel_0.0.1 @@ -55,7 +60,6 @@ org.onap.policy.apex-pdp.auth cli-editor ${project.version} - test org.onap.policy.apex-pdp.plugins.plugins-executor @@ -79,24 +83,61 @@ generate-models - process-classes + compile - exec + java - java + org.onap.policy.apex.examples.myfirstpolicy.model.MfpDomainModelSaver + compile - -classpath - - - org.onap.policy.apex.examples.myfirstpolicy.model.MfpDomainModelSaver ${project.build.directory}/classes/examples/models/MyFirstPolicy + + org.codehaus.mojo + exec-maven-plugin + + + + generate-policy1 + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1.name}.apex + --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1.name}.json + --log-file=${project.build.directory}/${policymodel1.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} + + + + + -- cgit 1.2.3-korg