How to tell Maven to include the jar dependency, not the subproject source directory in Eclipse?

后端 未结 6 1467
情歌与酒
情歌与酒 2021-02-13 11:11

I use Apache Maven to manage my Java libs (jar) and some of projects that use the libs. For convinience, I use mvn eclipse:eclipse to generate Eclipse project f

6条回答
  •  一生所求
    2021-02-13 11:47

    Just try using the type element inside dependency tag and mention source/jar as the type in your pom.xml

     
    
       namespace.my
       mylib
       [1.0, )
       jar 
      
    

提交回复
热议问题