I'm trying to build a project from a POM file using the command:
mvn clean install
But I keep getting this error:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.3:run (execution: build, phase: compile)
It seems Eclipse does not have a plugin for Ant in its app store. How can I resolve this?
Here is the plugin section of my pom.xml file in question:
<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <executions>
        <execution>
            <id>build</id>
            <phase>compile</phase>
            <goals>
                <goal>run</goal>
            </goals>
            <configuration>
                <tasks>
                    <!-- Use exec instead of ant as src/ant/.ant.properties needs to be read in -->
                    <exec executable="ant" osfamily="unix" dir="${basedir}/src" failonerror="true">
                        <arg line="jar" />
                    </exec>
                    <exec executable="cmd" osfamily="windows" dir="${basedir}/src" failonerror="true">
                        <arg value="/c" />
                        <arg value="ant.bat" />
                        <arg line="jar" />
                    </exec>
                </tasks>
            </configuration>
        </execution>
    </executions>
</plugin>
 
     
    