maven “cannot find symbol” message unhelpful

后端 未结 15 1797
挽巷
挽巷 2020-11-28 12:11

This is a really simple question, and it\'s probably a setting somewhere I don\'t know about, but Google is being particularly unhelpful for this question, giving results ab

相关标签:
15条回答
  • 2020-11-28 13:15

    if you are having dependency on some other project in work space and these projects are not build properly, such error might come. try building such dependent projects first, it may help

    0 讨论(0)
  • 2020-11-28 13:16

    This occurs because of this issue also i.e repackaging which you defined in POM file.

    Remove this from pom file under maven plugin. It will work

    <executions>
        <execution>
            <goals>
                 <goal>repackage</goal>
            </goals>
        </execution>
    </executions>
    
    0 讨论(0)
  • 2020-11-28 13:17

    I was getting a similar problem in Eclipse STS when trying to run a Maven install on a project. I had changed some versions in the dependencies of my pom.xml file for that project and the projects that those dependencies pointed to. I solved it by running a Maven install on all the projects I changed and then running install on the original one again.

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