title: can't run maven project, build fail. Advice about Maven
body: <p>i'm new in maven, i have no such time to study it at all.
  i'm so sorry about my generic question.</p>
  
  <p>i was programming my app with MVC JSF JPA and so on. I had problems with testing, i saw something about mocking, but i thing it is good for a team project, where i don't know all about project.</p>
  
  <p>So i was searching something useful as "real case" test... i found arquillian! The faster and easier way to use arquillian is with maven. So i converted my project to a maven project.</p>
  
  <p>i'm using the embedded version in Netbeans. After a clean, when i try to run my app, it return</p>
  
  <pre><code>------------------------------------------------------------------------
  Building myProject 1.0-SNAPSHOT
  ------------------------------------------------------------------------
  
  --- maven-dependency-plugin:2.6:copy (default) @ myProject ---
  
  --- maven-resources-plugin:2.5:resources (default-resources) @ myProject ---
  [debug] execute contextualize
  Using 'UTF-8' encoding to copy filtered resources.
  Copying 2 resources
  
  --- maven-compiler-plugin:3.1:compile (default-compile) @ myProject ---
  Changes detected - recompiling the module!
  Compiling 73 source files to D:\OneDrive\Documenti\NetBeansProjects\myProject\target\classes
  ------------------------------------------------------------------------
  BUILD FAILURE
  ------------------------------------------------------------------------
  Total time: 18.197s
  Finished at: Fri Jun 17 09:32:44 CEST 2016
  Final Memory: 32M/252M
  ------------------------------------------------------------------------
  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project myProject: Fatal error compiling: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file for type model.entities.MultimediaType_ -&gt; [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
  </code></pre>
  
  <p>This is the full stack trace:</p>
  
  <pre><code>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project eWheel: Fatal error compiling
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
      at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:796)
      at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
  Caused by: org.codehaus.plexus.compiler.CompilerException: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file for type model.entities.FeatureType_
      at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:191)
      at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
      at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785)
      ... 22 more
  Caused by: java.lang.RuntimeException: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file for type model.entities.FeatureType_
      at com.sun.tools.javac.main.Main.compile(Main.java:469)
      at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
      at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
      ... 24 more
  Caused by: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file for type model.entities.FeatureType_
      at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:407)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:793)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:722)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1700(JavacProcessingEnvironment.java:97)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1029)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)
      at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1108)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
      at com.sun.tools.javac.main.Main.compile(Main.java:439)
      ... 26 more
  Caused by: javax.annotation.processing.FilerException: Attempt to recreate a file for type model.entities.FeatureType_
      at com.sun.tools.javac.processing.JavacFiler.checkNameAndExistence(JavacFiler.java:522)
      at com.sun.tools.javac.processing.JavacFiler.createSourceOrClassFile(JavacFiler.java:396)
      at com.sun.tools.javac.processing.JavacFiler.createSourceFile(JavacFiler.java:378)
      at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.generateCanonicalModelClass(CanonicalModelProcessor.java:98)
      at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.generateCanonicalModelClasses(CanonicalModelProcessor.java:226)
      at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:403)
      ... 34 more
  
  
  For more information about the errors and possible solutions, please read the following articles:
  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>this is my pom.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.mycompany&lt;/groupId&gt;
      &lt;artifactId&gt;myProject&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;name&gt;myProject&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;endorsed.dir&gt;${project.build.directory}/endorsed&lt;/endorsed.dir&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  
      &lt;!-- clip --&gt;
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.shrinkwrap.resolver&lt;/groupId&gt;
                  &lt;artifactId&gt;shrinkwrap-resolver-bom&lt;/artifactId&gt;
                  &lt;version&gt;2.0.0-alpha-1&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
                  &lt;type&gt;pom&lt;/type&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.arquillian&lt;/groupId&gt;
                  &lt;artifactId&gt;arquillian-bom&lt;/artifactId&gt;
                  &lt;version&gt;1.1.11.Final&lt;/version&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
                  &lt;type&gt;pom&lt;/type&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
      &lt;!-- clip --&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
              &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;
              &lt;version&gt;2.5.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
              &lt;artifactId&gt;org.eclipse.persistence.jpa.modelgen.processor&lt;/artifactId&gt;
              &lt;version&gt;2.5.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax&lt;/groupId&gt;
              &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
              &lt;version&gt;7.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;  
              &lt;groupId&gt;org.primefaces&lt;/groupId&gt;  
              &lt;artifactId&gt;primefaces&lt;/artifactId&gt;  
              &lt;version&gt;6.0&lt;/version&gt;  
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- clip --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.arquillian.junit&lt;/groupId&gt;
              &lt;artifactId&gt;arquillian-junit-container&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- clip --&gt;
          &lt;!-- We also need to configure Maven to run the JPA 2 annotation processor, 
          which is done simply by adding the Hibernate JPA metamodel generator as 
          a compile-only project dependency: --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-jpamodelgen&lt;/artifactId&gt;
              &lt;version&gt;1.2.0.Final&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;!-- Weld EE embedded profile --&gt;
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-weld-ee-embedded&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.Final&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.container&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-weld-ee-embedded-1.1&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.CR3&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.weld&lt;/groupId&gt;
                      &lt;artifactId&gt;weld-core&lt;/artifactId&gt;
                      &lt;version&gt;1.1.5.Final&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
                      &lt;version&gt;1.6.4&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;!-- Weld EE embedded profile --&gt;
          &lt;!-- Glassfish embedded profile --&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-glassfish-embedded&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.container&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-glassfish-embedded-3.1&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.CR3&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.glassfish.main.extras&lt;/groupId&gt;
                      &lt;artifactId&gt;glassfish-embedded-all&lt;/artifactId&gt;
                      &lt;version&gt;3.1.2&lt;/version&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-payara-embedded&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.container&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-glassfish-embedded-3.1&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.CR4&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;fish.payara.extras&lt;/groupId&gt;
                      &lt;artifactId&gt;payara-embedded-all&lt;/artifactId&gt;
                      &lt;version&gt;4.1.1.161&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;!-- Glassfish embedded profile --&gt;
          &lt;!-- JBoss AS profile --&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-jbossas-managed&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.Final&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.as&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-as-arquillian-container-managed&lt;/artifactId&gt;
                      &lt;version&gt;7.1.1.Final&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.protocol&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-protocol-servlet&lt;/artifactId&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;!-- JBoss AS profile --&gt;
          &lt;!-- remote container Boss AS 7.1 --&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-jbossas-remote&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.Final&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.as&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-as-arquillian-container-remote&lt;/artifactId&gt;
                      &lt;version&gt;7.1.1.Final&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.protocol&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-protocol-servlet&lt;/artifactId&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;!-- remote container Boss AS 7.1 --&gt;
          &lt;!-- remote container Glassfish 3.1.2 --&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-glassfish-remote&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.Final&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.weld&lt;/groupId&gt;
                      &lt;artifactId&gt;weld-api&lt;/artifactId&gt;
                      &lt;version&gt;1.1.Final&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.container&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-glassfish-remote-3.1&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.CR3&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;!-- remote container Glassfish 3.1.2 --&gt;
          &lt;!-- remote container Payara --&gt;
          &lt;profile&gt;
              &lt;id&gt;arquillian-payara-remote&lt;/id&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
                      &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.Final&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.weld&lt;/groupId&gt;
                      &lt;artifactId&gt;weld-api&lt;/artifactId&gt;
                      &lt;version&gt;1.1.Final&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.jboss.arquillian.container&lt;/groupId&gt;
                      &lt;artifactId&gt;arquillian-glassfish-remote-3.1&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0.CR4&lt;/version&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;!-- remote container payara--&gt;
      &lt;/profiles&gt;
  
      &lt;!-- clip --&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                      &lt;compilerArguments&gt;
                          &lt;endorseddirs&gt;${endorsed.dir}&lt;/endorseddirs&gt;
                      &lt;/compilerArguments&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;!-- clip --&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.17&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;!-- clip --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;validate&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;copy&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;outputDirectory&gt;${endorsed.dir}&lt;/outputDirectory&gt;
                              &lt;silent&gt;true&lt;/silent&gt;
                              &lt;artifactItems&gt;
                                  &lt;artifactItem&gt;
                                      &lt;groupId&gt;javax&lt;/groupId&gt;
                                      &lt;artifactId&gt;javaee-endorsed-api&lt;/artifactId&gt;
                                      &lt;version&gt;7.0&lt;/version&gt;
                                      &lt;type&gt;jar&lt;/type&gt;
                                  &lt;/artifactItem&gt;
                              &lt;/artifactItems&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>