Hi, Monkia, put simply, this change won't work because it will introduce a license error when we attempt to package DSpace for release. I'll walk you through it:
if you add the ojdbc6 artifact as a dependency for dspace-api, you'll be requiring ALL DSpace users to install a proprietary database driver, one which includes acceptance of a license agreement in order to obtain, and is not distributable. You'll be rendering DSpace useless to anyone who has no interest in using Oracle as a back-end database (at least out of the box, we can always delete the dependency). We'd also inadvertently end up packaging the ojdbc6 driver when we package DSpace for release, which would run afoul of Oracle's licensing terms, and get us in trouble. I suspect the Maven license plugin will catch us before we actually got too far down that road, but, I'd not want to put it to the test. As Helix has pointed out and the docs mention, you need to activate the Oracle profile (mvn -Ddb.name=oracle) in order to get Maven to install the Oracle driver. [1] One easy way to "remember" this is to define a MAVEN_OPTS environment variable. Here's one similar to one I use: MAVEN_OPTS=-Denv=oracle_devspace -Ddb.name=oracle -Xmx512m this also helps you remember to set an env.properties file, if you use them. I have a number of them all configured via various include files, which I source with the following command: source ~/etc/devenv/oracle_devspace cat ~/etc/devenv/oracle_devspace export MAVEN_OPTS="-Denv=oracle_devspace -Ddb.name=oracle -Xmx512m" and of course, you'll need the env.properties file in ~/dspace-src (just copy build.properties and customize to suit) HTH --Hardy [1] https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-Installation ________________________________________ From: Monika C. Mevenkamp [[email protected]] Sent: Tuesday, December 30, 2014 9:33 AM To: [email protected]; [email protected] Tech Subject: Re: [Dspace-tech] upgrading from 1.8 to dspace 3 Helix Good point - but still no inclusion There was no dependency of dspace-api on ojdbc6 After adding + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + </dependency> To dspace-api ’s pom.xml mvn copied the jar into the lib as it should Should I turn this into a mischevious feature report ? Monika ________________ Monika Mevenkamp phone: 609-258-4161 693 Alexander Road, Princeton University, Princeton, NJ 08544 On Dec 30, 2014, at 4:18 AM, helix84 <[email protected]> wrote: > Hi Monika, > > just a guess, but I would try with -Dversion=11.2.0.4.0 > > That's what Maven Central has [1]. I admit it's strange that mvn > install worked with 11.2.0.4. > > [1] http://search.maven.org/#search%7Cga%7C1%7Cojdbc6 > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

