Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2017-present Open Networking Laboratory |
| 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 | b0870a9 | 2017-03-08 13:23:25 -0800 | [diff] [blame] | 25 | <version>1.12-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 | b0870a9 | 2017-03-08 13:23:25 -0800 | [diff] [blame] | 40 | <version>1.12-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> |
| 57 | </configuration> |
| 58 | <executions> |
| 59 | <execution> |
| 60 | <id>default</id> |
| 61 | <goals> |
| 62 | <goal>yang2java</goal> |
| 63 | </goals> |
| 64 | </execution> |
| 65 | </executions> |
| 66 | </plugin> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 67 | |
| 68 | <!-- |
| 69 | Cleans up generated test artifacts which get included as a source |
| 70 | directory, but which we don't want as part of the bundle. |
| 71 | --> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 72 | <plugin> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 73 | <groupId>org.apache.maven.plugins</groupId> |
| 74 | <artifactId>maven-antrun-plugin</artifactId> |
| 75 | <version>1.8</version> |
| 76 | <executions> |
| 77 | <execution> |
| 78 | <phase>prepare-package</phase> |
| 79 | <goals> |
| 80 | <goal>run</goal> |
| 81 | </goals> |
| 82 | <configuration> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 83 | <target> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 84 | <delete> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 85 | <fileset dir="${project.build.outputDirectory}/org/onosproject/yang/gen" includes="**/*"/> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 86 | </delete> |
Gaurav Agrawal | 0a9640d | 2017-03-03 19:17:33 +0530 | [diff] [blame] | 87 | </target> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 88 | </configuration> |
| 89 | </execution> |
| 90 | </executions> |
Vidyashree Rama | 46c833f | 2017-02-23 18:54:26 +0530 | [diff] [blame] | 91 | </plugin> |
| 92 | </plugins> |
| 93 | </build> |
| 94 | </project> |