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

后端 未结 6 1465
情歌与酒
情歌与酒 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:55

    I need to avoid to include the dependency as a refrenced project, but as a jar. Using Eclipse 4.6 Neon none of the previous solutions work.

    I had disable the Workspace Resolution feature

    click on the project -> Maven -> Disable Workspace Resolution
    

提交回复
热议问题