Bump minor version
[appc.git] / appc-common / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2   <modelVersion>4.0.0</modelVersion>
3   <parent>
4     <groupId>org.openecomp.appc</groupId>
5     <artifactId>appc</artifactId>
6                 <version>1.3.0-SNAPSHOT</version>
7   </parent>
8   <artifactId>appc-common</artifactId>
9   <name>APP-C Common</name>
10   <packaging>bundle</packaging>
11   <description>Common library shared across all modules</description>
12
13 <!-- <packaging>bundle</packaging> -->
14
15   <dependencies>
16     <dependency>
17       <groupId>junit</groupId>
18       <artifactId>junit</artifactId>
19       <scope>test</scope>
20     </dependency>
21
22     <dependency>
23       <groupId>ch.qos.logback</groupId>
24       <artifactId>logback-core</artifactId>
25       <scope>compile</scope>
26     </dependency>
27
28     <dependency>
29       <groupId>ch.qos.logback</groupId>
30       <artifactId>logback-classic</artifactId>
31       <scope>compile</scope>
32     </dependency>
33
34     <dependency>
35       <groupId>org.slf4j</groupId>
36       <artifactId>slf4j-api</artifactId>
37     </dependency>
38
39     <!-- Needed for EELF (Event and Error Logging Framework) support -->
40     <dependency>
41       <groupId>com.att.eelf</groupId>
42       <artifactId>eelf-core</artifactId>
43       </dependency>
44
45     <!-- Needed for encryption -->
46     <dependency>
47       <groupId>org.jasypt</groupId>
48       <artifactId>jasypt</artifactId>
49       <version>1.9.2</version>
50 <!--       <classifier>lite</classifier> -->
51       <scope>compile</scope>
52     </dependency>
53
54     <dependency>
55         <groupId>org.apache.commons</groupId>
56         <artifactId>commons-lang3</artifactId>
57     </dependency>
58
59         <dependency>
60                 <groupId>javax</groupId>
61                 <artifactId>javaee-api</artifactId>
62                 <version>7.0</version>
63         </dependency>
64     <dependency>
65       <groupId>org.apache.httpcomponents</groupId>
66       <artifactId>httpclient</artifactId>
67       <version>4.5.1</version>
68     </dependency>
69     <dependency>
70       <groupId>org.apache.httpcomponents</groupId>
71       <artifactId>httpcore</artifactId>
72       <version>${apache.httpcomponents.version}</version>
73     </dependency>
74     <dependency>
75       <groupId>com.fasterxml.jackson.core</groupId>
76       <artifactId>jackson-core</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>com.fasterxml.jackson.core</groupId>
80       <artifactId>jackson-databind</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>com.fasterxml.jackson.core</groupId>
84       <artifactId>jackson-annotations</artifactId>
85     </dependency>
86     <dependency>
87       <groupId>org.onap.ccsdk.sli.core</groupId>
88       <artifactId>dblib-provider</artifactId>
89       </dependency>
90   <dependency>
91     <groupId>org.mockito</groupId>
92     <artifactId>mockito-core</artifactId>
93     <scope>test</scope>
94   </dependency>
95       <dependency>
96           <groupId>org.powermock</groupId>
97           <artifactId>powermock-reflect</artifactId>
98       </dependency>
99       <dependency>
100           <groupId>org.powermock</groupId>
101           <artifactId>powermock-module-junit4</artifactId>
102       </dependency>
103       <dependency>
104           <groupId>org.powermock</groupId>
105           <artifactId>powermock-api-mockito</artifactId>
106       </dependency>
107
108   </dependencies>
109
110   <build>
111     <resources>
112       <resource>
113         <directory>src/main/resources</directory>
114         <filtering>true</filtering>
115       </resource>
116       <resource>
117         <directory>src/main/java</directory>
118         <includes>
119           <include>**/*.java</include>
120         </includes>
121       </resource>
122     </resources>
123
124     <plugins>
125       <plugin>
126         <groupId>org.apache.felix</groupId>
127         <artifactId>maven-bundle-plugin</artifactId>
128         <extensions>true</extensions>
129         <configuration>
130           <instructions>
131             <Bundle-SymbolicName>appc-common</Bundle-SymbolicName>
132             <Export-Package>
133               org.openecomp.appc.*, com.att.eelf.*, ch.qos.logback.*, org.jasypt.*
134             </Export-Package>
135             <Import-Package>*;resolution:=optional</Import-Package>
136             <Embed-Dependency>eelf-core, logback-core, logback-classic, jasypt</Embed-Dependency>
137             <Embed-Transitive>true</Embed-Transitive>
138           </instructions>
139         </configuration>
140       </plugin>
141
142       <plugin>
143         <groupId>com.att.eelf</groupId>
144         <artifactId>eelf-maven-plugin</artifactId>
145         <version>1.0.0</version>
146         <executions>
147           <execution>
148             <id>validation</id>
149             <phase>install</phase>
150             <goals>
151               <goal>ValidateApplicationMsgs</goal>
152             </goals>
153             <configuration>
154               <resources>
155                 <resource>
156                   <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
157                 </resource>
158               </resources>
159             </configuration>
160           </execution>
161           <execution>
162             <id>generate</id>
163             <phase>install</phase>
164             <goals>
165               <goal>WikiMsgGenerator</goal>
166             </goals>
167             <configuration>
168               <outputDirectory>target/messages</outputDirectory>
169               <outputFile>messages.html</outputFile>
170               <resources>
171                 <resource>
172                   <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
173                   <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>]]></header>
174                 </resource>
175               </resources>
176             </configuration>
177           </execution>
178         </executions>
179         <dependencies>
180           <dependency>
181             <groupId>org.openecomp.appc</groupId>
182             <artifactId>appc-common</artifactId>
183             <version>${project.version}</version>
184           </dependency>
185         </dependencies>
186       </plugin>
187
188       <!-- For embedding dependencies -->
189
190       <plugin>
191           <groupId>org.apache.maven.plugins</groupId>
192           <artifactId>maven-assembly-plugin</artifactId>
193           <configuration>
194               <descriptorRefs>
195                   <descriptorRef>jar-with-dependencies</descriptorRef>
196               </descriptorRefs>
197           </configuration>
198           <executions>
199             <execution>
200               <id>make-assembly</id>
201               <phase>package</phase>
202               <goals>
203                   <goal>single</goal>
204               </goals>
205             </execution>
206           </executions>
207       </plugin>
208
209     <plugin>
210         <groupId>org.apache.maven.plugins</groupId>
211         <artifactId>maven-shade-plugin</artifactId>
212         <executions>
213           <execution>
214             <phase>install</phase>
215             <goals>
216               <goal>shade</goal>
217             </goals>
218             <configuration>
219               <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
220               <artifactSet>
221                 <excludes>
222                   <exclude>junit:junit</exclude>
223                   <exclude>ch.qos.logback:*</exclude>
224                   <exclude>org.slf4j:slf4j-api</exclude>
225                 </excludes>
226               </artifactSet>
227             </configuration>
228           </execution>
229         </executions>
230       </plugin>
231
232     </plugins>
233   </build>
234 </project>