<!--
============LICENSE_START=======================================================
Copyright (C) 2018 Ericsson. All rights reserved.
- Modifications Copyright (C) 2020 Nordix Foundation.
+ Modifications Copyright (C) 2020,2022 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<parent>
<groupId>org.onap.policy.apex-pdp.examples</groupId>
<artifactId>examples</artifactId>
- <version>2.3.2-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>examples-myfirstpolicy</artifactId>
<policymodel1j.name>MyFirstPolicyModelJavascript_0.0.1</policymodel1j.name>
<policymodel2.name>MyFirstPolicyModel_0.0.1</policymodel2.name>
<policymodel3.name>MyFirstPolicyModelSFL_0.0.1</policymodel3.name>
+ <policymodel4.name>MyFirstPolicyModelAvro_0.0.1</policymodel4.name>
</properties>
<dependencies>
<dependency>
<groupId>org.onap.policy.apex-pdp.model</groupId>
- <artifactId>policy-model</artifactId>
+ <artifactId>model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onap.policy.apex-pdp.core</groupId>
- <artifactId>core-engine</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.onap.policy.apex-pdp.core</groupId>
- <artifactId>core-infrastructure</artifactId>
+ <artifactId>core</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</arguments>
</configuration>
</execution>
+ <execution>
+ <id>generate-policy4</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
+ <classpathScope>compile</classpathScope>
+ <arguments>
+ <argument>
+ --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/4/${policymodel4.name}.apex
+ </argument>
+ <argument>
+ --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/4/${policymodel4.name}.json
+ </argument>
+ <argument>
+ --log-file=${project.build.directory}/${policymodel4.name}_policygeneration.log
+ </argument>
+ <argument>--working-dir=${project.basedir}</argument>
+ </arguments>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>
</build>
-
- <profiles>
- <profile>
- <id>apexSite</id>
- <activation>
- <property>
- <name>apexSite</name>
- </property>
- </activation>
- <properties>
- <adsite-examples-myfirstpolicy-dir>${project.basedir}/src
- </adsite-examples-myfirstpolicy-dir>
- </properties>
- <distributionManagement>
- <site>
- <id>${project.artifactId}-site</id>
- <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/
- </url>
- </site>
- </distributionManagement>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.0.2</version>
- <executions>
- <execution>
- <id>copy-domain-mfp-images</id>
- <phase>initialize</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>${project.basedir}/src/site-docs/adoc/resources/images</directory>
- <includes>
- <include>**/*.jpg</include>
- <include>**/*.png</include>
- </includes>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}/site/images</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>