简体   繁体   English

如何解决无法执行目标org.apache.maven.plugins:maven-resources-plugin

[英]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.

相关问题 Maven:无法执行目标 org.apache.maven.plugins:maven-resources-plugin:2.7:resources - Maven:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources 未能执行目标 org.apache.maven.plugins:maven-resources-plugin:2.5:resources - Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources 无法执行目标org.apache.maven.plugins:maven-resources-plugin:2.7 - failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7 Maven 全新安装:无法执行目标 org.apache.maven.plugins:maven-resources-plugin:3.20。 - Maven clean install: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources 目标org.apache.maven.plugins的执行默认资源:maven-resources-plugin:2.6:resources失败 - Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed 无法读取org.apache.maven.plugins:maven-resources-plugin:jar:3.0.5的工件描述符 - Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.5 无法执行目标org.apache.maven.plugins:maven - Failed to execute goal org.apache.maven.plugins:maven Maven 3:无法执行目标org.apache.maven.plugins:maven-archetype-plugin:2.2:generate - Maven 3: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate Maven 构建错误 - 无法执行目标 org.apache.maven.plugins:maven-assembly-plugin:2.5.5 - Maven build error - Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5 Maven:未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.10.1compile: - Maven: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM