Merged lite into full

Change-Id: I8e496cebcfa91de5077bc938ec00617136037e22
diff --git a/full/pom.xml b/full/pom.xml
index b57cb4a..a1ff3cb 100644
--- a/full/pom.xml
+++ b/full/pom.xml
@@ -49,19 +49,14 @@
 											</resource>
 										</transformer>
 									</transformers>
-									<!-- Additional configuration. apparently there is a securityException -->
 									<filters>
-										<filter>
-											<artifact>*:*</artifact>
-											<excludes>
-												<exclude>META-INF/*.SF</exclude>
-												<exclude>META-INF/*.DSA
-												</exclude>
-												<exclude>META-INF/*.RSA
-												</exclude>
-											</excludes>
-										</filter>
-									</filters>
+							          <filter>
+							            <artifact>*:*</artifact>
+							            <excludes>
+							              <exclude>db/lite/**</exclude>
+							            </excludes>
+							          </filter>
+							        </filters>
 								</configuration>
 							</execution>
 						</executions>
@@ -69,6 +64,70 @@
 				</plugins>
 			</build>
 		</profile>
+		
+		
+		<profile>
+			<id>lite</id>
+			<build>
+				<plugins>
+					<plugin>
+						<artifactId>maven-shade-plugin</artifactId>
+							<version>3.4.1</version>
+							<executions>
+								<!--option 2-->
+								<execution>
+									<id>lite</id>
+									<phase>package</phase>
+									<goals>
+										<goal>shade</goal>
+									</goals>
+									<configuration>
+										<finalName>
+											Kustvakt-lite-${project.version}
+										</finalName>
+										<transformers>
+											<transformer
+												implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+												<mainClass>
+													de.ids_mannheim.korap.server.KustvaktLiteServer
+												</mainClass>
+											</transformer>
+											<transformer
+												implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+												<resource>META-INF/spring.handlers
+												</resource>
+											</transformer>
+											<transformer
+												implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+												<resource>META-INF/spring.schemas
+												</resource>
+											</transformer>
+										</transformers>
+										<filters>
+								          <filter>
+								            <artifact>*:*</artifact>
+								             <excludes>
+												<exclude>db/mysql/**</exclude>
+												<exclude>db/predefined/**</exclude>
+												<exclude>db/sqlite/**</exclude>
+												<exclude>db/test/**</exclude>
+					                            <exclude>com.novell.ldap</exclude>
+					                            <exclude>com.unboundid</exclude>
+					                            <exclude>org.glassfish.jersey.test-framework*</exclude>
+					                            <exclude>org.apache.velocity*</exclude>
+					                            <exclude>com.sun.mail</exclude>
+					                            <exclude>javax.activation</exclude>
+					                        </excludes>
+								          </filter>
+								        </filters>
+									</configuration>
+								</execution>
+							</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+
 	</profiles>
 	<build>
 		<!-- <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering>