[keycloak-dev] aggregate modules

Stan Silvert ssilvert at redhat.com
Sat Jan 24 07:00:54 EST 2015


On 1/23/2015 5:53 PM, Bill Burke wrote:
> Ran into a wall:
>
> I couldn't have an aggregate module.  service imports didn't seem to
> work so I had to create a dependency for everything within
> jboss-deployment-structure.xml.  I may revisit this as I had a lot of
> errors in my module defintions.
In Brno I can ask David about this.  Can you post your 
jboss-deployment-structure.xml and your aggregate module.xml?
>
> I'm at a wall.  I can't get the JPA connections to find the Hibernate
> provider.  I"m not sure if it can't find persistence.xml or hibernate or
> what.  Tried importing hibernate in various places to no avail.  Error
> Message isn't very helpful either:
>
> javax.persistence.PersistenceException: No Persistence provider for
> EntityManager named keycloak-default
Can you give me a scaled down reproducer for this one?  I can ask around 
and see if anyone knows a solution.
>
> Should we punt on this?  I can't spend much more time on this.
Your analogy is slightly inflated.
>
> On 1/22/2015 3:14 PM, Bill Burke wrote:
>> Hey,
>>
>> I was thinking of having a few aggregate modules instead of having one
>> jboss-deployment-structure.xml that includes everything (50+ modules).
>>
>> keycloak-server - includes base SPIs and keycloak-providers module
>> keycloak-adapter
>> keycloak-providers - includes JPA and infinispan providers by default
>> keycloak-mongo-providers - all stuff that uses mongo
>> keycloak-jpa-providers - all stuff that uses jpa
>> keycloak-infinispan-providers - all stuff that uses infinispan
>> keycloak-social-plugins - all social provider plugins
>>
>> This way, if dependencies need to be added/removed/modified, you don't
>> have to edit the WAR.
>>
>> Sorry I've taken so long...  A lot of distractions this week.
>>
>>



More information about the keycloak-dev mailing list