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