Updated pom files, added concepts component
[mdsal.git] / model / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
4     <parent>
5         <groupId>org.opendaylight.yangtools</groupId>
6         <artifactId>yangtools</artifactId>
7         <version>0.5-SNAPSHOT</version>
8     </parent>
9
10     <modelVersion>4.0.0</modelVersion>
11     <groupId>org.opendaylight.yangtools.model</groupId>
12     <artifactId>model-parent</artifactId>
13     <version>0.5.8-SNAPSHOT</version>
14     <packaging>pom</packaging>
15     <name>${project.artifactId}</name>
16     <description>${project.artifactId}</description>
17
18     <properties>
19         <yang.version>0.5.8-SNAPSHOT</yang.version>
20         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21     </properties>
22
23     <modules>
24         <module>yang-ext</module>
25         <module>iana</module>
26         <module>ietf</module>
27         <!-- <module>model-topology-bgp</module> -->
28         <module>l2-types</module>
29     </modules>
30
31     <build>
32         <plugins>
33             <plugin>
34                 <groupId>org.opendaylight.yangtools</groupId>
35                 <artifactId>yang-maven-plugin</artifactId>
36                 <version>${yang.version}</version>
37                 <executions>
38                     <execution>
39                         <goals>
40                             <goal>generate-sources</goal>
41                         </goals>
42                         <configuration>
43                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
44                             <codeGenerators>
45                                 <generator>
46                                     <codeGeneratorClass>
47                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
48                                     </codeGeneratorClass>
49                                     <outputBaseDir>
50                                         target/generated-sources/sal
51                                     </outputBaseDir>
52                                 </generator>
53                             </codeGenerators>
54                             <inspectDependencies>true</inspectDependencies>
55                         </configuration>
56                     </execution>
57                 </executions>
58                 <dependencies>
59                     <dependency>
60                         <groupId>org.opendaylight.yangtools</groupId>
61                         <artifactId>maven-sal-api-gen-plugin</artifactId>
62                         <version>0.5.8-SNAPSHOT</version>
63                         <type>jar</type>
64                     </dependency>
65                 </dependencies>
66             </plugin>
67             <plugin>
68                 <groupId>org.codehaus.mojo</groupId>
69                 <artifactId>build-helper-maven-plugin</artifactId>
70                 <version>1.7</version>
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></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></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             <version>${yang.version}</version>
138         </dependency>
139         <dependency>
140             <groupId>org.opendaylight.yangtools</groupId>
141             <artifactId>yang-common</artifactId>
142             <version>${yang.version}</version>
143         </dependency>
144     </dependencies>
145
146 </project>