Code clean-up in ChefAdapterImpl.java
[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         <executions>
139           <execution>
140             <id>validation</id>
141             <phase>install</phase>
142             <goals>
143               <goal>ValidateApplicationMsgs</goal>
144             </goals>
145             <configuration>
146               <resources>
147                 <resource>
148                   <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
149                 </resource>
150               </resources>
151             </configuration>
152           </execution>
153           <execution>
154             <id>generate</id>
155             <phase>install</phase>
156             <goals>
157               <goal>WikiMsgGenerator</goal>
158             </goals>
159             <configuration>
160               <outputDirectory>target/messages</outputDirectory>
161               <outputFile>messages.html</outputFile>
162               <resources>
163                 <resource>
164                   <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
165                   <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>]]></header>
166                 </resource>
167               </resources>
168             </configuration>
169           </execution>
170         </executions>
171         <dependencies>
172           <dependency>
173             <groupId>org.openecomp.appc</groupId>
174             <artifactId>appc-common</artifactId>
175             <version>${project.version}</version>
176           </dependency>
177         </dependencies>
178       </plugin>
179
180       <!-- For embedding dependencies -->
181
182       <plugin>
183           <groupId>org.apache.maven.plugins</groupId>
184           <artifactId>maven-assembly-plugin</artifactId>
185           <configuration>
186               <descriptorRefs>
187                   <descriptorRef>jar-with-dependencies</descriptorRef>
188               </descriptorRefs>
189           </configuration>
190           <executions>
191             <execution>
192               <id>make-assembly</id>
193               <phase>package</phase>
194               <goals>
195                   <goal>single</goal>
196               </goals>
197             </execution>
198           </executions>
199       </plugin>
200
201     <plugin>
202         <groupId>org.apache.maven.plugins</groupId>
203         <artifactId>maven-shade-plugin</artifactId>
204         <executions>
205           <execution>
206             <phase>install</phase>
207             <goals>
208               <goal>shade</goal>
209             </goals>
210             <configuration>
211               <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
212               <artifactSet>
213                 <excludes>
214                   <exclude>junit:junit</exclude>
215                   <exclude>ch.qos.logback:*</exclude>
216                   <exclude>org.slf4j:slf4j-api</exclude>
217                 </excludes>
218               </artifactSet>
219             </configuration>
220           </execution>
221         </executions>
222       </plugin>
223
224     </plugins>
225   </build>
226 </project>