Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 1 | <?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 Milkey | 287b4ae | 2017-01-19 15:21:17 -0800 | [diff] [blame] | 23 | <version>1.9.0-SNAPSHOT</version> |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 24 | <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 Rahimi | 01f6ae0 | 2017-02-01 13:57:00 -0500 | [diff] [blame] | 36 | <version>1.11</version> |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 37 | </dependency> |
| 38 | <dependency> |
| 39 | <groupId>org.onosproject</groupId> |
| 40 | <artifactId>onos-yang-datamodel</artifactId> |
Hesam Rahimi | 01f6ae0 | 2017-02-01 13:57:00 -0500 | [diff] [blame] | 41 | <version>1.11</version> |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 42 | </dependency> |
| 43 | </dependencies> |
| 44 | |
| 45 | <build> |
| 46 | <plugins> |
| 47 | <plugin> |
| 48 | <groupId>org.onosproject</groupId> |
| 49 | <artifactId>onos-yang-maven-plugin</artifactId> |
Hesam Rahimi | 01f6ae0 | 2017-02-01 13:57:00 -0500 | [diff] [blame] | 50 | <version>1.11</version> |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 51 | <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> |