blob: 68ceadba8ea0db083f009d3229b7967bc12d689c [file] [log] [blame]
Yixiao Chen39828a62016-09-14 14:37:06 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2016 Open Networking Laboratory
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<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">
18 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onosproject</groupId>
22 <artifactId>onos-app-tenbi</artifactId>
Ray Milkey54a78512017-02-13 11:13:52 -080023 <version>1.10.0-SNAPSHOT</version>
Yixiao Chen39828a62016-09-14 14:37:06 -040024 <relativePath>../pom.xml</relativePath>
25 </parent>
26
27 <artifactId>onos-app-tenbi-yangmodel</artifactId>
28 <packaging>bundle</packaging>
29
30 <description>IETF TE YANG models</description>
31
32 <dependencies>
33 <dependency>
34 <groupId>org.onosproject</groupId>
35 <artifactId>onos-yang-maven-plugin</artifactId>
Hesam Rahimi01f6ae02017-02-01 13:57:00 -050036 <version>1.11</version>
Yixiao Chen39828a62016-09-14 14:37:06 -040037 </dependency>
38 <dependency>
39 <groupId>org.onosproject</groupId>
40 <artifactId>onos-yang-datamodel</artifactId>
Hesam Rahimi01f6ae02017-02-01 13:57:00 -050041 <version>1.11</version>
Yixiao Chen39828a62016-09-14 14:37:06 -040042 </dependency>
43 </dependencies>
44
45 <build>
46 <plugins>
47 <plugin>
48 <groupId>org.onosproject</groupId>
49 <artifactId>onos-yang-maven-plugin</artifactId>
Hesam Rahimi01f6ae02017-02-01 13:57:00 -050050 <version>1.11</version>
Yixiao Chen39828a62016-09-14 14:37:06 -040051 <executions>
52 <execution>
53 <goals>
54 <goal>yang2java</goal>
55 </goals>
56 </execution>
57 </executions>
58 </plugin>
59 <plugin>
60 <groupId>com.google.code.maven-replacer-plugin</groupId>
61 <artifactId>replacer</artifactId>
62 <version>1.5.3</version>
63 <executions>
64 <execution>
65 <phase>prepare-package</phase>
66 <goals>
67 <goal>replace</goal>
68 </goals>
69 </execution>
70 </executions>
71 <configuration>
72 <file>${pom.basedir}/features.xml</file>
73 <outputFile>${pom.basedir}/target/features.xml</outputFile>
74 <replacements>
75 <replacement>
76 <token>@ONOS-VERSION</token>
77 <value>${project.version}</value>
78 </replacement>
79 <replacement>
80 <token>@PROJECT-GROUPID</token>
81 <value>${project.groupId}</value>
82 </replacement>
83 <replacement>
84 <token>@PROJECT-ARTIFACTID</token>
85 <value>${project.artifactId}</value>
86 </replacement>
87 <replacement>
88 <token>@PROJECT-DESCRIPTION</token>
89 <value>${project.description}</value>
90 </replacement>
91 <replacement>
92 <token>@FEATURE-VERSION</token>
93 <value>${project.version}</value>
94 </replacement>
95 </replacements>
96 </configuration>
97 </plugin>
98 <plugin>
99 <groupId>org.codehaus.mojo</groupId>
100 <artifactId>build-helper-maven-plugin</artifactId>
101 <version>1.9</version>
102 <executions>
103 <execution>
104 <id>attach-artifacts</id>
105 <phase>package</phase>
106 <goals>
107 <goal>attach-artifact</goal>
108 </goals>
109 <configuration>
110 <artifacts>
111 <artifact>
112 <file>target/features.xml</file>
113 <type>xml</type>
114 <classifier>features</classifier>
115 </artifact>
116 </artifacts>
117 </configuration>
118 </execution>
119 </executions>
120 </plugin>
121 </plugins>
122 </build>
123
124</project>