Merge "BUG-579: Remove ImmutableMap in favor of LinkedHashMap"
[controller.git] / opendaylight / config / config-module-archetype / src / main / resources / archetype-resources / 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/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4
5   <groupId>${groupId}</groupId>
6   <artifactId>${artifactId}</artifactId>
7   <version>${version}</version>
8   <packaging>bundle</packaging>
9
10     <properties>
11         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
12         <salGeneratorPath>${project.build.directory}/generated-sources/sal</salGeneratorPath>
13         <config.version>${config-api-version}</config.version>
14         <yangtools.version>${yang-maven-plugin-version}</yangtools.version>
15         <maven.bundle.version>${maven-bundle-plugin-version}</maven.bundle.version>
16         <java.version.source>1.7</java.version.source>
17         <java.version.target>1.7</java.version.target>
18         <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
19     </properties>
20
21     <dependencies>
22         <dependency>
23             <groupId>org.opendaylight.controller</groupId>
24             <artifactId>config-api</artifactId>
25             <version>${config.version}</version>
26         </dependency>
27     </dependencies>
28
29     <build>
30         <plugins>
31             <plugin>
32                 <groupId>org.opendaylight.yangtools</groupId>
33                 <artifactId>yang-maven-plugin</artifactId>
34                 <version>${yangtools.version}</version>
35                 <executions>
36                     <execution>
37                         <id>config</id>
38                         <goals>
39                             <goal>generate-sources</goal>
40                         </goals>
41                         <configuration>
42                             <codeGenerators>
43                                 <generator>
44                                     <codeGeneratorClass>
45                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
46                                     </codeGeneratorClass>
47                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
48                                     <additionalConfiguration>
49                                         <namespaceToPackage1>
50                                             ${yang-namespace-mapping-from}==${yang-namespace-mapping-to}
51                                         </namespaceToPackage1>
52                                     </additionalConfiguration>
53                                 </generator>
54                                 <generator>
55                                     <codeGeneratorClass>
56                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
57                                     </codeGeneratorClass>
58                                     <outputBaseDir>
59                                         ${salGeneratorPath}
60                                     </outputBaseDir>
61                                 </generator>
62                             </codeGenerators>
63                             <inspectDependencies>true</inspectDependencies>
64                         </configuration>
65                     </execution>
66                 </executions>
67                 <dependencies>
68                     <dependency>
69                         <groupId>org.opendaylight.controller</groupId>
70                         <artifactId>yang-jmx-generator-plugin</artifactId>
71                         <version>${config.version}</version>
72                     </dependency>
73                     <dependency>
74                         <groupId>org.opendaylight.yangtools</groupId>
75                         <artifactId>maven-sal-api-gen-plugin</artifactId>
76                         <version>${yangtools.version}</version>
77                     </dependency>
78                 </dependencies>
79             </plugin>
80
81             <plugin>
82                 <groupId>org.codehaus.mojo</groupId>
83                 <artifactId>build-helper-maven-plugin</artifactId>
84                 <version>1.8</version>
85                 <executions>
86                     <execution>
87                         <id>add-source</id>
88                         <phase>generate-sources</phase>
89                         <goals>
90                             <goal>add-source</goal>
91                         </goals>
92                         <configuration>
93                             <sources>
94                                 <source>${jmxGeneratorPath}</source>
95                             </sources>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100
101             <plugin>
102                 <groupId>org.apache.felix</groupId>
103                 <artifactId>maven-bundle-plugin</artifactId>
104                 <version>${maven.bundle.version}</version>
105                 <extensions>true</extensions>
106                 <configuration>
107                     <instructions>
108                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
109                     </instructions>
110                 </configuration>
111             </plugin>
112
113             <plugin>
114                 <groupId>org.apache.maven.plugins</groupId>
115                 <artifactId>maven-compiler-plugin</artifactId>
116                 <version>${maven.compile.plugin.version}</version>
117                 <configuration>
118                     <source>${java.version.source}</source>
119                     <target>${java.version.target}</target>
120                     <testSource>${java.version.source}</testSource>
121                     <testTarget>${java.version.target}</testTarget>
122                 </configuration>
123             </plugin>
124
125         </plugins>
126     </build>
127 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.