1 <?xml version="1.0" encoding="UTF-8"?>
4 Modifications copyright © 2019 AT&T Intellectual Property
7 <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">
10 <groupId>org.onap.demo.vnf</groupId>
11 <artifactId>hc-onap</artifactId>
12 <version>1.4.1-SNAPSHOT</version>
13 <relativePath>../../parent-pom/pom.xml</relativePath>
16 <modelVersion>4.0.0</modelVersion>
17 <artifactId>sample-distribution</artifactId>
20 <exec.parameters>-Xms256m -Xmx256m</exec.parameters>
21 <exec.parameters.minimal>
22 -client -Xms20m -Xmx32m -XX:MetaspaceSize=5m -XX:MaxMetaspaceSize=32m -XX:MaxMetaspaceExpansion=1m -Xss512k -XX:+UseSerialGC -Djava.compiler=NONE -Xverify:none -noverify
23 </exec.parameters.minimal>
24 <random.seed.file>/dev/./urandom</random.seed.file>
25 <main.class>io.fd.honeycomb.infra.distro.Main</main.class>
26 <interfaces.mapping.version>1.18.10</interfaces.mapping.version>
27 <honeycomb.min.distro.version>1.18.10</honeycomb.min.distro.version>
29 Defines list of specific modules provided by the distribution
30 (adds them to base modules like NetconfModule and RestconfModule).
32 Module configuration is placed in 'modules' subdir of the target distro folder.
33 Modules can be disabled by commenting them out in the pom.xml
34 or modules configuration file.
36 <distribution.modules>
37 org.onap.vnf.vfw.Module
38 </distribution.modules>
45 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-jar-plugin</artifactId>
47 <version>2.6</version>
51 <mainClass>${main.class}</mainClass>
52 <addClasspath>true</addClasspath>
53 <classpathPrefix>lib/</classpathPrefix>
54 <useUniqueVersions>false</useUniqueVersions>
55 <classpathMavenRepositoryLayout>true</classpathMavenRepositoryLayout>
58 <Class-Path>config/ cert/ modules/ yang-mapping/</Class-Path>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-dependency-plugin</artifactId>
66 <version>2.10</version>
68 <!-- Dependencies are copied by parent project -->
70 <id>unpack-configuration</id>
71 <phase>prepare-package</phase>
73 <goal>unpack-dependencies</goal>
76 <includes>**/honeycomb-minimal-resources/</includes>
77 <outputDirectory>${project.build.outputDirectory}/</outputDirectory>
82 <!-- Generate shell script -->
83 <!-- Extract modules started by distribution -->
85 <groupId>org.codehaus.gmaven</groupId>
86 <artifactId>groovy-maven-plugin</artifactId>
89 <id>distribution-module-assembly</id>
90 <!--phase changed from package to earlier phase to generate module descriptor before distribution jar is created,
91 to include descriptor in the jar,to be accessible to children distributions-->
92 <phase>prepare-package</phase>
98 io.fd.honeycomb.common.scripts.ModulesListGenerator.generate(project, properties, log)
103 <id>generate-module-to-yang-index</id>
104 <phase>prepare-package</phase>
110 io.fd.honeycomb.common.scripts.ModuleYangIndexGenerator.pairDistributionModulesWithYangModules(project, log)
117 <groupId>io.fd.honeycomb.common</groupId>
118 <artifactId>common-scripts</artifactId>
119 <version>1.18.01</version>
123 <!-- Build archives -->
125 <artifactId>maven-assembly-plugin</artifactId>
126 <version>2.5.3</version>
129 <groupId>io.fd.honeycomb.common</groupId>
130 <artifactId>minimal-assembly-descriptor</artifactId>
131 <version>1.18.01</version>
136 <id>create-archive</id>
137 <phase>package</phase>
143 <descriptorRef>honeycomb-minimal</descriptorRef>
150 <artifactId>maven-surefire-plugin</artifactId>
152 <!--http://stackoverflow.com/questions/18107375/getting-skipping-jacoco-execution-due-to-missing-execution-data-file-upon-exec-->
154 ${argLine} -Djava.security.egd=file:${random.seed.file}
163 <artifactId>maven-compiler-plugin</artifactId>
166 <groupId>org.codehaus.gmaven</groupId>
167 <artifactId>groovy-maven-plugin</artifactId>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-jar-plugin</artifactId>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-dependency-plugin</artifactId>
178 <artifactId>maven-assembly-plugin</artifactId>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-deploy-plugin</artifactId>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-install-plugin</artifactId>
198 <!-- Dependency on sample plugin -->
200 <groupId>org.onap.vnf.vfw</groupId>
201 <artifactId>stream-count-impl</artifactId>
202 <version>${interfaces.mapping.version}</version>
204 <!-- Dependency on distribution base -->
206 <groupId>io.fd.honeycomb</groupId>
207 <artifactId>minimal-distribution</artifactId>
208 <version>${honeycomb.min.distro.version}</version>