zoukankan      html  css  js  c++  java
  • How to add “Maven Managed Dependencies” library in build path eclipse?

    I have created a maven project and I want to add all maven dependencies in build path of the project in eclipse. When I go to Java Build Path > Add Library ... > Maven Managed Dependency > Next in property dialog of the project, it asks me to Use "Maven Project Setting" to configure Maven dependency resolution.

    My simple question here is how to add maven dependencies in current build path.

    from the command line type:

    mvn eclipse:eclipse

    this will add all the dependencies you have in your pom.xml into eclipse...

    however, if you haven't done any of this before you may need to do one other, one time only step.

    Close eclipse, then run the following command from the shell:

    mvn -Declipse.workspace=<eclipse workspace> eclipse:add-maven-repo

    sample:

    mvn -Declipse.workspace=/home/ft/workspaces/wksp1/ eclipse:add-maven-repo
  • 相关阅读:
    有用工具
    Questions
    Verizon Wireless 4G LTE DROID
    测试的几点心得
    推荐书
    工作总结
    电脑故障排查检修积累
    Windows 8 下如何安装Framework 3.5
    空间域名的选择项
    自动化research
  • 原文地址:https://www.cnblogs.com/shaman/p/2943905.html
Copyright © 2011-2022 走看看