Dilip kumar Pampana | 108ff43 | 2018-01-08 15:08:21 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | <parent> |
| 6 | <artifactId>appc-interfaces-service</artifactId> |
| 7 | <groupId>org.onap.appc</groupId> |
| 8 | <version>1.3.0-SNAPSHOT</version> |
| 9 | </parent> |
| 10 | <artifactId>appc-interfaces-service-model</artifactId> |
| 11 | <packaging>bundle</packaging> |
| 12 | |
| 13 | <build> |
| 14 | <plugins> |
| 15 | <plugin> |
| 16 | <groupId>org.apache.felix</groupId> |
| 17 | <artifactId>maven-bundle-plugin</artifactId> |
| 18 | <extensions>true</extensions> |
| 19 | <configuration> |
| 20 | <instructions> |
| 21 | <Import-Package>*</Import-Package> |
| 22 | </instructions> |
| 23 | </configuration> |
| 24 | </plugin> |
| 25 | <plugin> |
| 26 | <groupId>org.opendaylight.yangtools</groupId> |
| 27 | <artifactId>yang-maven-plugin</artifactId> |
| 28 | <version>${odl.yangtools.version}</version> |
| 29 | <dependencies> |
| 30 | <dependency> |
| 31 | <groupId>org.opendaylight.mdsal</groupId> |
| 32 | <artifactId>maven-sal-api-gen-plugin</artifactId> |
| 33 | <version>${odl.sal.api.gen.plugin.version}</version> |
| 34 | <type>jar</type> |
| 35 | </dependency> |
| 36 | </dependencies> |
| 37 | |
| 38 | <executions> |
| 39 | <execution> |
| 40 | <goals> |
| 41 | <goal>generate-sources</goal> |
| 42 | </goals> |
| 43 | <configuration> |
| 44 | <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir> |
| 45 | <codeGenerators> |
| 46 | <generator> |
| 47 | <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass> |
| 48 | <outputBaseDir>${salGeneratorPath}</outputBaseDir> |
| 49 | </generator> |
| 50 | </codeGenerators> |
| 51 | <inspectDependencies>true</inspectDependencies> |
| 52 | </configuration> |
| 53 | </execution> |
| 54 | </executions> |
| 55 | </plugin> |
| 56 | <plugin> |
| 57 | <groupId>org.codehaus.mojo</groupId> |
| 58 | <artifactId>exec-maven-plugin</artifactId> |
| 59 | <version>1.2.1</version> |
| 60 | <executions> |
| 61 | <execution> |
| 62 | <configuration> |
| 63 | <executable>python</executable> |
| 64 | <arguments> |
| 65 | <argument>scripts/python/yang2props.py</argument> |
| 66 | <argument>src/main/yang/appc-interfaces-service.yang</argument> |
| 67 | <argument>target/appc-interfaces-service.properties</argument> |
| 68 | </arguments> |
| 69 | </configuration> |
| 70 | <id>generation</id> |
| 71 | <phase>generate-resources</phase> |
| 72 | <goals> |
| 73 | <goal>exec</goal> |
| 74 | </goals> |
| 75 | </execution> |
| 76 | </executions> |
| 77 | </plugin> |
| 78 | <plugin> |
| 79 | <groupId>org.codehaus.mojo</groupId> |
| 80 | <artifactId>build-helper-maven-plugin</artifactId> |
| 81 | <executions> |
| 82 | <execution> |
| 83 | <id>attach-artifacts</id> |
| 84 | <goals> |
| 85 | <goal>attach-artifact</goal> |
| 86 | </goals> |
| 87 | <phase>package</phase> |
| 88 | <configuration> |
| 89 | <artifacts> |
| 90 | <artifact> |
| 91 | <file>${project.build.directory}/appc-interfaces-service.properties</file> |
| 92 | <type>properties</type> |
| 93 | <classifier>appc-interfaces-service</classifier> |
| 94 | </artifact> |
| 95 | </artifacts> |
| 96 | </configuration> |
| 97 | </execution> |
| 98 | </executions> |
| 99 | </plugin> |
| 100 | </plugins> |
| 101 | <pluginManagement> |
| 102 | <plugins> |
| 103 | <!--This plugin's configuration is used to store Eclipse m2e settings |
| 104 | only. It has no influence on the Maven build itself. --> |
| 105 | <plugin> |
| 106 | <groupId>org.eclipse.m2e</groupId> |
| 107 | <artifactId>lifecycle-mapping</artifactId> |
| 108 | <version>1.0.0</version> |
| 109 | <configuration> |
| 110 | <lifecycleMappingMetadata> |
| 111 | <pluginExecutions> |
| 112 | <pluginExecution> |
| 113 | <pluginExecutionFilter> |
| 114 | <groupId> |
| 115 | org.codehaus.mojo |
| 116 | </groupId> |
| 117 | <artifactId> |
| 118 | exec-maven-plugin |
| 119 | </artifactId> |
| 120 | <versionRange> |
| 121 | [1.2.1,) |
| 122 | </versionRange> |
| 123 | <goals> |
| 124 | <goal>exec</goal> |
| 125 | </goals> |
| 126 | </pluginExecutionFilter> |
| 127 | <action> |
| 128 | <ignore /> |
| 129 | </action> |
| 130 | </pluginExecution> |
| 131 | </pluginExecutions> |
| 132 | </lifecycleMappingMetadata> |
| 133 | </configuration> |
| 134 | </plugin> |
| 135 | </plugins> |
| 136 | </pluginManagement> |
| 137 | </build> |
| 138 | <dependencies> |
| 139 | <dependency> |
| 140 | <groupId>org.opendaylight.mdsal</groupId> |
| 141 | <artifactId>yang-binding</artifactId> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>org.opendaylight.yangtools</groupId> |
| 145 | <artifactId>yang-common</artifactId> |
| 146 | </dependency> |
| 147 | <dependency> |
| 148 | <groupId>org.opendaylight.mdsal.model</groupId> |
| 149 | <artifactId>ietf-inet-types</artifactId> |
| 150 | </dependency> |
| 151 | <dependency> |
| 152 | <groupId>org.opendaylight.mdsal.model</groupId> |
| 153 | <artifactId>ietf-yang-types</artifactId> |
| 154 | </dependency> |
| 155 | </dependencies> |
| 156 | </project> |