Merge branch 'master' of ../controller
[yangtools.git] / yang / yang-maven-plugin-it / src / test / resources / test-parent / GenerateTest2 / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!-- Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. This
4     program and the accompanying materials are made available under the terms of the
5     Eclipse Public License v1.0 which accompanies this distribution, and is available
6     at http://www.eclipse.org/legal/epl-v10.html -->
7 <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">
8     <modelVersion>4.0.0</modelVersion>
9
10     <parent>
11         <groupId>org.opendaylight.yangtools</groupId>
12         <artifactId>test-parent</artifactId>
13         <version>@project.version@</version>
14     </parent>
15
16     <artifactId>generator-test2</artifactId>
17
18     <properties>
19         <target.dir>${project.build.directory}</target.dir>
20     </properties>
21
22     <dependencies>
23         <dependency>
24             <groupId>org.opendaylight.yangtools</groupId>
25             <artifactId>generator-test1</artifactId>
26             <version>${project.version}</version>
27             <scope>system</scope>
28             <systemPath>${project.basedir}/../GenerateTest1/target/generator-test1-${project.version}.jar</systemPath>
29         </dependency>
30     </dependencies>
31
32     <build>
33         <plugins>
34             <plugin>
35                 <groupId>org.opendaylight.yangtools</groupId>
36                 <artifactId>yang-maven-plugin</artifactId>
37                 <version>${project.version}</version>
38                 <executions>
39                     <execution>
40                         <goals>
41                             <goal>generate-sources</goal>
42                         </goals>
43                         <configuration>
44                             <yangFilesRootDir>${project.basedir}/yang</yangFilesRootDir>
45                             <inspectDependencies>true</inspectDependencies>
46                             <codeGenerators>
47                                 <generator>
48                                     <codeGeneratorClass>
49                                         org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
50                                     </codeGeneratorClass>
51                                     <outputBaseDir>
52                                         outDir/
53                                     </outputBaseDir>
54                                 </generator>
55                             </codeGenerators>
56                         </configuration>
57                     </execution>
58                 </executions>
59                 <dependencies>
60                     <dependency>
61                         <groupId>org.opendaylight.yangtools</groupId>
62                         <artifactId>yang-maven-plugin-spi</artifactId>
63                         <version>${project.version}</version>
64                         <type>test-jar</type>
65                     </dependency>
66                 </dependencies>
67             </plugin>
68             <plugin>
69                 <groupId>org.codehaus.mojo</groupId>
70                 <artifactId>properties-maven-plugin</artifactId>
71             </plugin>
72         </plugins>
73     </build>
74 </project>