From f46af3394f85598eaa718f22312f9b7a6485c636 Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Fri, 20 Mar 2020 18:30:43 +0000 Subject: Adding example for APEX gRPC plugin for CDS interaction Change-Id: I8361eb0cbe74c3548ca98f3005bc37f5a1f91747 Issue-ID: POLICY-2436 Signed-off-by: a.sreekumar --- examples/examples-grpc/pom.xml | 129 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 examples/examples-grpc/pom.xml (limited to 'examples/examples-grpc/pom.xml') diff --git a/examples/examples-grpc/pom.xml b/examples/examples-grpc/pom.xml new file mode 100644 index 000000000..4113ab33f --- /dev/null +++ b/examples/examples-grpc/pom.xml @@ -0,0 +1,129 @@ + + + + 4.0.0 + + org.onap.policy.apex-pdp.examples + examples + 2.3.0-SNAPSHOT + + examples-grpc + examples-grpc + Specific code for the APEX gRPC Example + + APEXgRPCPolicy + APEXgRPCToscaPolicy + + + + org.onap.policy.apex-pdp.auth + cli-editor + ${project.version} + + + org.onap.policy.apex-pdp.services + services-engine + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema + plugins-context-schema-avro + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-executor + plugins-executor-javascript + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier + plugins-event-carrier-grpc + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier + plugins-event-carrier-restclient + ${project.version} + + + org.onap.policy.models.policy-models-interactions.model-impl + events + ${version.policy.models} + + + org.onap.policy.common + policy-endpoints + + + junit + junit + test + + + + + + org.codehaus.mojo + exec-maven-plugin + + + + generate-policy + compile + + java + + + org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain + compile + + --command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex + --output-model-file=${project.build.directory}/classes/${policymodel.name}.json + --log-file=${project.build.directory}/${policymodel.name}_policygeneration.log + --working-dir=${project.basedir} + + + + + + generate-tosca-policy + compile + + java + + + org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain + compile + + --command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex + --output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.json + --log-file=${project.build.directory}/${policymodel.name}_policygeneration.log + --apex-config-file=${project.basedir}/src/main/resources/examples/config/APEXgRPC/ApexConfig.json + --tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json + + + + + + + + \ No newline at end of file -- cgit 1.2.3-korg