Maven does not add classpath to Eclipse project

前端 未结 7 2008
旧时难觅i
旧时难觅i 2020-12-15 03:37

I have a maven project, that I\'m working on Eclipse.

I use maven eclipse:eclipse to generate the classpath, but ... it NEVER adds the classpath on the eclipse proj

相关标签:
7条回答
  • 2020-12-15 04:40

    By default the mvn installs are not imported into eclipse automatically. So, after you run mvn install from the command prompt. Run the following command:

    mvn eclipse:eclipse

    This will import all the jars into your eclipse project and will update the classpath as well.

    You need to execute the above command the very first time you add a new dependency to your POM and do an mvn compile or install.

    0 讨论(0)
提交回复
热议问题