Fixed some major sonar issues in yang-validation-tool
[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>yangtools-parent</artifactId>
15         <version>0.8.0-SNAPSHOT</version>
16         <relativePath>/../../common/parent/pom.xml</relativePath>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <artifactId>test-models</artifactId>
21     <packaging>pom</packaging>
22     <name>${project.artifactId}</name>
23     <description>${project.artifactId}</description>
24
25     <build>
26         <plugins>
27             <plugin>
28                 <groupId>org.opendaylight.yangtools</groupId>
29                 <artifactId>yang-maven-plugin</artifactId>
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.8.0-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                 <executions>
72                     <execution>
73                         <phase>generate-sources</phase>
74                         <goals>
75                             <goal>add-source</goal>
76                         </goals>
77                         <configuration>
78                             <sources>
79                                 <source>target/generated-sources/sal</source>
80                             </sources>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85         </plugins>
86         <pluginManagement>
87             <plugins>
88                 <!--This plugin's configuration is used to store Eclipse 
89                     m2e settings only. It has no influence on the Maven build itself. -->
90                 <plugin>
91                     <groupId>org.eclipse.m2e</groupId>
92                     <artifactId>lifecycle-mapping</artifactId>
93                     <version>1.0.0</version>
94                     <configuration>
95                         <lifecycleMappingMetadata>
96                             <pluginExecutions>
97                                 <pluginExecution>
98                                     <pluginExecutionFilter>
99                                         <groupId>org.opendaylight.yangtools</groupId>
100                                         <artifactId>yang-maven-plugin</artifactId>
101                                         <versionRange>[0.5,)</versionRange>
102                                         <goals>
103                                             <goal>
104                                                 generate-sources
105                                             </goal>
106                                         </goals>
107                                     </pluginExecutionFilter>
108                                     <action>
109                                         <ignore />
110                                     </action>
111                                 </pluginExecution>
112                                 <pluginExecution>
113                                     <pluginExecutionFilter>
114                                         <groupId>org.apache.felix</groupId>
115                                         <artifactId>maven-bundle-plugin</artifactId>
116                                         <versionRange>[1.0,)</versionRange>
117                                         <goals>
118                                             <goal>manifest</goal>
119                                         </goals>
120                                     </pluginExecutionFilter>
121                                     <action>
122                                         <execute />
123                                     </action>
124                                 </pluginExecution>
125                             </pluginExecutions>
126                         </lifecycleMappingMetadata>
127                     </configuration>
128                 </plugin>
129             </plugins>
130         </pluginManagement>
131     </build>
132
133     <dependencies>
134         <dependency>
135             <groupId>org.opendaylight.yangtools</groupId>
136             <artifactId>yang-binding</artifactId>
137         </dependency>
138         <dependency>
139             <groupId>org.opendaylight.yangtools</groupId>
140             <artifactId>yang-common</artifactId>
141         </dependency>
142     </dependencies>
143
144 </project>
145