blob: 7ba1c2a5738091d382cc31d0647f56fe2c087be0 [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<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>
Patrick Brady03682da2017-03-10 13:07:19 -08006 <version>1.1.0-SNAPSHOT</version>
Patrick Bradyc7d00752017-06-01 10:45:37 -07007 </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>
Patrick Brady57b5eef2017-02-10 15:00:49 -080012
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>
Patrick Bradyc7d00752017-06-01 10:45:37 -070086 <dependency>
Patrick Brady76706002017-09-04 21:37:25 -070087 <groupId>org.onap.ccsdk.sli.core</groupId>
Patrick Bradyc7d00752017-06-01 10:45:37 -070088 <artifactId>dblib-provider</artifactId>
89 </dependency>
90 <dependency>
91 <groupId>org.mockito</groupId>
92 <artifactId>mockito-core</artifactId>
93 <scope>test</scope>
94 </dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -080095
96 </dependencies>
97
98 <build>
99 <resources>
100 <resource>
101 <directory>src/main/resources</directory>
102 <filtering>true</filtering>
103 </resource>
104 <resource>
105 <directory>src/main/java</directory>
106 <includes>
107 <include>**/*.java</include>
108 </includes>
109 </resource>
110 </resources>
111
112 <plugins>
113 <plugin>
114 <groupId>org.apache.felix</groupId>
115 <artifactId>maven-bundle-plugin</artifactId>
116 <extensions>true</extensions>
117 <configuration>
118 <instructions>
119 <Bundle-SymbolicName>appc-common</Bundle-SymbolicName>
Patrick Bradyc7d00752017-06-01 10:45:37 -0700120 <Export-Package>
121 org.openecomp.appc.*, com.att.eelf.*, ch.qos.logback.*, org.jasypt.*
122 </Export-Package>
123 <Import-Package>*;resolution:=optional</Import-Package>
124 <Embed-Dependency>eelf-core, logback-core, logback-classic, jasypt</Embed-Dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800125 <Embed-Transitive>true</Embed-Transitive>
126 </instructions>
127 </configuration>
128 </plugin>
129
130 <plugin>
131 <groupId>com.att.eelf</groupId>
132 <artifactId>eelf-maven-plugin</artifactId>
Patrick Brady76706002017-09-04 21:37:25 -0700133 <version>1.0.0</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800134 <executions>
135 <execution>
136 <id>validation</id>
137 <phase>install</phase>
138 <goals>
139 <goal>ValidateApplicationMsgs</goal>
140 </goals>
141 <configuration>
142 <resources>
143 <resource>
144 <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
145 </resource>
146 </resources>
147 </configuration>
148 </execution>
149 <execution>
150 <id>generate</id>
151 <phase>install</phase>
152 <goals>
153 <goal>WikiMsgGenerator</goal>
154 </goals>
155 <configuration>
156 <outputDirectory>target/messages</outputDirectory>
157 <outputFile>messages.html</outputFile>
158 <resources>
159 <resource>
160 <messageClass>org.openecomp.appc.i18n.Msg</messageClass>
161 <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>]]></header>
162 </resource>
163 </resources>
164 </configuration>
165 </execution>
166 </executions>
167 <dependencies>
168 <dependency>
169 <groupId>org.openecomp.appc</groupId>
170 <artifactId>appc-common</artifactId>
171 <version>${project.version}</version>
172 </dependency>
173 </dependencies>
174 </plugin>
175
176 <!-- For embedding dependencies -->
177
178 <plugin>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-assembly-plugin</artifactId>
181 <configuration>
182 <descriptorRefs>
183 <descriptorRef>jar-with-dependencies</descriptorRef>
184 </descriptorRefs>
185 </configuration>
186 <executions>
187 <execution>
188 <id>make-assembly</id>
189 <phase>package</phase>
190 <goals>
191 <goal>single</goal>
192 </goals>
193 </execution>
194 </executions>
195 </plugin>
196
197 <plugin>
198 <groupId>org.apache.maven.plugins</groupId>
199 <artifactId>maven-shade-plugin</artifactId>
200 <executions>
201 <execution>
202 <phase>install</phase>
203 <goals>
204 <goal>shade</goal>
205 </goals>
206 <configuration>
207 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
208 <artifactSet>
209 <excludes>
210 <exclude>junit:junit</exclude>
211 <exclude>ch.qos.logback:*</exclude>
212 <exclude>org.slf4j:slf4j-api</exclude>
213 </excludes>
214 </artifactSet>
215 </configuration>
216 </execution>
217 </executions>
218 </plugin>
219
220 </plugins>
221 </build>
222</project>