How to disable pom.xml validation in IntelliJ IDEA

后端 未结 5 1969
感动是毒
感动是毒 2020-12-15 04:23

I\'m using buildnumber-maven-plugin to get Mercurial changeset as project build number:


    org.codehaus.mojo
          


        
5条回答
  •  离开以前
    2020-12-15 04:59

    As it is working fine. I think it would be some cache or may be little bug which has no major effect giving some info. So I want to suggest you some options

    Suggestion-1:

    You can rebuild your project and then check

    Build > Rebuild Project
    

    Suggestion-2:

    You can clear your ide's caches

    1. File -> invalidate caches
    2. Then Restart application

    Suggestion-3:

    Sometimes silly trick may solve the issue.

    1. Right click on the code editor
    2. Hover on Maven and expand
    3. Click on Reimport

    Suggestion-4:

    There are some ways to solve the issue and also discussion what is happening version to version. You can go through

    IntelliJ inspection gives "Cannot resolve symbol" but still compiles code

    Suggestion-5:

    You can make a try Michał Wróbel's blog: Cannot resolve symbol XYZ in IntelliJ although maven builds sources properly

    Suggestion-6:

    You can also disable reading pom.xml on every small changes in IntelliJ Idea: Intellij IDEA and Maven, disable reading pom.xml on every small change, even without a save

提交回复
热议问题