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

detail trace is:

[ERROR] 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 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: 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
    at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
    at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: 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
    at 
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
    at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
    ... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: 
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
    at 
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
    at 
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
    ... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: 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
    at 
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at 
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at 
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
    ... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: 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
    at 
org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
    at 
org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
    at 
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
    ... 26 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
------------------------------------------------------------------------------
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

Reply via email to