How to import org.apache Java dependencies w/ or w/o Maven

前端 未结 7 1211
南旧
南旧 2020-12-09 11:50

So the quick background is I am creating a java program, that uses many different imports

    import org.apache.hadoop.conf.*;
    import org.apache.hadoop.f         


        
7条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 12:25

    Not a netbeans user , but I'm sure that even in netbeans, you have a maven plugin. "Mavenize" your project, and when you will perform mvn clean install, you will get these jars to local maven repository.
    With Eclipse I use the m2Eclipse plugin and it works really well for me.
    This of course depends that these jars can be found in maven repositories over the net, such as maven central repository.

提交回复
热议问题