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