BUG-1170: removed hardcoding of test build directory.
[yangtools.git] / yang / yang-maven-plugin-it / src / test / resources / test-parent / GenerateTest1 / 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"
8     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9     <modelVersion>4.0.0</modelVersion>
10
11     <parent>
12         <groupId>org.opendaylight.yangtools</groupId>
13         <artifactId>test-parent</artifactId>
14         <version>1.0</version>
15     </parent>
16
17     <artifactId>generator-test1</artifactId>
18
19     <properties>
20         <target.dir>${project.build.directory}</target.dir>
21     </properties>
22
23     <build>
24         <plugins>
25             <plugin>
26                 <groupId>org.opendaylight.yangtools</groupId>
27                 <artifactId>yang-maven-plugin</artifactId>
28                 <version>${it-project.version}</version>
29                 <executions>
30                     <execution>
31                         <goals>
32                             <goal>generate-sources</goal>
33                         </goals>
34                         <configuration>
35                             <yangFilesRootDir>${basedir}/src/main/resources</yangFilesRootDir>
36                             <inspectDependencies>false</inspectDependencies>
37                             <codeGenerators>
38                                 <generator>
39                                     <codeGeneratorClass>
40                                         org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
41                                     </codeGeneratorClass>
42                                     <outputBaseDir>
43                                         target/GenerateTest1
44                                     </outputBaseDir>
45                                 </generator>
46                             </codeGenerators>
47                         </configuration>
48                     </execution>
49                 </executions>
50                 <dependencies>
51                     <dependency>
52                         <groupId>org.opendaylight.yangtools</groupId>
53                         <artifactId>yang-maven-plugin-spi</artifactId>
54                         <version>${it-project.version}</version>
55                         <type>test-jar</type>
56                     </dependency>
57                 </dependencies>
58             </plugin>
59             <plugin>
60                 <groupId>org.codehaus.mojo</groupId>
61                 <artifactId>properties-maven-plugin</artifactId>
62             </plugin>
63         </plugins>
64     </build>
65 </project>