1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright © 2016 Orange and others. All rights reserved.
4 This program and the accompanying materials are made available under the
5 terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
8 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10 <modelVersion>4.0.0</modelVersion>
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>karaf4-parent</artifactId>
15 <version>3.1.0</version>
19 <groupId>org.opendaylight.transportpce</groupId>
20 <artifactId>transportpce-karaf</artifactId>
21 <version>0.2.0-SNAPSHOT</version>
22 <name>${project.artifactId}</name>
23 <packaging>pom</packaging>
26 <karaf.localFeature>odl-transportpce-ui</karaf.localFeature>
27 <device.yang.jar.extract.directory>
28 ${project.build.outputDirectory}/../yang-models/schema
29 </device.yang.jar.extract.directory>
30 <device.yang.final.directory>
31 ${project.build.outputDirectory}/../assembly/cache/schema
32 </device.yang.final.directory>
35 <dependencyManagement>
38 <groupId>${project.groupId}</groupId>
39 <artifactId>transportpce-artifacts</artifactId>
40 <version>${project.version}</version>
45 <groupId>${project.groupId}.ordmodels</groupId>
46 <artifactId>transportpce-ordmodels-device</artifactId>
47 <version>${project.version}</version>
52 </dependencyManagement>
56 <!-- scope is compile so all features (there is only one) are installed into startup.properties
57 and the feature repo itself is not installed -->
58 <groupId>org.apache.karaf.features</groupId>
59 <artifactId>framework</artifactId>
64 <groupId>${project.groupId}</groupId>
65 <artifactId>features-transportpce</artifactId>
66 <version>${project.version}</version>
67 <classifier>features</classifier>
69 <scope>runtime</scope>
75 <!-- DO NOT deploy the karaf artifact -->
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-deploy-plugin</artifactId>
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-install-plugin</artifactId>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-dependency-plugin</artifactId>
96 <phase>generate-resources</phase>
103 <groupId>${project.groupId}.ordmodels</groupId>
104 <artifactId>transportpce-ordmodels-common</artifactId>
107 <groupId>${project.groupId}.ordmodels</groupId>
108 <artifactId>transportpce-ordmodels-device</artifactId>
111 <outputDirectory>${device.yang.jar.extract.directory}</outputDirectory>
112 <includes>**/*.yang</includes>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-antrun-plugin</artifactId>
122 <id>copy-yang-files</id>
123 <phase>package</phase>
129 <copy todir="${device.yang.final.directory}" flatten="true">
130 <fileset dir="${device.yang.jar.extract.directory}/META-INF/yang">
131 <include name="**/*.yang" />