Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright 2017-present Open Networking Foundation |
| 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" |
| 18 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 19 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 20 | <modelVersion>4.0.0</modelVersion> |
| 21 | |
| 22 | <parent> |
| 23 | <groupId>org.onosproject</groupId> |
| 24 | <artifactId>onos-models</artifactId> |
ONOS Jenkins User | 4e5f2d6 | 2018-08-13 23:16:37 +0000 | [diff] [blame] | 25 | <version>1.14.0-SNAPSHOT</version> |
Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 26 | <relativePath>../pom.xml</relativePath> |
| 27 | </parent> |
| 28 | |
| 29 | <artifactId>onos-models-openconfig</artifactId> |
| 30 | <packaging>bundle</packaging> |
| 31 | <description>OpenConfig YANG models</description> |
| 32 | |
| 33 | <properties> |
| 34 | <onos.app.name>org.onosproject.models.openconfig</onos.app.name> |
| 35 | </properties> |
| 36 | |
| 37 | <dependencies> |
| 38 | |
| 39 | <dependency> |
| 40 | <groupId>org.onosproject</groupId> |
| 41 | <artifactId>onos-yang-model</artifactId> |
| 42 | </dependency> |
| 43 | |
| 44 | <dependency> |
| 45 | <groupId>org.onosproject</groupId> |
| 46 | <artifactId>onos-apps-yang</artifactId> |
| 47 | <version>${project.version}</version> |
| 48 | </dependency> |
| 49 | |
Yuta HIGUCHI | a818eb5 | 2018-05-14 17:57:28 -0700 | [diff] [blame] | 50 | <dependency> |
| 51 | <groupId>org.onosproject</groupId> |
| 52 | <artifactId>onos-models-ietf</artifactId> |
| 53 | <version>${project.version}</version> |
| 54 | </dependency> |
| 55 | |
Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 56 | </dependencies> |
| 57 | |
| 58 | <build> |
| 59 | <plugins> |
| 60 | |
| 61 | <plugin> |
| 62 | <groupId>org.apache.felix</groupId> |
| 63 | <artifactId>maven-bundle-plugin</artifactId> |
| 64 | <extensions>true</extensions> |
| 65 | <configuration> |
| 66 | <instructions combine.children="append"> |
| 67 | <Include-Resource>yang/resources/YangMetaData.ser=target/classes/yang/resources/YangMetaData.ser</Include-Resource> |
| 68 | </instructions> |
| 69 | </configuration> |
| 70 | </plugin> |
| 71 | |
| 72 | <plugin> |
| 73 | <groupId>org.onosproject</groupId> |
| 74 | <artifactId>onos-yang-compiler-maven-plugin</artifactId> |
| 75 | </plugin> |
| 76 | |
| 77 | <plugin> |
| 78 | <groupId>org.onosproject</groupId> |
| 79 | <artifactId>onos-maven-plugin</artifactId> |
| 80 | </plugin> |
| 81 | |
| 82 | <plugin> |
| 83 | <groupId>org.codehaus.mojo</groupId> |
| 84 | <artifactId>build-helper-maven-plugin</artifactId> |
| 85 | <version>3.0.0</version> |
| 86 | <executions> |
| 87 | <execution> |
| 88 | <id>add-source</id> |
| 89 | <phase>generate-sources</phase> |
| 90 | <goals> |
| 91 | <goal>add-source</goal> |
| 92 | </goals> |
| 93 | <configuration> |
| 94 | <sources> |
| 95 | <source>${project.build.directory}/generated-sources</source> |
| 96 | </sources> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | </executions> |
| 100 | </plugin> |
| 101 | |
| 102 | <plugin> |
| 103 | <groupId>org.apache.maven.plugins</groupId> |
| 104 | <artifactId>maven-clean-plugin</artifactId> |
| 105 | <version>3.0.0</version> |
| 106 | <executions> |
| 107 | <execution> |
| 108 | <id>onos-yang-plugin-workaround</id> |
| 109 | <!-- yang plugin cannot handle non-clean compilation --> |
| 110 | <phase>initialize</phase> |
| 111 | <goals> |
| 112 | <goal>clean</goal> |
| 113 | </goals> |
| 114 | <configuration> |
| 115 | <excludeDefaultDirectories>true</excludeDefaultDirectories> |
| 116 | <filesets> |
| 117 | <fileset> |
| 118 | <directory>target/generated-sources</directory> |
| 119 | </fileset> |
| 120 | </filesets> |
| 121 | </configuration> |
| 122 | </execution> |
| 123 | </executions> |
| 124 | </plugin> |
| 125 | |
Yuta HIGUCHI | 488a94c | 2018-01-26 17:24:09 -0800 | [diff] [blame] | 126 | <!-- FIXME: YANG tool generates problematic code --> |
| 127 | <plugin> |
| 128 | <groupId>org.apache.maven.plugins</groupId> |
| 129 | <artifactId>maven-compiler-plugin</artifactId> |
| 130 | <configuration> |
| 131 | <compilerArgs> |
| 132 | <arg>-XepDisableAllChecks</arg> |
| 133 | <arg>-Xep:BetaApi:OFF</arg> |
| 134 | </compilerArgs> |
| 135 | </configuration> |
| 136 | </plugin> |
Thomas Vachuska | 8ca75a2 | 2017-08-24 16:12:59 -0700 | [diff] [blame] | 137 | |
| 138 | </plugins> |
| 139 | |
| 140 | <pluginManagement> |
| 141 | <plugins> |
| 142 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 143 | <plugin> |
| 144 | <groupId>org.eclipse.m2e</groupId> |
| 145 | <artifactId>lifecycle-mapping</artifactId> |
| 146 | <version>1.0.0</version> |
| 147 | <configuration> |
| 148 | <lifecycleMappingMetadata> |
| 149 | <pluginExecutions> |
| 150 | <pluginExecution> |
| 151 | <pluginExecutionFilter> |
| 152 | <groupId> |
| 153 | org.apache.maven.plugins |
| 154 | </groupId> |
| 155 | <artifactId> |
| 156 | maven-clean-plugin |
| 157 | </artifactId> |
| 158 | <versionRange> |
| 159 | [3.0.0,) |
| 160 | </versionRange> |
| 161 | <goals> |
| 162 | <goal>clean</goal> |
| 163 | </goals> |
| 164 | </pluginExecutionFilter> |
| 165 | <action> |
| 166 | <ignore></ignore> |
| 167 | </action> |
| 168 | </pluginExecution> |
| 169 | </pluginExecutions> |
| 170 | </lifecycleMappingMetadata> |
| 171 | </configuration> |
| 172 | </plugin> |
| 173 | </plugins> |
| 174 | </pluginManagement> |
| 175 | </build> |
| 176 | |
| 177 | </project> |