Hi,
I'm not an OpenJPA expert, but can it be the case that all OpenJPA classes
needed by
Syncope that are included in openjpa-2.2.2.jar are also included in
{openjpa-kernel-2.2.2.jar, openjpa-jdbc-2.2.2.jar, openjpa-lib-2.2.2.jar,
openjpa-persistence-2.2.2.jar, openjpa-persistence-jdbc-2.2.2.jar}?
When I remove the dependency to org.apache.openjpa:openjpa in core/pom.xml, the
build is still successful.
The new war file does not contain openjpa-2.2.2.jar and stax-api-1.0-2.jar
anymore. Otherwise it seems to be identical.
stax-api-1.0.2.jar is a dependency of openjpa-2.2.2.jar but also seems to be
unnecessary, as these classes seem to be included
in xml-apis-1.4.01.jar.
Removing the dependency reduces the war file size by 4 MB.
Maybe there is a relation to https://issues.apache.org/jira/browse/SYNCOPE-85 ?
If this is a valid possible improvement, I can open a JIRA issue.
Cheers,
Guido