Add appc-yang-generator as bundle
[appc.git] / appc-inbound / appc-artifact-handler / provider / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
6 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Copyright (C) 2017 Amdocs
9 =============================================================================
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13
14       http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 ============LICENSE_END=========================================================
23 -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26         <modelVersion>4.0.0</modelVersion>
27         <parent>
28                 <artifactId>appc-artifact-handler</artifactId>
29                 <groupId>org.onap.appc</groupId>
30                 <version>1.3.0-SNAPSHOT</version>
31         </parent>
32         <artifactId>appc-artifact-handler-provider</artifactId>
33         <packaging>bundle</packaging>
34
35         <build>
36                 <plugins>
37                         <plugin>
38                                 <groupId>org.apache.felix</groupId>
39                                 <artifactId>maven-bundle-plugin</artifactId>
40                                 <extensions>true</extensions>
41                                 <configuration>
42                                         <instructions>
43                                                 <Bundle-SymbolicName>org.onap.appc.artifact.handler</Bundle-SymbolicName>
44                                                 <Bundle-Activator>org.onap.appc.artifact.handler.SdcArtifactHandlerActivator</Bundle-Activator>
45                                                 <Export-Package>org.onap.appc.artifact.handler,org.opendaylight.controller.config.yang.config.artifact-handler_provider.impl</Export-Package>
46                                                 <Import-Package>!com.google,!org.apache.commons.configuration,*;resolution:=optional</Import-Package>
47                                                 <Embed-Dependency>commons-configuration,guava,jackson-databind,jackson-annotations,jackson-core,jackson-dataformat-yaml</Embed-Dependency>
48                                         </instructions>
49                                 </configuration>
50                         </plugin>
51             <plugin>
52                 <groupId>org.opendaylight.yangtools</groupId>
53                 <artifactId>yang-maven-plugin</artifactId>
54                 <version>${odl.yangtools.version}</version>
55                 <executions>
56                     <execution>
57                         <id>config</id>
58                         <goals>
59                             <goal>generate-sources</goal>
60                         </goals>
61                         <configuration>
62                             <codeGenerators>
63                                 <generator>
64                                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
65                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
66                                     <additionalConfiguration>
67                                         <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
68                                     </additionalConfiguration>
69                                 </generator>
70                                 <generator>
71                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
72                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
73                                 </generator>
74                             </codeGenerators>
75                             <inspectDependencies>true</inspectDependencies>
76                         </configuration>
77                     </execution>
78                 </executions>
79                 <dependencies>
80                     <dependency>
81                         <groupId>org.opendaylight.mdsal</groupId>
82                         <artifactId>maven-sal-api-gen-plugin</artifactId>
83                         <version>${odl.sal.api.gen.plugin.version}</version>
84                         <type>jar</type>
85                     </dependency>
86                     <dependency>
87                         <groupId>org.opendaylight.controller</groupId>
88                         <artifactId>yang-jmx-generator-plugin</artifactId>
89                         <version>${odl.yang.jmx.generator.version}</version>
90                     </dependency>
91                 </dependencies>
92             </plugin>
93                         <plugin>
94                                 <groupId>org.codehaus.mojo</groupId>
95                                 <artifactId>build-helper-maven-plugin</artifactId>
96                                 <executions>
97                                         <execution>
98                                                 <id>attach-artifacts</id>
99                                                 <goals>
100                                                         <goal>attach-artifact</goal>
101                                                 </goals>
102                                                 <phase>package</phase>
103                                                 <configuration>
104                                                         <artifacts>
105                                                                 <artifact>
106                                                                         <file>${project.build.directory}/classes/initial/appc-artifact-handler-provider.xml</file>
107                                                                         <type>xml</type>
108                                                                         <classifier>config</classifier>
109                                                                 </artifact>
110                                                         </artifacts>
111                                                 </configuration>
112                                         </execution>
113                                 </executions>
114                         </plugin>
115                 </plugins>
116         </build>
117
118         <dependencies>
119                 <dependency>
120                         <groupId>org.onap.appc</groupId>
121                         <artifactId>appc-artifact-handler-model</artifactId>
122                         <version>${project.version}</version>
123                 </dependency>
124                 <dependency>
125                         <groupId>org.opendaylight.controller</groupId>
126                         <artifactId>config-api</artifactId>
127                 </dependency>
128                 <dependency>
129                         <groupId>org.onap.appc</groupId>
130                         <artifactId>appc-yang-generator</artifactId>
131                         <version>${project.version}</version>
132                 </dependency>
133
134                 <dependency>
135                         <groupId>org.opendaylight.controller</groupId>
136                         <artifactId>sal-binding-config</artifactId>
137                         </dependency>
138                 <dependency>
139                         <groupId>org.opendaylight.controller</groupId>
140                         <artifactId>sal-binding-api</artifactId>
141                         </dependency>
142                 <dependency>
143                         <groupId>org.opendaylight.mdsal</groupId>
144                         <artifactId>yang-binding</artifactId>
145                         </dependency>
146                 <dependency>
147                         <groupId>org.opendaylight.controller</groupId>
148                         <artifactId>sal-common-util</artifactId>
149                         </dependency>
150                 <dependency>
151                         <groupId>org.onap.ccsdk.sli.core</groupId>
152                         <artifactId>sli-common</artifactId>
153                 </dependency>
154                 <dependency>
155                         <groupId>org.onap.ccsdk.sli.core</groupId>
156                         <artifactId>sli-provider</artifactId>
157                 </dependency>
158                 <dependency>
159                         <groupId>commons-configuration</groupId>
160                         <artifactId>commons-configuration</artifactId>
161                         <version>1.10</version>
162                 </dependency>
163                 <dependency>
164                         <groupId>org.onap.appc</groupId>
165                         <artifactId>appc-config-params-provider</artifactId>
166                         <version>${project.version}</version>
167                 </dependency>
168                 <dependency>
169                         <artifactId>sal-test-model</artifactId>
170                         <groupId>org.opendaylight.controller</groupId>
171                         <scope>test</scope>
172                         </dependency>
173                 <dependency>
174                         <artifactId>sal-rest-connector</artifactId>
175                         <groupId>org.opendaylight.netconf</groupId>
176                         <scope>test</scope>
177                         </dependency>
178                 <dependency>
179                         <groupId>org.opendaylight.controller</groupId>
180                         <artifactId>sal-binding-broker-impl</artifactId>
181                         <scope>test</scope>
182                         </dependency>
183                 <dependency>
184                         <groupId>org.opendaylight.controller</groupId>
185                         <artifactId>sal-binding-broker-impl</artifactId>
186                         <version>${odl.mdsal.version}</version>
187                         <classifier>tests</classifier>
188                         <type>test-jar</type>
189                         <scope>test</scope>
190                 </dependency>
191                 <dependency>
192                         <groupId>com.att.eelf</groupId>
193                         <artifactId>eelf-core</artifactId>
194                 </dependency>
195                 <dependency>
196                         <groupId>junit</groupId>
197                         <artifactId>junit</artifactId>
198                         <scope>test</scope>
199                 </dependency>
200                 <dependency>
201                         <groupId>org.apache.commons</groupId>
202                         <artifactId>commons-lang3</artifactId>
203                 </dependency>
204                 <dependency>
205                         <groupId>org.json</groupId>
206                         <artifactId>json</artifactId>
207                 </dependency>
208                 <dependency>
209                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
210                         <artifactId>sql-resource-provider</artifactId>
211                         <version>${ccsdk.sli.adaptors.version}</version>
212                         <scope>compile</scope>
213                 </dependency>
214                 <dependency>
215                         <groupId>org.powermock</groupId>
216                         <artifactId>powermock-api-mockito</artifactId>
217                         <scope>test</scope>
218                 </dependency>
219                 <dependency>
220                         <groupId>org.mockito</groupId>
221                         <artifactId>mockito-core</artifactId>
222                         <scope>test</scope>
223                 </dependency>
224         </dependencies>
225 </project>