On 04/10/2013 16:48, Guido Wimmel wrote:
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.

Definitely yes: I cannot think of any single reason why openjpa-2.2.2.jar is included as dependency; please go ahead.

Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to