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> |
ONOS Jenkins User | 281e10f | 2018-07-02 18:54:45 +0000 | [diff] [blame^] | 25 | <version>2.6-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> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 35 | </dependency> |
| 36 | <dependency> |
| 37 | <groupId>org.onosproject</groupId> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 38 | <artifactId>onos-yang-serializers-utils</artifactId> |
Yuta HIGUCHI | 1bc3c23 | 2018-05-11 11:36:00 -0700 | [diff] [blame] | 39 | <version>${project.version}</version> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 40 | </dependency> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 41 | </dependencies> |
| 42 | |
| 43 | <build> |
| 44 | <plugins> |
| 45 | <plugin> |
| 46 | <groupId>org.onosproject</groupId> |
| 47 | <artifactId>onos-yang-compiler-maven-plugin</artifactId> |
| 48 | <version>${project.version}</version> |
| 49 | <configuration> |
| 50 | <yangFilesDir>src/test/resources</yangFilesDir> |
sonugupta-huawei | 0d3443e | 2017-07-10 11:13:45 +0530 | [diff] [blame] | 51 | <modelId>xml</modelId> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 52 | </configuration> |
| 53 | <executions> |
| 54 | <execution> |
| 55 | <id>default</id> |
| 56 | <goals> |
| 57 | <goal>yang2java</goal> |
| 58 | </goals> |
| 59 | </execution> |
| 60 | </executions> |
| 61 | </plugin> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 62 | |
| 63 | <!-- |
| 64 | Cleans up generated test artifacts which get included as a source |
| 65 | directory, but which we don't want as part of the bundle. |
| 66 | --> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 67 | <plugin> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 68 | <groupId>org.apache.maven.plugins</groupId> |
| 69 | <artifactId>maven-antrun-plugin</artifactId> |
| 70 | <version>1.8</version> |
| 71 | <executions> |
| 72 | <execution> |
| 73 | <phase>prepare-package</phase> |
| 74 | <goals> |
| 75 | <goal>run</goal> |
| 76 | </goals> |
| 77 | <configuration> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 78 | <target> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 79 | <delete includeemptydirs="true"> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 80 | <fileset |
| 81 | dir="${project.build.outputDirectory}/org/onosproject/yang/gen" |
| 82 | includes="**/*"/> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 83 | </delete> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 84 | <delete includeemptydirs="true"> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 85 | <fileset |
| 86 | dir="${project.build.outputDirectory}/yang" |
| 87 | includes="**/*"/> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 88 | </delete> |
Vidyashree Rama | 3c58673 | 2017-05-12 19:48:07 +0530 | [diff] [blame] | 89 | <delete includeemptydirs="true" |
| 90 | failonerror="false"> |
| 91 | <fileset |
| 92 | dir="${project.build.outputDirectory}/Temp" |
| 93 | includes="**/*"/> |
Bharat saraswal | 285358c | 2017-03-16 15:08:09 +0530 | [diff] [blame] | 94 | </delete> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 95 | </target> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 96 | </configuration> |
| 97 | </execution> |
| 98 | </executions> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 99 | </plugin> |
| 100 | </plugins> |
| 101 | </build> |
| 102 | </project> |