Hi, On 22/11/12 01:55, Richard Jones wrote: > The issue, though, seems to be with the transitive > dependencies - they are not being pulled into either the offline lib > or the webapps, which is baffling me. Not least because it works fine > in my dev environment, but not in the live environment.
I've run into this as well but have no idea why it's happening or what to do about it. I added my dependency to the dspace-api pom (1.8.2) so that it gets pulled into [dspace]/lib and also into the lib dirs of the web applications. Dependencies of my artifact don't get pulled into [dspace]/lib nor into eg [dspace]/webapps/xmlui/WEB-INF/lib, just like for Richard. At least for me this behaviour is consistent between machines... I'm running mvn package in [dspace-src] not [dspace-src/dspace] in case that makes any difference. Maven version is 2.2.1. I tried deleting my ~/.m2/repository directory, then rebuilding. Same result. The effective pom lists my dependency but not its transitive dependencies. Similarly, mvn dependency:tree never shows the transitive deps. mvn dependency:tree -X says that my custom project's dependency on dspace-api is found (and removed because it would add a cycle), but the additional dependencies are never even listed. The dspace-api dependency is listed first in my project's pom. Might this be a problem? In case anyone wants to have a look, my custom project's pom currently looks like https://github.com/lconz-irr/Curation-Tasks/blob/db268653eb5fa75f2277264bb9d3b1afdea68d73/pom.xml but without the repositories section. The dependency that currently isn't pulled in is <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.3.4</version> </dependency> but I've had the same problem with commons-exec as well. mvn dependency:resolve in that project finds the itextpdf dependency just fine. If anyone has any ideas for what else I could try to diagnose this, I'd be happy to hear about them... cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel
