| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Copyright 2016 Open Networking Foundation |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-app-tenbi</artifactId> |
| <version>1.11.2</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>onos-app-tenbi-yangmodel</artifactId> |
| <packaging>bundle</packaging> |
| |
| <description>IETF TE YANG models</description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-yang-maven-plugin</artifactId> |
| <version>1.11</version> |
| </dependency> |
| <dependency> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-yang-datamodel</artifactId> |
| <version>1.11</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-yang-maven-plugin</artifactId> |
| <version>1.11</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>yang2java</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>3.0.0</version> |
| <executions> |
| <execution> |
| <id>onos-yang-plugin-workaround</id> |
| <!-- yang plugin cannot handle non-clean compilation --> |
| <phase>initialize</phase> |
| <goals> |
| <goal>clean</goal> |
| </goals> |
| <configuration> |
| <excludeDefaultDirectories>true</excludeDefaultDirectories> |
| <filesets> |
| <fileset> |
| <directory>target/generated-sources</directory> |
| </fileset> |
| </filesets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>com.google.code.maven-replacer-plugin</groupId> |
| <artifactId>replacer</artifactId> |
| <version>1.5.3</version> |
| <executions> |
| <execution> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>replace</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <file>${pom.basedir}/features.xml</file> |
| <outputFile>${pom.basedir}/target/features.xml</outputFile> |
| <replacements> |
| <replacement> |
| <token>@ONOS-VERSION</token> |
| <value>${project.version}</value> |
| </replacement> |
| <replacement> |
| <token>@PROJECT-GROUPID</token> |
| <value>${project.groupId}</value> |
| </replacement> |
| <replacement> |
| <token>@PROJECT-ARTIFACTID</token> |
| <value>${project.artifactId}</value> |
| </replacement> |
| <replacement> |
| <token>@PROJECT-DESCRIPTION</token> |
| <value>${project.description}</value> |
| </replacement> |
| <replacement> |
| <token>@FEATURE-VERSION</token> |
| <value>${project.version}</value> |
| </replacement> |
| </replacements> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.9</version> |
| <executions> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>target/features.xml</file> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |