Set new master version for Dublin
[policy/apex-pdp.git] / examples / examples-myfirstpolicy / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20 <project 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">
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.policy.apex-pdp.examples</groupId>
24         <artifactId>examples</artifactId>
25         <version>2.1.0-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>examples-myfirstpolicy</artifactId>
29     <name>${project.artifactId}</name>
30     <description>Specific code for the Apex MyFirstPolicy Example</description>
31
32     <properties>
33         <apex-domains-myfirstpolicy-dir>${project.basedir}/src</apex-domains-myfirstpolicy-dir>
34     </properties>
35
36     <dependencies>
37         <dependency>
38             <groupId>org.onap.policy.apex-pdp.model</groupId>
39             <artifactId>policy-model</artifactId>
40             <version>${project.version}</version>
41         </dependency>
42         <dependency>
43             <groupId>org.onap.policy.apex-pdp.core</groupId>
44             <artifactId>core-engine</artifactId>
45             <version>${project.version}</version>
46             <scope>test</scope>
47         </dependency>
48         <dependency>
49             <groupId>org.onap.policy.apex-pdp.core</groupId>
50             <artifactId>core-infrastructure</artifactId>
51             <version>${project.version}</version>
52             <scope>test</scope>
53         </dependency>
54         <dependency>
55             <groupId>org.onap.policy.apex-pdp.auth</groupId>
56             <artifactId>cli-editor</artifactId>
57             <version>${project.version}</version>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
62             <artifactId>plugins-executor-mvel</artifactId>
63             <version>${project.version}</version>
64             <scope>test</scope>
65         </dependency>
66         <dependency>
67             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
68             <artifactId>plugins-executor-javascript</artifactId>
69             <version>${project.version}</version>
70             <scope>test</scope>
71         </dependency>
72         <dependency>
73             <groupId>org.apache.derby</groupId>
74             <artifactId>derby</artifactId>
75             <version>${version.derby}</version>
76             <scope>test</scope>
77         </dependency>
78     </dependencies>
79
80     <build>
81         <plugins>
82             <plugin>
83                 <groupId>org.codehaus.mojo</groupId>
84                 <artifactId>exec-maven-plugin</artifactId>
85                 <executions>
86                     <execution>
87                         <id>generate-models</id>
88                         <phase>process-classes</phase>
89                         <goals>
90                             <goal>exec</goal>
91                         </goals>
92                         <configuration>
93                             <executable>java</executable>
94                             <arguments>
95                                 <argument>-classpath</argument>
96                                 <!-- automatically creates the classpath using all project dependencies, 
97                                     also adding the project build directory -->
98                                 <classpath />
99                                 <argument>org.onap.policy.apex.examples.myfirstpolicy.model.MfpDomainModelSaver</argument>
100                                 <argument>${project.build.directory}/classes/examples/models/MyFirstPolicy</argument>
101                             </arguments>
102                         </configuration>
103                     </execution>
104                 </executions>
105             </plugin>
106         </plugins>
107     </build>
108
109     <profiles>
110         <profile>
111             <id>apexSite</id>
112             <activation>
113                 <property>
114                     <name>apexSite</name>
115                 </property>
116             </activation>
117             <properties>
118                 <adsite-examples-myfirstpolicy-dir>${project.basedir}/src</adsite-examples-myfirstpolicy-dir>
119             </properties>
120             <distributionManagement>
121                 <site>
122                     <id>${project.artifactId}-site</id>
123                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
124                 </site>
125             </distributionManagement>
126             <build>
127                 <plugins>
128                     <plugin>
129                         <groupId>org.apache.maven.plugins</groupId>
130                         <artifactId>maven-resources-plugin</artifactId>
131                         <version>3.0.2</version>
132                         <executions>
133                             <execution>
134                                 <id>copy-domain-mfp-images</id>
135                                 <phase>initialize</phase>
136                                 <goals>
137                                     <goal>copy-resources</goal>
138                                 </goals>
139                                 <configuration>
140                                     <resources>
141                                         <resource>
142                                             <directory>${project.basedir}/src/site-docs/adoc/resources/images</directory>
143                                             <includes>
144                                                 <include>**/*.jpg</include>
145                                                 <include>**/*.png</include>
146                                             </includes>
147                                         </resource>
148                                     </resources>
149                                     <outputDirectory>${project.build.directory}/site/images</outputDirectory>
150                                 </configuration>
151                             </execution>
152                         </executions>
153                     </plugin>
154                 </plugins>
155             </build>
156         </profile>
157     </profiles>
158 </project>