Fix the dependency issues and unify the version to 1.0.0
[alto.git] / alto-provider / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <project xmlns="http://maven.apache.org/POM/4.0.0"
4   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5   xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
6
7   <parent>
8     <groupId>org.opendaylight.alto</groupId>
9     <artifactId>alto-parent</artifactId>
10     <version>1.0.0-SNAPSHOT</version>
11     <relativePath>../</relativePath>
12   </parent>
13
14   <modelVersion>4.0.0</modelVersion>
15   <artifactId>alto-provider</artifactId>
16   <packaging>bundle</packaging>
17
18   <properties>
19     <checkstyle.skip>true</checkstyle.skip>
20     <sal-binding-api.version>1.2.0-SNAPSHOT</sal-binding-api.version>
21   </properties>
22
23   <dependencies>
24     <dependency>
25       <groupId>${project.groupId}</groupId>
26       <artifactId>alto-model</artifactId>
27       <version>${project.version}</version>
28     </dependency>
29     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>config-api</artifactId>
32       <version>${config.version}</version>
33     </dependency>
34     <dependency>
35       <groupId>org.opendaylight.controller</groupId>
36       <artifactId>sal-binding-api</artifactId>
37       <version>${mdsal.version}</version>
38     </dependency>
39     <dependency>
40       <groupId>org.opendaylight.controller</groupId>
41       <artifactId>sal-binding-config</artifactId>
42       <version>${mdsal.version}</version>
43     </dependency>
44     <dependency>
45       <groupId>org.opendaylight.controller</groupId>
46       <artifactId>sal-common-util</artifactId>
47       <version>${mdsal.version}</version>
48     </dependency>
49     <dependency>
50       <groupId>org.osgi</groupId>
51       <artifactId>org.osgi.core</artifactId>
52       <version>${osgi.core.version}</version>
53     </dependency>
54
55     <!-- dependencies to use AbstractDataBrokerTest -->
56     <dependency>
57       <groupId>org.opendaylight.controller</groupId>
58       <artifactId>sal-binding-broker-impl</artifactId>
59       <version>1.2.0-SNAPSHOT</version>
60       <scope>test</scope>
61     </dependency>
62     <dependency>
63       <groupId>org.opendaylight.controller</groupId>
64       <artifactId>sal-binding-broker-impl</artifactId>
65       <type>test-jar</type>
66       <version>1.2.0-SNAPSHOT</version>
67       <scope>test</scope>
68     </dependency>
69     <dependency>
70         <artifactId>junit</artifactId>
71         <groupId>junit</groupId>
72         <version>[4.8.1, 4.11]</version>
73         <scope>test</scope>
74     </dependency>
75     <!-- used to mock up classes
76      <dependency>
77       <groupId>org.mockito</groupId>
78       <artifactId>mockito-all</artifactId>
79       <scope>test</scope>
80     </dependency>
81     -->
82
83   </dependencies>
84
85   <build>
86     <plugins>
87       <plugin>
88         <groupId>org.apache.felix</groupId>
89         <artifactId>maven-bundle-plugin</artifactId>
90         <configuration>
91           <instructions>
92             <Export-Package>org.opendaylight.controller.config.yang.alto_provider,</Export-Package>
93             <Import-Package>*</Import-Package>
94           </instructions>
95         </configuration>
96       </plugin>
97       <plugin>
98         <groupId>org.opendaylight.yangtools</groupId>
99         <artifactId>yang-maven-plugin</artifactId>
100         <dependencies>
101           <dependency>
102             <groupId>org.opendaylight.controller</groupId>
103             <artifactId>yang-jmx-generator-plugin</artifactId>
104             <version>${config.version}</version>
105           </dependency>
106           <dependency>
107             <groupId>org.opendaylight.yangtools</groupId>
108             <artifactId>maven-sal-api-gen-plugin</artifactId>
109             <version>${yangtools.version}</version>
110             <type>jar</type>
111           </dependency>
112         </dependencies>
113         <executions>
114           <execution>
115             <id>config</id>
116             <goals>
117               <goal>generate-sources</goal>
118             </goals>
119             <configuration>
120               <codeGenerators>
121                 <generator>
122                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
123                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
124                   <additionalConfiguration>
125                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
126                   </additionalConfiguration>
127                 </generator>
128                 <generator>
129                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
130                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
131                 </generator>
132               </codeGenerators>
133               <inspectDependencies>true</inspectDependencies>
134             </configuration>
135           </execution>
136         </executions>
137       </plugin>
138     </plugins>
139   </build>
140   <scm>
141     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
142     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
143     <tag>HEAD</tag>
144     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
145   </scm>
146
147 </project>