> For the complete documentation index, see [llms.txt](https://avbravo-2.gitbook.io/trucosjakartaee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://avbravo-2.gitbook.io/trucosjakartaee/overview/java-8/maven/failed-to-execute-goal-orgapachemavenpluginsmaven-war-plugin23exploded-default-cli-on-project-store.md).

# 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

![](https://2578941663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6ze2c8GK7mFBZX%2F-Lc1WjGeqF4Ig-44ZLgX%2F-Lc1X8gUJ6UvsP8gYSLu%2Ferror.png?generation=1554820669451299\&alt=media)

### 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

```java
 <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

```java
<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
