Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 72b2df2 | 2017-08-03 18:48:28 -0700 | [diff] [blame] | 2 | ~ Copyright 2017-present Open Networking Foundation |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
Gaurav Agrawal | 4efc8cc | 2017-02-09 18:41:31 +0530 | [diff] [blame] | 16 | |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 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> |
Gaurav Agrawal | a599a8f | 2017-01-10 20:45:27 +0530 | [diff] [blame] | 24 | <artifactId>onos-yang-tools</artifactId> |
Ray Milkey | 0fc1e4d | 2017-10-17 10:14:25 -0700 | [diff] [blame] | 25 | <version>2.3-SNAPSHOT</version> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <artifactId>onos-yang-runtime</artifactId> |
Bharat saraswal | a542a36 | 2017-03-02 21:43:59 +0530 | [diff] [blame] | 29 | <packaging>bundle</packaging> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 30 | |
| 31 | <dependencies> |
| 32 | <dependency> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 33 | <groupId>commons-io</groupId> |
| 34 | <artifactId>commons-io</artifactId> |
| 35 | <version>2.4</version> |
| 36 | </dependency> |
| 37 | <dependency> |
| 38 | <groupId>org.slf4j</groupId> |
| 39 | <artifactId>slf4j-api</artifactId> |
| 40 | <version>1.7.21</version> |
| 41 | </dependency> |
Gaurav Agrawal | 4efc8cc | 2017-02-09 18:41:31 +0530 | [diff] [blame] | 42 | <dependency> |
| 43 | <groupId>org.onosproject</groupId> |
| 44 | <artifactId>onos-yang-model</artifactId> |
Ray Milkey | 0fc1e4d | 2017-10-17 10:14:25 -0700 | [diff] [blame] | 45 | <version>2.3-SNAPSHOT</version> |
Gaurav Agrawal | 4efc8cc | 2017-02-09 18:41:31 +0530 | [diff] [blame] | 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.onosproject</groupId> |
Bharat saraswal | 7d9244e | 2017-03-03 11:38:25 +0530 | [diff] [blame] | 49 | <artifactId>onos-yang-compiler-tool</artifactId> |
Ray Milkey | 0fc1e4d | 2017-10-17 10:14:25 -0700 | [diff] [blame] | 50 | <version>2.3-SNAPSHOT</version> |
Gaurav Agrawal | 4efc8cc | 2017-02-09 18:41:31 +0530 | [diff] [blame] | 51 | </dependency> |
| 52 | <dependency> |
Bharat saraswal | 7d9244e | 2017-03-03 11:38:25 +0530 | [diff] [blame] | 53 | <groupId>org.osgi</groupId> |
| 54 | <artifactId>org.osgi.core</artifactId> |
Bharat saraswal | b3e2522 | 2017-03-06 17:54:09 +0530 | [diff] [blame] | 55 | <version>5.0.0</version> |
Ray Milkey | a320392 | 2017-03-03 04:28:22 +0000 | [diff] [blame] | 56 | </dependency> |
| 57 | <dependency> |
Gaurav Agrawal | 4efc8cc | 2017-02-09 18:41:31 +0530 | [diff] [blame] | 58 | <groupId>junit</groupId> |
| 59 | <artifactId>junit</artifactId> |
| 60 | <version>RELEASE</version> |
| 61 | </dependency> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 62 | </dependencies> |
| 63 | |
| 64 | <build> |
| 65 | <plugins> |
| 66 | <plugin> |
Gaurav Agrawal | dc38b80 | 2017-02-13 14:52:14 +0530 | [diff] [blame] | 67 | <groupId>org.onosproject</groupId> |
| 68 | <artifactId>onos-yang-compiler-maven-plugin</artifactId> |
| 69 | <version>${project.version}</version> |
| 70 | <configuration> |
| 71 | <yangFilesDir>src/test/resources</yangFilesDir> |
| 72 | </configuration> |
| 73 | <executions> |
| 74 | <execution> |
| 75 | <id>default</id> |
| 76 | <goals> |
| 77 | <goal>yang2java</goal> |
| 78 | </goals> |
| 79 | </execution> |
| 80 | </executions> |
| 81 | </plugin> |
| 82 | <plugin> |
Bharat saraswal | a542a36 | 2017-03-02 21:43:59 +0530 | [diff] [blame] | 83 | <groupId>org.apache.felix</groupId> |
| 84 | <artifactId>maven-bundle-plugin</artifactId> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 85 | <configuration> |
Bharat saraswal | a542a36 | 2017-03-02 21:43:59 +0530 | [diff] [blame] | 86 | <instructions> |
| 87 | <Export-Package> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 88 | org.onosproject.yang.runtime.*, |
Bharat saraswal | b3e2522 | 2017-03-06 17:54:09 +0530 | [diff] [blame] | 89 | org.onosproject.yang.compiler.datamodel.*, |
| 90 | org.onosproject.yang.compiler.translator.*, |
| 91 | org.onosproject.yang.compiler.utils.*, |
| 92 | org.onosproject.yang.compiler.linker.*, |
| 93 | org.onosproject.yang.compiler.tool.*, |
| 94 | org.onosproject.yang.compiler.parser.*, |
| 95 | org.antlr.v4.*, |
Bharat saraswal | a542a36 | 2017-03-02 21:43:59 +0530 | [diff] [blame] | 96 | </Export-Package> |
Bharat saraswal | a542a36 | 2017-03-02 21:43:59 +0530 | [diff] [blame] | 97 | </instructions> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 98 | </configuration> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 99 | </plugin> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 100 | <!-- |
| 101 | Cleans up generated test artifacts which get included as a source |
| 102 | directory, but which we don't want as part of the bundle. |
| 103 | --> |
| 104 | <plugin> |
| 105 | <groupId>org.apache.maven.plugins</groupId> |
| 106 | <artifactId>maven-antrun-plugin</artifactId> |
| 107 | <version>1.8</version> |
| 108 | <executions> |
| 109 | <execution> |
| 110 | <phase>prepare-package</phase> |
| 111 | <goals> |
| 112 | <goal>run</goal> |
| 113 | </goals> |
| 114 | <configuration> |
| 115 | <target> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 116 | <delete includeemptydirs="true"> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 117 | <fileset |
| 118 | dir="${project.build.outputDirectory}/org/onosproject/yang/gen" |
| 119 | includes="**/*"/> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 120 | </delete> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 121 | <delete includeemptydirs="true"> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 122 | <fileset |
| 123 | dir="${project.build.outputDirectory}/yang" |
| 124 | includes="**/*"/> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 125 | </delete> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 126 | <delete includeemptydirs="true" |
| 127 | failonerror="false"> |
| 128 | <fileset |
| 129 | dir="${project.build.outputDirectory}/Temp" |
| 130 | includes="**/*"/> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 131 | </delete> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 132 | </target> |
| 133 | </configuration> |
| 134 | </execution> |
| 135 | </executions> |
| 136 | </plugin> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 137 | </plugins> |
| 138 | </build> |
| 139 | </project> |