| <?xml version="1.0" encoding="UTF-8"?> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.opendaylight.l2switch</groupId> |
| <artifactId>l2switch-parent</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| <relativePath>../../parent</relativePath> |
| </parent> |
| <groupId>org.opendaylight.l2switch.addresstracker</groupId> |
| <artifactId>addresstracker-model</artifactId> |
| <packaging>bundle</packaging> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.opendaylight.controller.model</groupId> |
| <artifactId>model-inventory</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.opendaylight.yangtools</groupId> |
| <artifactId>yang-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.opendaylight.mdsal.model</groupId> |
| <artifactId>ietf-yang-types</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.opendaylight.l2switch.packethandler</groupId> |
| <artifactId>packethandler-model</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name> |
| <Import-Package>org.opendaylight.yangtools.yang.binding.annotations, *</Import-Package> |
| <manifestLocation>${project.basedir}/META-INF</manifestLocation> |
| </instructions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.opendaylight.yangtools</groupId> |
| <artifactId>yang-maven-plugin</artifactId> |
| <version>${yangtools.version}</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.opendaylight.mdsal</groupId> |
| <artifactId>maven-sal-api-gen-plugin</artifactId> |
| <version>${mdsal.model.version}</version> |
| <type>jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.opendaylight.mdsal</groupId> |
| <artifactId>yang-binding</artifactId> |
| <version>${mdsal.model.version}</version> |
| <type>jar</type> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate-sources</goal> |
| </goals> |
| <configuration> |
| <yangFilesRootDir>src/main/yang</yangFilesRootDir> |
| <codeGenerators> |
| <generator> |
| <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass> |
| <outputBaseDir>${codeGeneratorPath}</outputBaseDir> |
| </generator> |
| <generator> |
| <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass> |
| <outputBaseDir>target/site/models</outputBaseDir> |
| </generator> |
| <generator> |
| <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass> |
| <outputBaseDir>target/site/models</outputBaseDir> |
| </generator> |
| </codeGenerators> |
| <inspectDependencies>true</inspectDependencies> |
| </configuration> |
| </execution> |
| </executions> |
| |
| </plugin> |
| <!-- cleans up auto generated code --> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${codeGeneratorPath}</directory> |
| <includes> |
| <include>**</include> |
| </includes> |
| </fileset> |
| <fileset> |
| <directory>${codeGeneratorPath}</directory> |
| <includes> |
| <include>**</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |