Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 3 | ~ Copyright 2016 Open Networking Foundation |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 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> |
ONOS Jenkins User | 3793e11 | 2018-05-02 23:50:30 +0000 | [diff] [blame] | 23 | <version>1.13.2-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> |
Yuta HIGUCHI | 488a94c | 2018-01-26 17:24:09 -0800 | [diff] [blame] | 47 | |
| 48 | <!-- FIXME: YANG tool generates problematic code --> |
| 49 | <plugin> |
| 50 | <groupId>org.apache.maven.plugins</groupId> |
| 51 | <artifactId>maven-compiler-plugin</artifactId> |
| 52 | <configuration> |
| 53 | <compilerArgs> |
| 54 | <arg>-XepDisableAllChecks</arg> |
| 55 | <arg>-Xep:BetaApi:OFF</arg> |
| 56 | </compilerArgs> |
| 57 | </configuration> |
| 58 | <executions> |
| 59 | <execution> |
| 60 | <phase>compile</phase> |
| 61 | <goals> |
| 62 | <goal>compile</goal> |
| 63 | </goals> |
| 64 | <configuration> |
| 65 | <compilerArgs> |
| 66 | <arg>-XepDisableAllChecks</arg> |
| 67 | <arg>-Xep:BetaApi:OFF</arg> |
| 68 | </compilerArgs> |
| 69 | </configuration> |
| 70 | </execution> |
| 71 | </executions> |
| 72 | </plugin> |
| 73 | |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 74 | <plugin> |
| 75 | <groupId>org.onosproject</groupId> |
| 76 | <artifactId>onos-yang-maven-plugin</artifactId> |
Hesam Rahimi | 01f6ae0 | 2017-02-01 13:57:00 -0500 | [diff] [blame] | 77 | <version>1.11</version> |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 78 | <executions> |
| 79 | <execution> |
| 80 | <goals> |
| 81 | <goal>yang2java</goal> |
| 82 | </goals> |
| 83 | </execution> |
| 84 | </executions> |
| 85 | </plugin> |
Yuta HIGUCHI | e6d3adf | 2017-05-22 16:31:58 -0700 | [diff] [blame] | 86 | |
| 87 | <plugin> |
| 88 | <groupId>org.apache.maven.plugins</groupId> |
| 89 | <artifactId>maven-clean-plugin</artifactId> |
| 90 | <version>3.0.0</version> |
| 91 | <executions> |
| 92 | <execution> |
| 93 | <id>onos-yang-plugin-workaround</id> |
| 94 | <!-- yang plugin cannot handle non-clean compilation --> |
| 95 | <phase>initialize</phase> |
| 96 | <goals> |
| 97 | <goal>clean</goal> |
| 98 | </goals> |
| 99 | <configuration> |
| 100 | <excludeDefaultDirectories>true</excludeDefaultDirectories> |
| 101 | <filesets> |
| 102 | <fileset> |
| 103 | <directory>target/generated-sources</directory> |
| 104 | </fileset> |
| 105 | </filesets> |
| 106 | </configuration> |
| 107 | </execution> |
| 108 | </executions> |
| 109 | </plugin> |
| 110 | |
Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 111 | <plugin> |
| 112 | <groupId>com.google.code.maven-replacer-plugin</groupId> |
| 113 | <artifactId>replacer</artifactId> |
| 114 | <version>1.5.3</version> |
| 115 | <executions> |
| 116 | <execution> |
| 117 | <phase>prepare-package</phase> |
| 118 | <goals> |
| 119 | <goal>replace</goal> |
| 120 | </goals> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | <configuration> |
| 124 | <file>${pom.basedir}/features.xml</file> |
| 125 | <outputFile>${pom.basedir}/target/features.xml</outputFile> |
| 126 | <replacements> |
| 127 | <replacement> |
| 128 | <token>@ONOS-VERSION</token> |
| 129 | <value>${project.version}</value> |
| 130 | </replacement> |
| 131 | <replacement> |
| 132 | <token>@PROJECT-GROUPID</token> |
| 133 | <value>${project.groupId}</value> |
| 134 | </replacement> |
| 135 | <replacement> |
| 136 | <token>@PROJECT-ARTIFACTID</token> |
| 137 | <value>${project.artifactId}</value> |
| 138 | </replacement> |
| 139 | <replacement> |
| 140 | <token>@PROJECT-DESCRIPTION</token> |
| 141 | <value>${project.description}</value> |
| 142 | </replacement> |
| 143 | <replacement> |
| 144 | <token>@FEATURE-VERSION</token> |
| 145 | <value>${project.version}</value> |
| 146 | </replacement> |
| 147 | </replacements> |
| 148 | </configuration> |
| 149 | </plugin> |
| 150 | <plugin> |
| 151 | <groupId>org.codehaus.mojo</groupId> |
| 152 | <artifactId>build-helper-maven-plugin</artifactId> |
| 153 | <version>1.9</version> |
| 154 | <executions> |
| 155 | <execution> |
| 156 | <id>attach-artifacts</id> |
| 157 | <phase>package</phase> |
| 158 | <goals> |
| 159 | <goal>attach-artifact</goal> |
| 160 | </goals> |
| 161 | <configuration> |
| 162 | <artifacts> |
| 163 | <artifact> |
| 164 | <file>target/features.xml</file> |
| 165 | <type>xml</type> |
| 166 | <classifier>features</classifier> |
| 167 | </artifact> |
| 168 | </artifacts> |
| 169 | </configuration> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | </plugin> |
| 173 | </plugins> |
| 174 | </build> |
| 175 | |
| 176 | </project> |