Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:exploded (default-cli) on proje

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:exploded (default-cli) on project store: Failed to copy file for artifact

En algunas ocasiones cuando convertimos un proyecto Web, podemos encontrar el error al ejecutarlo

Se muestra el error

Exploding webapp

Assembling webapp [store] in [/home/avbravo/NetBeansProjects/sc/store/target/store]

Processing war project

Copying webapp resources [/home/avbravo/NetBeansProjects/sc/store/src/main/webapp]

BUILD FAILURE

Total time: 3.253 s

Finished at: 2018-08-07T12:14:56-05:00

Final Memory: 26M/377M

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:exploded (default-cli) on project store: Failed to copy file for artifact [com.avbravo:storeejb:jar:18.08.1:compile]: /home/avbravo/NetBeansProjects/sc/storeejb/target/classes (Es un directorio) -

>

[Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.

Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:

[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Editamos el archivo pom.xml

y cambiamos

 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <inherited>true</inherited>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>

por

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <inherited>true</inherited>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>

Otra sugerencia

  • quitar las dependencias y volver a agregarlas

  • quitar la dependencia avbravoutils

  • borrarlas del repositorio local en maven .m2 y construir el proyecto con dependencias para que lo baje nuevamente

Last updated