diff --git a/.gitignore b/.gitignore
index 03ebdad..8ff347c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,12 +11,13 @@
# Maven
target/
+dependency-reduced-pom.xml
# TestNG
test-output/
-# JBoss AS
-transaction.log
+# Misc
+*.log
# Floobits configuration
.floo*
diff --git a/README.asciidoc b/README.asciidoc
index 00001b8..3636713 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -1,4 +1,6 @@
image:https://travis-ci.org/arquillian/arquillian-extension-jacoco.svg?branch=master["Build Status", link="https://travis-ci.org/arquillian/arquillian-extension-jacoco"]
+image:https://img.shields.io/maven-central/v/org.jboss.arquillian.extension/arquillian-jacoco["Maven Central", link="https://maven-badges.herokuapp.com/maven-central/org.jboss.arquillian.extension/arquillian-jacoco"]
+
== Arquillian Jacoco Extension
@@ -6,7 +8,7 @@ Automagic Remote InContainer Codecoverage
=== Usage
-==== Maven pom.xml
+==== Maven default setup
Add the following to your pom.xml:
@@ -17,8 +19,8 @@ Set the versions to use:
----
...
- 0.8.2
- 1.0.0.Final-SNAPSHOT
+ 0.8.3
+ 1.0.0
...
----
@@ -77,6 +79,49 @@ Activate this profile on command line by using the -P flag:
mvn test -Pjacoco
----
+Please note that `prepare-agent` will set a property that is picked up by `maven-surefire-plugin` by default
+(see https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html[documentation]).
+
+==== Maven setup with shaded ASM and jacoco-core
+
+JaCoCo requires ASM to work properly. Since ASM is also used by many other libraries like Apache CXF, you might run into version conflicts. +
+E.g. JBoss EAP 6.4 ships CXF 2.7 which requires ASM 3 but JaCoCo requires ASM 7+.
+
+As a workaround, this extension provides an alternate `with-asm` flavour that includes "private" ASM and JaCoCo packages, shaded via `maven-shade-plugin`.
+
+You only need a single dependency for this setup:
+[source, xml]
+----
+...
+
+
+ org.jboss.arquillian.extension
+ arquillian-jacoco-with-asm
+ ${version.arquillian_jacoco}
+ test
+
+
+----
+
+Please note the absence of the `jacoco-core` dependency.
+
+==== (Optional) arquillian.xml
+
+This extension can by configured via `arquillian.xml`, e.g.:
+
+[source, xml]
+----
+...
+
+ org.foo.*; org.bar.*
+ org.bar.baz.*
+ true
+
+----
+
+`appendAsmLibrary` will deploy the ASM library (which is used by JaCoCo) to the server. Defaults to `true`. +
+This can be set to `false` in case the container already provides a suitable version of ASM. +
+In case the `with-asm` flavour is used this property _must_ be set to `true`.
==== Sonar
diff --git a/arquillian-jacoco-with-asm/pom.xml b/arquillian-jacoco-with-asm/pom.xml
new file mode 100644
index 0000000..798035d
--- /dev/null
+++ b/arquillian-jacoco-with-asm/pom.xml
@@ -0,0 +1,87 @@
+
+
+
+
+
+ org.jboss.arquillian.extension
+ arquillian-jacoco-parent
+ 1.0.1-SNAPSHOT
+ ../pom.xml
+
+
+ 4.0.0
+
+ arquillian-jacoco-with-asm
+ Arquillian Extension Jacoco with ASM
+ Jacoco integration to add code coverage to Arquillian, with relocated ASM and JaCoCo
+
+
+
+
+ org.jboss.arquillian.extension
+ arquillian-jacoco
+ ${project.version}
+
+
+
+ org.jacoco
+ org.jacoco.core
+ compile
+
+
+
+
+
+
+ maven-shade-plugin
+ ${version.maven-shade-plugin}
+
+
+ shade
+
+ shade
+
+
+
+
+ org.objectweb.asm
+ org.jboss.arquillian.extension.jacoco.org.objectweb.asm
+
+
+ org.jacoco
+ org.jboss.arquillian.extension.jacoco.org.jacoco
+
+
+
+
+ org.ow2.asm:*
+ org.jacoco:*
+ org.jboss.arquillian.extension:*
+
+
+
+
+
+
+ *:*
+
+ module-info.class
+ META-INF/MANIFEST.MF
+ META-INF/*.SF
+ META-INF/*.DSA
+ META-INF/*.RSA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/arquillian-jacoco/pom.xml b/arquillian-jacoco/pom.xml
new file mode 100644
index 0000000..2d5f2a5
--- /dev/null
+++ b/arquillian-jacoco/pom.xml
@@ -0,0 +1,224 @@
+
+
+
+
+
+ org.jboss.arquillian.extension
+ arquillian-jacoco-parent
+ 1.0.1-SNAPSHOT
+ ../pom.xml
+
+
+ 4.0.0
+
+ arquillian-jacoco
+ Arquillian Extension Jacoco
+ Jacoco integration to add code coverage to Arquillian
+
+
+
+
+
+
+
+
+ org.jboss.arquillian.junit
+ arquillian-junit-container
+ test
+
+
+ org.jboss.arquillian.protocol
+ arquillian-protocol-servlet
+ test
+
+
+ org.jboss.shrinkwrap.resolver
+ shrinkwrap-resolver-depchain
+ pom
+ test
+
+
+
+ junit
+ junit
+ test
+
+
+
+ javax.enterprise
+ cdi-api
+ ${version.cdi-api}
+ test
+
+
+ org.jboss.spec.javax.ejb
+ jboss-ejb-api_3.2_spec
+ ${version.ejb3}
+ test
+
+
+ org.mockito
+ mockito-all
+ ${version.mockito}
+ test
+
+
+ org.assertj
+ assertj-core
+ ${version.assertj}
+ test
+
+
+ org.ow2.asm
+ asm-util
+ ${version.asm-util}
+ test
+
+
+
+
+
+ unit
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ org/jboss/arquillian/extension/jacoco/test/unit/*
+
+
+
+
+
+
+
+ managed
+
+ true
+
+
+
+ org.wildfly.arquillian
+ wildfly-arquillian-container-managed
+ ${version.wildfly.arquillian}
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+
+
+ unpack
+ process-test-classes
+
+ unpack
+
+
+ ${maven.test.skip}
+
+
+ org.wildfly
+ wildfly-dist
+ ${version.wildfly}
+ zip
+ false
+ ${project.build.directory}
+
+
+
+
+
+
+
+
+
+
+ remote
+
+
+ org.wildfly.arquillian
+ wildfly-arquillian-container-remote
+ ${version.wildfly.arquillian}
+ test
+
+
+
+
+ integration
+
+ true
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${version.jacoco}
+
+
+
+ prepare-agent
+
+
+
+ report
+ prepare-package
+
+ report
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ true
+
+
+
+ integration-tests
+ test
+
+ test
+
+
+
+ ${wildfly_home}
+
+ false
+
+ org/jboss/arquillian/extension/jacoco/test/unit/*
+ org/jboss/arquillian/extension/jacoco/test/integration/*
+
+
+
+
+
+ verify-output-tests
+ test
+
+ test
+
+
+ false
+
+ org/jboss/arquillian/extension/jacoco/test/verify/*
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/CoverageDataCommand.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/CoverageDataCommand.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/CoverageDataCommand.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/CoverageDataCommand.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/CoverageDataReceiver.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/CoverageDataReceiver.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/CoverageDataReceiver.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/CoverageDataReceiver.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoApplicationArchiveProcessor.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoApplicationArchiveProcessor.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoApplicationArchiveProcessor.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoApplicationArchiveProcessor.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoArchiveAppender.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoArchiveAppender.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoArchiveAppender.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoArchiveAppender.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoExtension.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoExtension.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoExtension.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/JaCoCoExtension.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfiguration.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfiguration.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfiguration.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfiguration.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfigurator.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfigurator.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfigurator.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/configuration/JaCoCoConfigurator.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/AndFilter.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/AndFilter.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/AndFilter.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/AndFilter.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/FilterComposer.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/FilterComposer.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/FilterComposer.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/FilterComposer.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/OrFilter.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/OrFilter.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/OrFilter.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/filter/OrFilter.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ArchiveInstrumenter.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ArchiveInstrumenter.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ArchiveInstrumenter.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ArchiveInstrumenter.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/InstrumentedAsset.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/InstrumentedAsset.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/InstrumentedAsset.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/InstrumentedAsset.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ManifestAsset.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ManifestAsset.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ManifestAsset.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/ManifestAsset.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/SignatureRemover.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/SignatureRemover.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/SignatureRemover.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/client/instrumentation/SignatureRemover.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/container/ArquillianRuntime.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/ArquillianRuntime.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/container/ArquillianRuntime.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/ArquillianRuntime.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/container/JacocoRemoteExtension.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/JacocoRemoteExtension.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/container/JacocoRemoteExtension.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/JacocoRemoteExtension.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/container/ShutdownCoverageData.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/ShutdownCoverageData.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/container/ShutdownCoverageData.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/ShutdownCoverageData.java
diff --git a/src/main/java/org/jboss/arquillian/extension/jacoco/container/StartCoverageData.java b/arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/StartCoverageData.java
similarity index 100%
rename from src/main/java/org/jboss/arquillian/extension/jacoco/container/StartCoverageData.java
rename to arquillian-jacoco/src/main/java/org/jboss/arquillian/extension/jacoco/container/StartCoverageData.java
diff --git a/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/arquillian-jacoco/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
similarity index 100%
rename from src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
rename to arquillian-jacoco/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/ImplicitNoCoverageBean.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/ImplicitNoCoverageBean.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/ImplicitNoCoverageBean.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/ImplicitNoCoverageBean.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/excluded/ExplicitNoCoverageBean.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/excluded/ExplicitNoCoverageBean.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/excluded/ExplicitNoCoverageBean.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/excluded/ExplicitNoCoverageBean.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/CoverageBean.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/CoverageBean.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/included/CoverageBean.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/CoverageBean.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/ImportedSubArchive.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/ImportedSubArchive.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/included/ImportedSubArchive.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/ImportedSubArchive.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/SubCoverageBean.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/SubCoverageBean.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/included/SubCoverageBean.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/included/SubCoverageBean.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/ImportedSubArchiveTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/ImportedSubArchiveTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/ImportedSubArchiveTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/ImportedSubArchiveTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/IncludeExcludeTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/IncludeExcludeTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/IncludeExcludeTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/IncludeExcludeTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/JaCoCoIntegrationTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/JaCoCoIntegrationTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/JaCoCoIntegrationTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/JaCoCoIntegrationTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/SubArchiveTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/SubArchiveTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/SubArchiveTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/integration/SubArchiveTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveComposedFilterTest.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveComposedFilterTest.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveComposedFilterTest.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveComposedFilterTest.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveInstrumenterTest.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveInstrumenterTest.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveInstrumenterTest.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/ArchiveInstrumenterTest.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/AuxiliaryArchiveAppenderTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/AuxiliaryArchiveAppenderTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/AuxiliaryArchiveAppenderTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/AuxiliaryArchiveAppenderTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/CoverageDataTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/CoverageDataTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/CoverageDataTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/CoverageDataTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterComposerTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterComposerTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterComposerTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterComposerTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterTestUtils.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterTestUtils.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterTestUtils.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/FilterTestUtils.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/InstrumentTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/InstrumentTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/InstrumentTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/unit/InstrumentTestCase.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/CoverageChecker.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/CoverageChecker.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/CoverageChecker.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/CoverageChecker.java
diff --git a/src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/VerifyIntegrationCoverageTestCase.java b/arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/VerifyIntegrationCoverageTestCase.java
similarity index 100%
rename from src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/VerifyIntegrationCoverageTestCase.java
rename to arquillian-jacoco/src/test/java/org/jboss/arquillian/extension/jacoco/test/verify/VerifyIntegrationCoverageTestCase.java
diff --git a/src/test/resources/arquillian.xml b/arquillian-jacoco/src/test/resources/arquillian.xml
similarity index 100%
rename from src/test/resources/arquillian.xml
rename to arquillian-jacoco/src/test/resources/arquillian.xml
diff --git a/src/test/resources/signed.jar b/arquillian-jacoco/src/test/resources/signed.jar
similarity index 100%
rename from src/test/resources/signed.jar
rename to arquillian-jacoco/src/test/resources/signed.jar
diff --git a/pom.xml b/pom.xml
index 2f7a0d2..8c065c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,9 +12,10 @@
4.0.0
org.jboss.arquillian.extension
- arquillian-jacoco
+ arquillian-jacoco-parent
1.0.1-SNAPSHOT
- Arquillian Extension Jacoco
+ pom
+ Arquillian Extension Jacoco Parent
Jacoco integration to add code coverage to Arquillian
@@ -31,6 +32,8 @@
1.10.19
2.6.0
+ 3.2.2
+
1.5
@@ -67,10 +70,17 @@
pom
import
+
+ org.jacoco
+ org.jacoco.core
+ ${version.jacoco}
+
+
org.jboss.arquillian.container
@@ -91,210 +101,14 @@
org.jacoco
org.jacoco.core
- ${version.jacoco}
provided
-
-
-
- org.jboss.arquillian.junit
- arquillian-junit-container
- test
-
-
- org.jboss.arquillian.protocol
- arquillian-protocol-servlet
- test
-
-
- org.jboss.shrinkwrap.resolver
- shrinkwrap-resolver-depchain
- pom
- test
-
-
-
- junit
- junit
- test
-
-
-
- javax.enterprise
- cdi-api
- ${version.cdi-api}
- test
-
-
- org.jboss.spec.javax.ejb
- jboss-ejb-api_3.2_spec
- ${version.ejb3}
- test
-
-
- org.mockito
- mockito-all
- ${version.mockito}
- test
-
-
- org.assertj
- assertj-core
- ${version.assertj}
- test
-
-
- org.ow2.asm
- asm-util
- ${version.asm-util}
- test
-
-
-
- unit
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
- org/jboss/arquillian/extension/jacoco/test/unit/*
-
-
-
-
-
-
-
- managed
-
- true
-
-
-
- org.wildfly.arquillian
- wildfly-arquillian-container-managed
- ${version.wildfly.arquillian}
- test
-
-
-
-
-
- org.apache.maven.plugins
- maven-dependency-plugin
-
-
- unpack
- process-test-classes
-
- unpack
-
-
-
-
- org.wildfly
- wildfly-dist
- ${version.wildfly}
- zip
- false
- ${project.build.directory}
-
-
-
-
-
-
-
-
-
-
- remote
-
-
- org.wildfly.arquillian
- wildfly-arquillian-container-remote
- ${version.wildfly.arquillian}
- test
-
-
-
-
- integration
-
- true
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
- ${version.jacoco}
-
-
-
- prepare-agent
-
-
-
- report
- prepare-package
-
- report
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
- integration-tests
- test
-
- test
-
-
-
- ${wildfly_home}
-
- false
-
- org/jboss/arquillian/extension/jacoco/test/unit/*
- org/jboss/arquillian/extension/jacoco/test/integration/*
-
-
-
-
-
- verify-output-tests
- test
-
- test
-
-
- false
-
- org/jboss/arquillian/extension/jacoco/test/verify/*
-
-
-
-
-
-
-
-
-
+
+ arquillian-jacoco
+ arquillian-jacoco-with-asm
+
clean verify