Removed Export-Package declaration from maven-bundle-plugin. Fixed some maven warnings.
[yangtools.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>iana</module>
25         <module>ietf</module>
26         <!-- <module>model-topology-bgp</module> -->
27         <module>l2-types</module>
28     </modules>
29
30     <build>
31         <plugins>
32             <plugin>
33                 <groupId>org.opendaylight.yangtools</groupId>
34                 <artifactId>yang-maven-plugin</artifactId>
35                 <version>${yang.version}</version>
36                 <executions>
37                     <execution>
38                         <goals>
39                             <goal>generate-sources</goal>
40                         </goals>
41                         <configuration>
42                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
43                             <codeGenerators>
44                                 <generator>
45                                     <codeGeneratorClass>
46                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
47                                     </codeGeneratorClass>
48                                     <outputBaseDir>
49                                         target/generated-sources/sal
50                                     </outputBaseDir>
51                                 </generator>
52                             </codeGenerators>
53                             <inspectDependencies>true</inspectDependencies>
54                         </configuration>
55                     </execution>
56                 </executions>
57                 <dependencies>
58                     <dependency>
59                         <groupId>org.opendaylight.yangtools</groupId>
60                         <artifactId>maven-sal-api-gen-plugin</artifactId>
61                         <version>0.5.8-SNAPSHOT</version>
62                         <type>jar</type>
63                     </dependency>
64                 </dependencies>
65             </plugin>
66             <plugin>
67                 <groupId>org.codehaus.mojo</groupId>
68                 <artifactId>build-helper-maven-plugin</artifactId>
69                 <version>1.7</version>
70                 <executions>
71                     <execution>
72                         <phase>generate-sources</phase>
73                         <goals>
74                             <goal>add-source</goal>
75                         </goals>
76                         <configuration>
77                             <sources>
78                                 <source>target/generated-sources/sal</source>
79                             </sources>
80                         </configuration>
81                     </execution>
82                 </executions>
83             </plugin>
84         </plugins>
85         <pluginManagement>
86             <plugins>
87                 <plugin>
88                     <groupId>org.apache.maven.plugins</groupId>
89                     <artifactId>maven-jar-plugin</artifactId>
90                     <version>${maven.jar.version}</version>
91                     <configuration>
92                         <archive>
93                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
94                         </archive>
95                     </configuration>
96                 </plugin>
97                 <plugin>
98                     <groupId>org.apache.felix</groupId>
99                     <artifactId>maven-bundle-plugin</artifactId>
100                     <version>${maven.bundle.version}</version>
101                     <extensions>true</extensions>
102                     <executions>
103                         <execution>
104                             <id>bundle-manifest</id>
105                             <phase>process-classes</phase>
106                             <goals>
107                                 <goal>manifest</goal>
108                             </goals>
109                         </execution>
110                     </executions>
111                 </plugin>
112                 <!--This plugin's configuration is used to store Eclipse 
113                     m2e settings only. It has no influence on the Maven build itself. -->
114                 <plugin>
115                     <groupId>org.eclipse.m2e</groupId>
116                     <artifactId>lifecycle-mapping</artifactId>
117                     <version>1.0.0</version>
118                     <configuration>
119                         <lifecycleMappingMetadata>
120                             <pluginExecutions>
121                                 <pluginExecution>
122                                     <pluginExecutionFilter>
123                                         <groupId>org.opendaylight.yangtools</groupId>
124                                         <artifactId>yang-maven-plugin</artifactId>
125                                         <versionRange>[0.5,)</versionRange>
126                                         <goals>
127                                             <goal>
128                                                 generate-sources
129                                             </goal>
130                                         </goals>
131                                     </pluginExecutionFilter>
132                                     <action>
133                                         <ignore></ignore>
134                                     </action>
135                                 </pluginExecution>
136                                 <pluginExecution>
137                                     <pluginExecutionFilter>
138                                         <groupId>org.apache.felix</groupId>
139                                         <artifactId>maven-bundle-plugin</artifactId>
140                                         <versionRange>[1.0,)</versionRange>
141                                         <goals>
142                                             <goal>manifest</goal>
143                                         </goals>
144                                     </pluginExecutionFilter>
145                                     <action>
146                                         <execute></execute>
147                                     </action>
148                                 </pluginExecution>
149                             </pluginExecutions>
150                         </lifecycleMappingMetadata>
151                     </configuration>
152                 </plugin>
153             </plugins>
154         </pluginManagement>
155     </build>
156
157     <dependencies>
158         <dependency>
159             <groupId>org.opendaylight.yangtools</groupId>
160             <artifactId>yang-binding</artifactId>
161             <version>${yang.version}</version>
162         </dependency>
163         <dependency>
164             <groupId>org.opendaylight.yangtools</groupId>
165             <artifactId>yang-common</artifactId>
166             <version>${yang.version}</version>
167         </dependency>
168     </dependencies>
169
170 </project>