Add shading in android-lib
<groupId>org.openecard.clients</groupId>
<artifactId>android-lib</artifactId>
<name>Android Lib</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <!--
+ <keepDependenciesWithProvidedScope>
+ false
+ </keepDependenciesWithProvidedScope>
+ <promoteTransitiveDependencies>
+ true
+
+ </promoteTransitiveDependencies>
+ -->
+ <artifactSet>
+ <excludes>
+ <exclude>com.github.markusbernhardt</exclude>
+ </excludes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.http</pattern>
+ <shadedPattern>org.openecard.apache.http</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
<!-- TODO: create fat jar without xerces and slf4j -->
+ <dependencies>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>2.12.0</version>
+ </dependency>
- <dependencies>
<!-- Android Activity Stuff / Support Elements -->
<dependency>
<groupId>com.google.android</groupId>
<scope>provided</scope>
</dependency>
+
<dependency>
<groupId>org.openecard.clients</groupId>
<artifactId>mobile-lib</artifactId>
<version>${project.version}</version>
</dependency>
-
<!-- all OeC Android dependencies -->
<dependency>
<groupId>org.openecard.wsdef</groupId>
