Maven Build failure - ojdbc dependency resolution problem

763 views
Skip to first unread message

Berkoff, Alexis (Alex) Contractor, Advanced Onion

unread,
May 23, 2013, 7:53:38 PM5/23/13
to kc.techni...@kuali.org

Hi all –

 

I’m following the instructions as indicated here –

https://wiki.kuali.org/display/KRADOC/KC+Customization

 

I’ve successfully completed the maven build in my local Windows development environment, etc..

I’ve generated our institutional WAR Overlay successfully, etc…

Declaring victory, I moved my focus on replicating this effort on our development instance server.

 

So, this is where the problem occurs –

I attempt to execute the same process as outlined in those instructions on our Linux Redhat Development Server it fails.

 

Specifically it fails when I execute the following command  for the kc_project –

 

$ mvn generate-sources

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Kuali Coeus 5.1.0

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 4.170s

[INFO] Finished at: Thu May 23 16:03:23 PDT 2013

[INFO] Final Memory: 14M/209M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project kc_project: Could not resolve dependencies for project org.kuali.kra:kc_project:war:5.1.0: Failure to find com.oracle:ojdbc14:jar:10.2.0.3.0 in http://nexus.nps.edu/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[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

$

 

As mentioned before, this same command (mvn generate-sources) works when I execute it in my local windows environment!

 

I checked our NPS nexus server and sure enough, a jar file for ojdbc14-10.2.0.3.0.jar does NOT exist, but I do have an MD5 and SHA1 checksum for that jar located there.

The Kuali nexus server is a spitting image of our institution’s nexus server, so I’m assuming everything is good there.

 

Therefore, I’m guessing that this is most likely a path issue, but I’m not certain…

 

I’m hoping someone in the community ran into this problem before and could offer some quick advice.

 

Thanks in advance.

 

Alex

 

Alex M Berkoff

Naval Postgraduate School

ITACS / Enterprise Information Systems

Junior Kuali Java Developer (Contractor, Advanced Onion)

Office: 831-656-6252

Email: ambe...@nps.edu

Mohammed Kousheh

unread,
May 23, 2013, 8:18:58 PM5/23/13
to Berkoff, Alexis (Alex) Contractor, Advanced Onion, kc.techni...@kuali.org
You need to install oracle driver from oracle website then install it into your m2 repo. 

Thanks,
Mohammed
------------------------
Sent from my iPhone

Ken Geis

unread,
May 23, 2013, 8:20:46 PM5/23/13
to Berkoff, Alexis (Alex) Contractor, Advanced Onion, kc.techni...@kuali.org
The licensing terms on the Oracle JDBC driver are such that it should (generally) not be made available on a Maven repository server.

http://www.oracle.com/technetwork/licenses/distribution-license-152002.html

Therefore, each developer should download the driver and install it in his or her local Maven repository.

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Ken

Adam Myatt

unread,
May 23, 2013, 8:29:32 PM5/23/13
to Berkoff, Alexis (Alex) Contractor, Advanced Onion, kc.techni...@kuali.org
Alex,
 
These are some Oracle-specific instructions : http://www.mkyong.com/maven/how-to-add-oracle-jdbc-driver-in-your-maven-local-repository/ You just need to tailor the command line to ojdbc14 and oracle version 10.2.0.3.0
 
Regards,
 
Adam Myatt
Moderas

Berkoff, Alexis (Alex) Contractor, Advanced Onion

unread,
May 24, 2013, 1:44:17 PM5/24/13
to Adam Myatt, kg...@berkeley.edu, mkou...@kuali.org, kc.techni...@kuali.org

Thank you Adam, Ken and Mohammed for your advice.

 

That fixed the problem!

 

Best regards,

 

Alex

Reply all
Reply to author
Forward
0 new messages