1 Reply Latest reply on Feb 1, 2017 10:19 AM by fdlprod

    org.jboss.shrinkwrap.api.exporter.ArchiveExportException: Failed to write asset to output: /WEB-INF/....

    fdlprod

      hi i made 2 configuration with maven jacoco and arquillian for sonar 6.2 and java 8 and it is working on a last project i could not make it work i have this error while packaging archive :

       

      org.jboss.shrinkwrap.api.exporter.ArchiveExportException: Failed to write asset to output:

      Caused by: java.lang.RuntimeException: Could not instrument Asset org.jboss.shrinkwrap.api.asset.ClassLoaderAsset

      Caused by: java.io.IOException: Error while instrumenting class arquillian

      Caused by: java.lang.ArrayIndexOutOfBoundsException: -1

       

      when i launch IT test without covera archive is created so it it the jacoco-maven-plugin the problem, but i don't understand why he try to instrument jboss classes i try in arquillian.xml :

       

      <extension qualifier="jacoco">

           <property name="excludes">org.jboss.*</property>

      </extension>

       

      or in plugin in pom.xml :

       

      <plugin>

                      <groupId>org.jacoco</groupId>

                      <artifactId>jacoco-maven-plugin</artifactId>

                      <version>0.7.8</version>

                     

                       <configuration> 

                          <dumpOnExit>true</dumpOnExit> 

                          <excludes> 

                              <exclude>org.jboss.*</exclude> 

                          </excludes> 

                      </configuration>

       

      but no luck...

      Any idea ? is there a bug in the extension ?

       

      Thank you in advance