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