I am getting Maven error on org.apache.maven.plugins

here is my pom.xml file

<reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.22.0</version>
            </plugin>
        </plugins>
    </reporting>

Pom file is not recognising maven-surefire-report-plugin and giving error. I am working on Maven/JUnit5 project

1 Like

I fixed it . I moved the plugin under build and able to create reports

2 Likes