Maven无法识别标签:'执行'

lev*_*ver 7 tags execution pom.xml maven

问题很简单.我<executions></executions>在我的pom.xml中添加了标签,但是我收到了以下错误:

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: MyProject
POM Location: MyPOM

Reason: Parse error reading POM. Reason: Unrecognised tag: 'executions' (position: START_TAG seen ...</version>  \t\n\t\t\t\t\t\t    <executions>... @2014:23)
for project MyProject
Run Code Online (Sandbox Code Playgroud)

可能是由我使用的Maven版本引起的?我的Maven版本是2.1.0.我找不到"执行"标签的实施时间.没有"执行"标签,一切都很好,我尝试了一些来自网络的代码示例,但也没有用.有任何想法吗?

ame*_*een 9

   <executions> tag must be within the <build> </build> section 
Run Code Online (Sandbox Code Playgroud)

如果您的插件不在主构建部分内,请将其移动到那里.