Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 72b2df2 | 2017-08-03 18:48:28 -0700 | [diff] [blame] | 2 | ~ Copyright 2017-present Open Networking Foundation |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [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 | --> |
| 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-yang-serializers</artifactId> |
Ray Milkey | 1710ff7 | 2017-09-01 09:38:58 -0700 | [diff] [blame^] | 25 | <version>2.3-SNAPSHOT</version> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <artifactId>onos-yang-serializers-xml</artifactId> |
Bharat saraswal | a542a36 | 2017-03-02 21:43:59 +0530 | [diff] [blame] | 29 | <packaging>bundle</packaging> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 30 | |
| 31 | <dependencies> |
| 32 | <dependency> |
| 33 | <groupId>org.slf4j</groupId> |
| 34 | <artifactId>slf4j-api</artifactId> |
| 35 | <version>1.7.21</version> |
| 36 | </dependency> |
| 37 | <dependency> |
| 38 | <groupId>org.onosproject</groupId> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 39 | <artifactId>onos-yang-serializers-utils</artifactId> |
Ray Milkey | 1710ff7 | 2017-09-01 09:38:58 -0700 | [diff] [blame^] | 40 | <version>2.3-SNAPSHOT</version> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 41 | </dependency> |
| 42 | <dependency> |
| 43 | <groupId>junit</groupId> |
| 44 | <artifactId>junit</artifactId> |
| 45 | <version>RELEASE</version> |
| 46 | </dependency> |
| 47 | </dependencies> |
| 48 | |
| 49 | <build> |
| 50 | <plugins> |
| 51 | <plugin> |
| 52 | <groupId>org.onosproject</groupId> |
| 53 | <artifactId>onos-yang-compiler-maven-plugin</artifactId> |
| 54 | <version>${project.version}</version> |
| 55 | <configuration> |
| 56 | <yangFilesDir>src/test/resources</yangFilesDir> |
sonugupta-huawei | 0d3443e | 2017-07-10 11:13:45 +0530 | [diff] [blame] | 57 | <modelId>xml</modelId> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 58 | </configuration> |
| 59 | <executions> |
| 60 | <execution> |
| 61 | <id>default</id> |
| 62 | <goals> |
| 63 | <goal>yang2java</goal> |
| 64 | </goals> |
| 65 | </execution> |
| 66 | </executions> |
| 67 | </plugin> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 68 | |
| 69 | <!-- |
| 70 | Cleans up generated test artifacts which get included as a source |
| 71 | directory, but which we don't want as part of the bundle. |
| 72 | --> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 73 | <plugin> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 74 | <groupId>org.apache.maven.plugins</groupId> |
| 75 | <artifactId>maven-antrun-plugin</artifactId> |
| 76 | <version>1.8</version> |
| 77 | <executions> |
| 78 | <execution> |
| 79 | <phase>prepare-package</phase> |
| 80 | <goals> |
| 81 | <goal>run</goal> |
| 82 | </goals> |
| 83 | <configuration> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 84 | <target> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 85 | <delete includeemptydirs="true"> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 86 | <fileset |
| 87 | dir="${project.build.outputDirectory}/org/onosproject/yang/gen" |
| 88 | includes="**/*"/> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 89 | </delete> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 90 | <delete includeemptydirs="true"> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 91 | <fileset |
| 92 | dir="${project.build.outputDirectory}/yang" |
| 93 | includes="**/*"/> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 94 | </delete> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 95 | <delete includeemptydirs="true" |
| 96 | failonerror="false"> |
| 97 | <fileset |
| 98 | dir="${project.build.outputDirectory}/Temp" |
| 99 | includes="**/*"/> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 100 | </delete> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 101 | </target> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 102 | </configuration> |
| 103 | </execution> |
| 104 | </executions> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 105 | </plugin> |
| 106 | </plugins> |
| 107 | </build> |
| 108 | </project> |