Fail maven.plugin

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project 

in pom.xml-->build -->plugins-->add plugin

<build>
<finalName>${project.artifactId}</finalName>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>

<plugin>

Spring load .property file and get

test.property [src/main/resource]
------------
#main
kk=directory/kk
main.wide=this/wide

----------spring

import java.io.InputStream;
import java.util.Properties;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


@Component
@Scope("singleton")
public class PropertiesUtil {
private InputStream input;
private Properties properties ;


public PropertiesUtil() throws Exception{
properties=new Properties();
input = getClass().getClassLoader().getResourceAsStream(
"test.properties");
properties.load(input);
}
public String getProperty(String key){

return properties.getProperty(key);

};

}