Hi Juan,
I’m not sure if this is recommended or not, but an option I’m using at the moment that works quite well is to use the maven-shade-plugin to create an uber jar
that contains all the classes of the dependencies of my provider jar. This makes it easy during the development stage because I can just deploy a single jar file. Maybe later I’ll look into splitting jars out into separate modules.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
Cheers,
Anthony
From: keycloak-user-bounces@lists.jboss.org [mailto:keycloak-user-bounces@lists.jboss.org]
On Behalf Of Juan Diego
Sent: Friday, 22 April 2016 5:46 AM
To: keycloak-user
Subject: [keycloak-user] Adding libraries from my provider
Is there a recommended way to add a custom library to a provider or should I just added as a module in my wildfly?
Thanks