blob: 229a76339fcb895bb1a7614003c645af24d0dd1e [file] [log] [blame]
Yixiao Chen39828a62016-09-14 14:37:06 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2016 Open Networking Foundation
Yixiao Chen39828a62016-09-14 14:37:06 -04004 ~
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 Milkeyd1d1fe22017-09-15 11:52:30 -070023 <version>1.11.2-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>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -070059
60 <plugin>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-clean-plugin</artifactId>
63 <version>3.0.0</version>
64 <executions>
65 <execution>
66 <id>onos-yang-plugin-workaround</id>
67 <!-- yang plugin cannot handle non-clean compilation -->
68 <phase>initialize</phase>
69 <goals>
70 <goal>clean</goal>
71 </goals>
72 <configuration>
73 <excludeDefaultDirectories>true</excludeDefaultDirectories>
74 <filesets>
75 <fileset>
76 <directory>target/generated-sources</directory>
77 </fileset>
78 </filesets>
79 </configuration>
80 </execution>
81 </executions>
82 </plugin>
83
Yixiao Chen39828a62016-09-14 14:37:06 -040084 <plugin>
85 <groupId>com.google.code.maven-replacer-plugin</groupId>
86 <artifactId>replacer</artifactId>
87 <version>1.5.3</version>
88 <executions>
89 <execution>
90 <phase>prepare-package</phase>
91 <goals>
92 <goal>replace</goal>
93 </goals>
94 </execution>
95 </executions>
96 <configuration>
97 <file>${pom.basedir}/features.xml</file>
98 <outputFile>${pom.basedir}/target/features.xml</outputFile>
99 <replacements>
100 <replacement>
101 <token>@ONOS-VERSION</token>
102 <value>${project.version}</value>
103 </replacement>
104 <replacement>
105 <token>@PROJECT-GROUPID</token>
106 <value>${project.groupId}</value>
107 </replacement>
108 <replacement>
109 <token>@PROJECT-ARTIFACTID</token>
110 <value>${project.artifactId}</value>
111 </replacement>
112 <replacement>
113 <token>@PROJECT-DESCRIPTION</token>
114 <value>${project.description}</value>
115 </replacement>
116 <replacement>
117 <token>@FEATURE-VERSION</token>
118 <value>${project.version}</value>
119 </replacement>
120 </replacements>
121 </configuration>
122 </plugin>
123 <plugin>
124 <groupId>org.codehaus.mojo</groupId>
125 <artifactId>build-helper-maven-plugin</artifactId>
126 <version>1.9</version>
127 <executions>
128 <execution>
129 <id>attach-artifacts</id>
130 <phase>package</phase>
131 <goals>
132 <goal>attach-artifact</goal>
133 </goals>
134 <configuration>
135 <artifacts>
136 <artifact>
137 <file>target/features.xml</file>
138 <type>xml</type>
139 <classifier>features</classifier>
140 </artifact>
141 </artifacts>
142 </configuration>
143 </execution>
144 </executions>
145 </plugin>
146 </plugins>
147 </build>
148
149</project>