Maven dependency not found

后端 未结 3 424
我寻月下人不归
我寻月下人不归 2020-12-28 16:07

Me and my friend are working on a Java maven project, the setup is identical as we get the project from git. On my setup Maven imports all dependencies correctly but for my

相关标签:
3条回答
  • 2020-12-28 16:47

    I think the problem is not IntelliJ, I think maven can not download the dependencies, so you can try to force the dependencies download with the following command:

    mvn clean install -U
    
    0 讨论(0)
  • 2020-12-28 16:50

    if all needed maven jars have been downloaded ,

    try update the local repository manually in setting---maven---repositories.

    0 讨论(0)
  • 2020-12-28 17:01

    You could do try with the following solutions:

    1.Check if your friend is using any proxy, if so add the proxy settings in the settings.xml of maven folder.

    <proxies>
            <proxy>
                <id>optional</id>
                <active>true</active>
                <protocol>http</protocol>
                <host>somthing.com</host>
                <port>portnumber</port>
            </proxy>
    
        </proxies>
    
    1. update maven and then check with latest version whether you are able to download.
    2. you could manually download jars and then update the repository settings in settings.xml
    0 讨论(0)
提交回复
热议问题