How do I install modules into the maven repository using Netbeans embedded Maven?

后端 未结 2 1054
别跟我提以往
别跟我提以往 2020-12-18 23:05

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 repo

2条回答
  •  眼角桃花
    2020-12-18 23:31

    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!

提交回复
热议问题