views:

1096

answers:

2

I have the Maven plugin for NetBeans and it successfully set up a local repository for me. Now I need to add a 3rd party library (specifically Oracle JDBC driver) to my repository. The build fails with instructions on how to install a third party module but it doesn't look like I can run that command with the NetBeans Maven plugin. Is this possible, or do I need to just get the external version of Maven?

+1  A: 

I ended up downloading Maven here: http://maven.apache.org/download.html and using the standalone Maven binaries to install the jar into my Maven repository. If anyone has any thoughts on the question, I am still interested in knowing the answer.

Sam Hoice
+2  A: 

What you could do (at least in NetBeans 6.5) is following:

  • add dependency to the library in your pom
  • go to Projects->your project->Libraries (you should see the library with exclamation mark)
  • right click on the library, choose 'Manually install artifact'
  • select the jar from local drive, 'Install locally' and you are done!
Gennady Shumakher