Increase sonar coverage for common
[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.1.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.onap.ccsdk.sli.core</groupId>
97           <artifactId>dblib-provider</artifactId>
98       </dependency>
99       <dependency>
100           <groupId>org.powermock</groupId>
101           <artifactId>powermock-reflect</artifactId>
102       </dependency>
103       <dependency>
104           <groupId>org.powermock</groupId>
105           <artifactId>powermock-module-junit4</artifactId>
106       </dependency>
107       <dependency>
108           <groupId>org.powermock</groupId>
109           <artifactId>powermock-api-mockito</artifactId>
110       </dependency>
111
112   </dependencies>
113
114   <build>
115     <resources>
116       <resource>
117         <directory>src/main/resources</directory>
118         <filtering>true</filtering>
119       </resource>
120       <resource>
121         <directory>src/main/java</directory>
122         <includes>
123           <include>**/*.java</include>
124         </includes>
125       </resource>
126     </resources>
127
128     <plugins>
129       <plugin>
130         <groupId>org.apache.felix</groupId>
131         <artifactId>maven-bundle-plugin</artifactId>
132         <extensions>true</extensions>
133         <configuration>
134           <instructions>
135             <Bundle-SymbolicName>appc-common</Bundle-SymbolicName>
136             <Export-Package>
137               org.openecomp.appc.*, com.att.eelf.*, ch.qos.logback.*, org.jasypt.*
138             </Export-Package>
139             <Import-Package>*;resolution:=optional</Import-Package>
140             <Embed-Dependency>eelf-core, logback-core, logback-classic, jasypt</Embed-Dependency>
141             <Embed-Transitive>true</Embed-Transitive>
142           </instructions>
143         </configuration>
144       </plugin>
145
146       <plugin>
147         <groupId>com.att.eelf</groupId>
148         <artifactId>eelf-maven-plugin</artifactId>
149         <version>1.0.0</version>
150         <executions>
151           <execution>
152             <id>validation</id>
153             <phase>install</phase>
154             <goals>
155               <goal>ValidateApplicationMsgs</goal>
156             </goals>
157             <configuration>
158               <resources>
159                 <resource>
160                   <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
161                 </resource>
162               </resources>
163             </configuration>
164           </execution>
165           <execution>
166             <id>generate</id>
167             <phase>install</phase>
168             <goals>
169               <goal>WikiMsgGenerator</goal>
170             </goals>
171             <configuration>
172               <outputDirectory>target/messages</outputDirectory>
173               <outputFile>messages.html</outputFile>
174               <resources>
175                 <resource>
176                   <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
177                   <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>]]></header>
178                 </resource>
179               </resources>
180             </configuration>
181           </execution>
182         </executions>
183         <dependencies>
184           <dependency>
185             <groupId>org.openecomp.appc</groupId>
186             <artifactId>appc-common</artifactId>
187             <version>${project.version}</version>
188           </dependency>
189         </dependencies>
190       </plugin>
191
192       <!-- For embedding dependencies -->
193
194       <plugin>
195           <groupId>org.apache.maven.plugins</groupId>
196           <artifactId>maven-assembly-plugin</artifactId>
197           <configuration>
198               <descriptorRefs>
199                   <descriptorRef>jar-with-dependencies</descriptorRef>
200               </descriptorRefs>
201           </configuration>
202           <executions>
203             <execution>
204               <id>make-assembly</id>
205               <phase>package</phase>
206               <goals>
207                   <goal>single</goal>
208               </goals>
209             </execution>
210           </executions>
211       </plugin>
212
213     <plugin>
214         <groupId>org.apache.maven.plugins</groupId>
215         <artifactId>maven-shade-plugin</artifactId>
216         <executions>
217           <execution>
218             <phase>install</phase>
219             <goals>
220               <goal>shade</goal>
221             </goals>
222             <configuration>
223               <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
224               <artifactSet>
225                 <excludes>
226                   <exclude>junit:junit</exclude>
227                   <exclude>ch.qos.logback:*</exclude>
228                   <exclude>org.slf4j:slf4j-api</exclude>
229                 </excludes>
230               </artifactSet>
231             </configuration>
232           </execution>
233         </executions>
234       </plugin>
235
236     </plugins>
237   </build>
238 </project>