Set snapshot and/or references of policy/models for new release
[policy/models.git] / models-sim / packages / models-simulator-tarball / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP
4   ================================================================================
5    Copyright (C) 2020 Bell Canada.
6    Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19
20   SPDX-License-Identifier: Apache-2.0
21   ============LICENSE_END=========================================================
22 -->
23
24 <project xmlns="http://maven.apache.org/POM/4.0.0"
25   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27   <modelVersion>4.0.0</modelVersion>
28   <parent>
29     <groupId>org.onap.policy.models.sim</groupId>
30     <artifactId>models-sim-packages</artifactId>
31     <version>3.0.0-SNAPSHOT</version>
32   </parent>
33
34   <artifactId>models-simulator-tarball</artifactId>
35
36   <name>${project.artifactId}</name>
37   <description>A module that runs all "simulators", including DMaaP.</description>
38
39   <properties>
40       <!-- There is no code in this sub-module, only holds interfaces. So skip sonar. -->
41       <sonar.skip>true</sonar.skip>
42   </properties>
43
44   <dependencies>
45     <dependency>
46       <groupId>org.onap.policy.models.sim</groupId>
47       <artifactId>policy-models-simulators</artifactId>
48       <version>${project.version}</version>
49     </dependency>
50   </dependencies>
51
52   <build>
53     <resources>
54       <!-- Output the version of the service -->
55       <resource>
56         <directory>src/main/resources</directory>
57         <filtering>true</filtering>
58         <includes>
59           <include>**/version.txt</include>
60         </includes>
61       </resource>
62       <resource>
63         <directory>src/main/resources</directory>
64         <filtering>false</filtering>
65         <excludes>
66           <exclude>**/version.txt</exclude>
67         </excludes>
68       </resource>
69     </resources>
70
71     <plugins>
72       <plugin>
73         <groupId>org.apache.maven.plugins</groupId>
74         <artifactId>maven-assembly-plugin</artifactId>
75         <executions>
76           <execution>
77             <id>generate-complete-tar</id>
78             <phase>package</phase>
79             <goals>
80               <goal>single</goal>
81             </goals>
82             <configuration>
83               <descriptors>
84                 <descriptor>src/main/assembly.xml</descriptor>
85               </descriptors>
86               <finalName>${project.artifactId}-${project.version}</finalName>
87             </configuration>
88           </execution>
89         </executions>
90       </plugin>
91     </plugins>
92
93   </build>
94 </project>