On Thu, Dec 13, 2012 at 04:46:35AM -0800, mErRYo wrote: > I am using dspace 3.0 release and my maven build is failing when i try to run > this command > mvn -Ddb.name=oracle package > > I am using oracle 11g XE with oracle Linux and maven is 3.x > > > error it throws is : > Failed to execute goal on project additions: Could not resolve dependencies > for project org.dspace.modules:additions:jar:3.0: Failure to find > com.oracle:ojdbc6:jar:11.2.0.2 in > http://oss.sonatype.org/content/repositories/releases/ was cached in the > local repository, resolution will not be reattempted until the update > interval of sonatype-releases has elapsed or updates are forced
Oracle does not post JARs to Maven Central (or any other
Maven-compatible archive that I know of) so Maven can't get it for
you automagically. You need to collect this one from Oracle's web
site (after agreeing to their license) and put a copy in your local
repository manually. It appears that this has not yet been done.
If it were me, once I had the JAR (let's say it is
ojdbc6-11.2.0.2.0.jar) I'd use a command like this:
mvn install:install-file \
-DgroupId=com.oracle \
-DartifactId=ojdbc6 \
-Dversion=11.2.0.2 \
-Dfile=ojdbc6-11.2.0.2.0.jar
In fact it appears that I did, once upon a time. But I hardly ever
have to do this, and thus don't remember it very well, so the command
may need some adjustment.
--
Mark H. Wood, Lead System Programmer [email protected]
There's an app for that: your browser
pgpLaR47DzXZl.pgp
Description: PGP signature
------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________ 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

