问一个maven项目下的tomcat的问题

   为什么我往pom文件里边一加下面这段代码    tomcat就会卡在

log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

<build>                                                     
    <resources>                                             
        <resource>                                          
            <directory>src/main/java</directory>            
            <includes>                                      
                <include>**/*.properties</include>          
                <include>**/*.xml</include>                 
            </includes>                                     
            <filtering>false</filtering>                    
        </resource>                                         
    </resources>                                            
</build>                                                    

如果不添加上面这段代码tomcat是可以跑通的。求解这是为什么???在线等~~~~

谢谢各位大神了!

你先 编译 在clean一下 试试或者 鼠标放在项目上 ----》右击-----》update protect 试试