Search code examples
javamavenmaven-pluginenunciate

Enunciate Reporting - Error The 'assemble' goal requires 'war' packaging


I am getting the error while running the below command while generating enunciate report

mvn clean pre-site site:site site:stage -PskipQuality -DskipTests=true -U

My pom.xml's enunciate plugin configuration below

<plugin>
    <groupId>org.codehaus.enunciate</groupId>
    <artifactId>maven-enunciate-plugin</artifactId>
    <version>1.27</version>
    <executions>
    <execution>
        <goals>
            <goal>assemble</goal>
        </goals>
    </execution>
    </executions>
</plugin>

Error - 'assemble' goal requires 'war' packaging


Solution

  • After adding the below configuration under executing tag, the error stopped coming.

    <configuration>
    <forceWarPackaging>false</forceWarPackaging>
    </configuration>