summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/apex-pdp-package-full/pom.xml27
-rw-r--r--tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliMain.java4
2 files changed, 29 insertions, 2 deletions
diff --git a/packages/apex-pdp-package-full/pom.xml b/packages/apex-pdp-package-full/pom.xml
index 070d2d86f..8f788127a 100644
--- a/packages/apex-pdp-package-full/pom.xml
+++ b/packages/apex-pdp-package-full/pom.xml
@@ -336,6 +336,15 @@
</artifactItem>
<artifactItem>
<groupId>org.onap.policy.apex-pdp.examples</groupId>
+ <artifactId>examples-decisionmaker</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
+ <includes>DecisionMakerPolicyModel.json</includes>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.onap.policy.apex-pdp.examples</groupId>
<artifactId>examples-periodic</artifactId>
<version>${project.version}</version>
<type>jar</type>
@@ -345,6 +354,15 @@
</artifactItem>
<artifactItem>
<groupId>org.onap.policy.apex-pdp.examples</groupId>
+ <artifactId>examples-periodic</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
+ <includes>PeriodicPolicyModel.json</includes>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.onap.policy.apex-pdp.examples</groupId>
<artifactId>examples-onap-vcpe</artifactId>
<version>${project.version}</version>
<type>jar</type>
@@ -354,6 +372,15 @@
</artifactItem>
<artifactItem>
<groupId>org.onap.policy.apex-pdp.examples</groupId>
+ <artifactId>examples-onap-vcpe</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
+ <includes>ONAPvCPEPolicyModel.json</includes>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.onap.policy.apex-pdp.examples</groupId>
<artifactId>examples-servlet</artifactId>
<version>${project.version}</version>
<type>war</type>
diff --git a/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliMain.java b/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliMain.java
index 5c40b029b..1fd96b9ea 100644
--- a/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliMain.java
+++ b/tools/model-generator/src/main/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliMain.java
@@ -121,12 +121,12 @@ public final class Model2CliMain {
*/
private String getHelpString(final CliParser cli) {
HelpFormatter formatter = new HelpFormatter();
-
+
final StringWriter helpStringWriter = new StringWriter();
final PrintWriter helpPrintWriter = new PrintWriter(helpStringWriter);
formatter.printHelp(helpPrintWriter, 120, APP_NAME, APP_DESCRIPTION, cli.getOptions(), 2, 4, "");
-
+
return helpStringWriter.toString();
}