1330810048e953495e4191dd036ff919bb061c2a
[yangtools.git] / integration-test / test-models / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.yangtools</groupId>
14         <artifactId>integration-tests</artifactId>
15         <version>0.6.2-SNAPSHOT</version>
16     </parent>
17
18     <modelVersion>4.0.0</modelVersion>
19     <artifactId>test-models</artifactId>
20     <packaging>pom</packaging>
21     <name>${project.artifactId}</name>
22     <description>${project.artifactId}</description>
23
24     <build>
25         <plugins>
26             <plugin>
27                 <groupId>org.opendaylight.yangtools</groupId>
28                 <artifactId>yang-maven-plugin</artifactId>
29                 <version>0.6.2-SNAPSHOT</version>
30                 <executions>
31                     <execution>
32                         <goals>
33                             <goal>generate-sources</goal>
34                         </goals>
35                         <configuration>
36                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
37                             <codeGenerators>
38                                 <generator>
39                                     <codeGeneratorClass>
40                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
41                                     </codeGeneratorClass>
42                                     <outputBaseDir>
43                                         target/generated-sources/sal
44                                     </outputBaseDir>
45                                 </generator>
46                                 <generator>
47                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
48                                     <outputBaseDir>target/site/restconf</outputBaseDir>
49                                 </generator>
50                                 <generator>
51                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
52                                     <outputBaseDir>target/site/restconf</outputBaseDir>
53                                 </generator>
54                             </codeGenerators>
55                             <inspectDependencies>true</inspectDependencies>
56                         </configuration>
57                     </execution>
58                 </executions>
59                 <dependencies>
60                     <dependency>
61                         <groupId>org.opendaylight.yangtools</groupId>
62                         <artifactId>maven-sal-api-gen-plugin</artifactId>
63                         <version>0.6.2-SNAPSHOT</version>
64                         <type>jar</type>
65                     </dependency>
66                 </dependencies>
67             </plugin>
68             <plugin>
69                 <groupId>org.codehaus.mojo</groupId>
70                 <artifactId>build-helper-maven-plugin</artifactId>
71                 <version>1.8</version>
72                 <executions>
73                     <execution>
74                         <phase>generate-sources</phase>
75                         <goals>
76                             <goal>add-source</goal>
77                         </goals>
78                         <configuration>
79                             <sources>
80                                 <source>target/generated-sources/sal</source>
81                             </sources>
82                         </configuration>
83                     </execution>
84                 </executions>
85             </plugin>
86         </plugins>
87         <pluginManagement>
88             <plugins>
89                 <!--This plugin's configuration is used to store Eclipse 
90                     m2e settings only. It has no influence on the Maven build itself. -->
91                 <plugin>
92                     <groupId>org.eclipse.m2e</groupId>
93                     <artifactId>lifecycle-mapping</artifactId>
94                     <version>1.0.0</version>
95                     <configuration>
96                         <lifecycleMappingMetadata>
97                             <pluginExecutions>
98                                 <pluginExecution>
99                                     <pluginExecutionFilter>
100                                         <groupId>org.opendaylight.yangtools</groupId>
101                                         <artifactId>yang-maven-plugin</artifactId>
102                                         <versionRange>[0.5,)</versionRange>
103                                         <goals>
104                                             <goal>
105                                                 generate-sources
106                                             </goal>
107                                         </goals>
108                                     </pluginExecutionFilter>
109                                     <action>
110                                         <ignore />
111                                     </action>
112                                 </pluginExecution>
113                                 <pluginExecution>
114                                     <pluginExecutionFilter>
115                                         <groupId>org.apache.felix</groupId>
116                                         <artifactId>maven-bundle-plugin</artifactId>
117                                         <versionRange>[1.0,)</versionRange>
118                                         <goals>
119                                             <goal>manifest</goal>
120                                         </goals>
121                                     </pluginExecutionFilter>
122                                     <action>
123                                         <execute />
124                                     </action>
125                                 </pluginExecution>
126                             </pluginExecutions>
127                         </lifecycleMappingMetadata>
128                     </configuration>
129                 </plugin>
130             </plugins>
131         </pluginManagement>
132     </build>
133
134     <dependencies>
135         <dependency>
136             <groupId>org.opendaylight.yangtools</groupId>
137             <artifactId>yang-binding</artifactId>
138             <version>0.6.2-SNAPSHOT</version>
139         </dependency>
140         <dependency>
141             <groupId>org.opendaylight.yangtools</groupId>
142             <artifactId>yang-common</artifactId>
143             <version>0.6.2-SNAPSHOT</version>
144         </dependency>
145     </dependencies>
146
147 </project>
148