[英]How to resolve Failed to execute goal org.apache.maven.plugins:maven-resources-plugin
I am trying to run the code but I have been experienceing this below error.. 我正在尝试运行代码,但遇到以下错误。
Using JBOSS 4.0.5 server, Netbeans 7 使用JBOSS 4.0.5服务器,Netbeans 7
could anyone please help me resolve this issue? 谁能帮我解决这个问题?
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project plant: Error loading property file 'C:\Documents and Settings\xxxxx\My Documents\NetBeansProjects\plant\src\main\filters\${env}.properties' -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
the unresolved reference in the path you have there: 您在其中存在的路径中未解析的引用:
src\main\filters\${env}.properties
suggests that the maven project requires the property "env" to be set to something, possibly a *.properties file name. 建议maven项目要求将属性“ env”设置为某种值,可能是* .properties文件名。 since youre not providing/setting this property it is left as-is and your project fails to find a file called 由于您不提供/设置此属性,因此将其保留不变,并且您的项目无法找到名为
${env}.properties
if youre running maven from the command line you can set the property same as any java property: 如果您从命令行运行maven,则可以将属性设置为与任何java属性相同:
mvn [your normal maven arguments] -Denv=something
if youre running it from any IDE im sure there's a way to provide the properties as well. 如果您从任何IDE运行它,则肯定有一种提供属性的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.