BUG-1170: removed hardcoding of test build directory.
[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"
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-test2</artifactId>
18
19     <properties>
20         <target.dir>${project.build.directory}</target.dir>
21     </properties>
22
23     <dependencies>
24         <dependency>
25             <groupId>org.opendaylight.yangtools</groupId>
26             <artifactId>generator-test1</artifactId>
27             <version>${it-project.version}</version>
28             <scope>system</scope>
29             <systemPath>${project.basedir}/../GenerateTest1/target/generator-test1-1.0.jar</systemPath>
30         </dependency>
31     </dependencies>
32
33     <build>
34         <plugins>
35             <plugin>
36                 <groupId>org.opendaylight.yangtools</groupId>
37                 <artifactId>yang-maven-plugin</artifactId>
38                 <version>${it-project.version}</version>
39                 <executions>
40                     <execution>
41                         <goals>
42                             <goal>generate-sources</goal>
43                         </goals>
44                         <configuration>
45                             <yangFilesRootDir>${project.basedir}/yang</yangFilesRootDir>
46                             <inspectDependencies>true</inspectDependencies>
47                             <codeGenerators>
48                                 <generator>
49                                     <codeGeneratorClass>
50                                         org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
51                                     </codeGeneratorClass>
52                                     <outputBaseDir>
53                                         outDir/
54                                     </outputBaseDir>
55                                 </generator>
56                             </codeGenerators>
57                         </configuration>
58                     </execution>
59                 </executions>
60                 <dependencies>
61                     <dependency>
62                         <groupId>org.opendaylight.yangtools</groupId>
63                         <artifactId>yang-maven-plugin-spi</artifactId>
64                         <version>${it-project.version}</version>
65                         <type>test-jar</type>
66                     </dependency>
67                 </dependencies>
68             </plugin>
69             <plugin>
70                 <groupId>org.codehaus.mojo</groupId>
71                 <artifactId>properties-maven-plugin</artifactId>
72             </plugin>
73         </plugins>
74     </build>
75 </project>