The problem is simple. I added <executions></executions>
tag in my pom.xml, however I got the below error:
[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
May it be caused by the version of Maven that I use? My Maven version is 2.1.0. I couldn't find when "executions" tag have been implemented. Without the "executions" tag everything is OK and I tried a few examples of code from the web but didn't work either. Any ideas?
<executions> tag must be within the <build> </build> section
if your plugin not inside the main build section , move it there.