title: maven surefire test failed after upgrade to JDK 8
body: <p>I have multi module projects. All my tests were passed under JDK 7. But when I upgraded to JDK 8, the maven surefire run twice (it run twices in JDK 7 as well). The first test passed but the second one failed.</p>
  
  <p>I have tried upgrade the the latest sure-fire but no luck.</p>
  
  <p>Does any one know how to solve this issue?</p>
  
  <p><strong>parent.pom</strong>
  </p>
  
  <pre><code>    &lt;pluginManagement&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.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;fork&gt;true&lt;/fork&gt;
                  &lt;source&gt;${source.level}&lt;/source&gt;
                  &lt;target&gt;${target.level}&lt;/target&gt;
                  &lt;testSource&gt;${source.level}&lt;/testSource&gt;
                  &lt;testTarget&gt;${target.level}&lt;/testTarget&gt;
                  &lt;showWarnings&gt;true&lt;/showWarnings&gt;
                  &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;argLine&gt;-Xms512m -Xmx1024m
                      &lt;/argLine&gt;
  
              &lt;/configuration&gt;
          &lt;/plugin&gt;
              &lt;!--This plugin's configuration is used to store Eclipse m2e settings 
                  only. It has no influence on the Maven build itself. --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                  &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;lifecycleMappingMetadata&gt;
                          &lt;pluginExecutions&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;
                                          org.apache.maven.plugins
                                      &lt;/groupId&gt;
                                      &lt;artifactId&gt;
                                          maven-antrun-plugin
                                      &lt;/artifactId&gt;
                                      &lt;versionRange&gt;
                                          [1.3,)
                                      &lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;run&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;ignore&gt;&lt;/ignore&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                          &lt;/pluginExecutions&gt;
                      &lt;/lifecycleMappingMetadata&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p><strong>module 1</strong></p>
  
  <pre><code>&lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;!--This plugin's configuration is used to store Eclipse m2e settings 
                  only. It has no influence on the Maven build itself. --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                  &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;lifecycleMappingMetadata&gt;
                          &lt;pluginExecutions&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                      &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
                                      &lt;versionRange&gt;[1.0,)&lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;run&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;execute /&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                          &lt;/pluginExecutions&gt;
                      &lt;/lifecycleMappingMetadata&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.8&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generate-sources&lt;/id&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;tasks&gt;
                              &lt;mkdir dir="target/generated-sources" /&gt;
  
                              &lt;exec executable="${protoc.executable}"&gt;
                                  &lt;arg value="--java_out=target/generated-sources" /&gt;
                                  &lt;arg value="--proto_path=${basedir}/../messdefn/" /&gt;
                                  &lt;arg value="${basedir}/../messdefn/messdefn.proto" /&gt;
                              &lt;/exec&gt;
                          &lt;/tasks&gt;
                          &lt;sourceRoot&gt;target/generated-sources&lt;/sourceRoot&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.maven.surefire&lt;/groupId&gt;
                      &lt;artifactId&gt;surefire-junit47&lt;/artifactId&gt;
                      &lt;version&gt;2.12.3&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
              &lt;configuration&gt;
  
                  &lt;excludedGroups&gt;com.company.test.IntegrationTest&lt;/excludedGroups&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.9.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;add-source&lt;/id&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;add-source&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;sources&gt;
                              &lt;source&gt;${project.build.directory}/generated-sources&lt;/source&gt;
                          &lt;/sources&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;testResources&gt;
          &lt;testResource&gt;
              &lt;directory&gt;src/test/resources&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;log4j.xml&lt;/include&gt;
                  &lt;include&gt;dnp3_devices.ns&lt;/include&gt;
                  &lt;include&gt;application.properties&lt;/include&gt;
                  &lt;include&gt;unitils.properties&lt;/include&gt;
                  &lt;include&gt;dbscripts/*.sql&lt;/include&gt;
                  &lt;include&gt;applicationContext-test.xml&lt;/include&gt;
                  &lt;include&gt;ehcache.xml&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/testResource&gt;
          &lt;testResource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;log4j.xml&lt;/exclude&gt;
              &lt;/excludes&gt;
          &lt;/testResource&gt;
          &lt;!-- add the data file (*.xml) for unitils --&gt;
          &lt;testResource&gt;
              &lt;directory&gt;${project.basedir}/src/test/java&lt;/directory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;**/*.java&lt;/exclude&gt;
              &lt;/excludes&gt;
          &lt;/testResource&gt;
      &lt;/testResources&gt;
  &lt;/build&gt;
  
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;jenkins&lt;/id&gt;
          &lt;activation&gt;
              &lt;property&gt;
                  &lt;name&gt;env.IS_CI_BUILD&lt;/name&gt;
              &lt;/property&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.5.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;instrumentation&gt;
                              &lt;ignores&gt;
                                  &lt;ignore&gt;com.company.protobuf.message.*&lt;/ignore&gt;
                              &lt;/ignores&gt;
                              &lt;excludes&gt;
                                  &lt;exclude&gt;com/company/protobuf/message/**/*.class&lt;/exclude&gt;
                              &lt;/excludes&gt;
                          &lt;/instrumentation&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
  
                          &lt;includes&gt;
                              &lt;include&gt;**/*Test.java&lt;/include&gt;
                              &lt;include&gt;**/*ITCase.java&lt;/include&gt;
                          &lt;/includes&gt;
                          &lt;excludedGroups&gt;com.company.core.IgnoreITCase&lt;/excludedGroups&gt;
                          &lt;systemProperties&gt;
                              &lt;DB_BUILD_USER&gt;${env.DB_BUILD_USER}&lt;/DB_BUILD_USER&gt;
                              &lt;TWO_TASK&gt;${env.TWO_TASK}&lt;/TWO_TASK&gt;
                          &lt;/systemProperties&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;integration-test&lt;/id&gt;
                              &lt;phase&gt;integration-test&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;test&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  </code></pre>
  
  <p>and here is the maven result</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] Reactor Build Order:
  [INFO] 
  [INFO] top-level Maven project
  [INFO] core Java library
  [INFO] web application (presentation)
  
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building NS top-level Maven project 1.0-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building NS core Java library 1.0-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ns-core ---
  [INFO] Deleting /home/bli/ns/tun-0018-New/BASE_STATION/java/target
  [INFO] 
  [INFO] --- maven-antrun-plugin:1.8:run (generate-sources) @ ns-core ---
  [INFO] Executing tasks
  
  main:
      [mkdir] Created dir: /home/bli/ns/tun-0018-New/BASE_STATION/java/target/generated-sources
  [INFO] Executed tasks
  [INFO] Registering compile source root /home/bli/ns/tun-0018-New/BASE_STATION/java/target/generated-sources
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ ns-core ---
  [INFO] Source directory: /home/bli/ns/tun-0018-New/BASE_STATION/java/target/generated-sources added.
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ns-core ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 5 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ ns-core ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 335 source files to /home/bli/ns/tun-0018-New/BASE_STATION/java/target/classes
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ns-core ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 5 resources
  [INFO] Copying 5 resources
  [INFO] Copying 2 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ ns-core ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 43 source files to /home/bli/ns/tun-0018-New/BASE_STATION/java/target/test-classes
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ ns-core ---
  [INFO] Surefire report directory: /home/bli/ns/tun-0018-New/BASE_STATION/java/target/surefire-reports
  [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
  [INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true
  
  -------------------------------------------------------
   T E S T S
  -------------------------------------------------------
  Running com.company.core.shared.dto.MeterReadingPpDtoTest
  Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.company.core.shared.dto.MeterReadingPpDtoTest
  Running com.company.core.shared.db.DbUtilsTest
  Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.company.core.shared.db.DbUtilsTest
  Running com.company.core.shared.SinglePhaseMeterReadingDtoTest
  Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.083 sec - in com.company.core.shared.SinglePhaseMeterReadingDtoTest
  Running com.company.core.shared.utils.EnvironmentTest
  Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in com.company.core.shared.utils.EnvironmentTest
  Running com.company.core.shared.utils.DateUtilsTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in com.company.core.shared.utils.DateUtilsTest
  Running com.company.core.shared.utils.NsPropertyFileTest
  Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in com.company.core.shared.utils.NsPropertyFileTest
  Running com.company.core.shared.utils.ConversionsTest
  Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.shared.utils.ConversionsTest
  Running com.company.core.shared.utils.NsConfigurationTest
  Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in com.company.core.shared.utils.NsConfigurationTest
  Running com.company.core.springutil.tunPropertyPlaceholderConfigurerTest
  Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.258 sec - in com.company.core.springutil.tunPropertyPlaceholderConfigurerTest
  Running com.company.core.springutil.tunApplicationContextTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in com.company.core.springutil.tunApplicationContextTest
  Running com.company.core.springutil.ApplicationContextProviderTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.034 sec - in com.company.core.springutil.ApplicationContextProviderTest
  Running com.company.core.common.dao.NetworkDeviceDaoTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 sec - in com.company.core.common.dao.NetworkDeviceDaoTest
  Running com.company.core.common.dao.dto.CategorySelectListEntryDtoTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.common.dao.dto.CategorySelectListEntryDtoTest
  Running com.company.core.common.dao.model.ErtDeviceTest
  Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in com.company.core.common.dao.model.ErtDeviceTest
  Running com.company.core.common.dao.model.MeterDeviceTest
  Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in com.company.core.common.dao.model.MeterDeviceTest
  Running com.company.core.common.dao.model.ErtReadingTest
  Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec - in com.company.core.common.dao.model.ErtReadingTest
  Running com.company.core.common.dao.model.ProductTest
  Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec - in com.company.core.common.dao.model.ProductTest
  Running com.company.core.common.dao.impl.jdbc.SystemCodeDaoJdbcTest
  Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.323 sec - in com.company.core.common.dao.impl.jdbc.SystemCodeDaoJdbcTest
  Running com.company.core.common.hibernate.type.UtcTimestampTypeTest
  Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in com.company.core.common.hibernate.type.UtcTimestampTypeTest
  Running com.company.core.common.service.impl.NetworkUserServiceImplTest
  Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in com.company.core.common.service.impl.NetworkUserServiceImplTest
  Running com.company.core.common.model.StatusInfoTest
  Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.company.core.common.model.StatusInfoTest
  Running com.company.core.common.UtilsTest
  Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in com.company.core.common.UtilsTest
  Running com.company.core.meter.configuration.service.impl.ErtDeviceConfigurationServiceImplTest
  Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec - in com.company.core.meter.configuration.service.impl.ErtDeviceConfigurationServiceImplTest
  Running com.company.core.meter.configuration.service.impl.MeterConfigurationServiceImplTest
  Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in com.company.core.meter.configuration.service.impl.MeterConfigurationServiceImplTest
  Running com.company.core.meter.reading.dao.tunMeterReadingDaoTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in com.company.core.meter.reading.dao.tunMeterReadingDaoTest
  Running com.company.core.meter.reading.dao.hibernate.InitiateReadingDaoHibernateTest
  Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.396 sec - in com.company.core.meter.reading.dao.hibernate.InitiateReadingDaoHibernateTest
  Running com.company.core.meter.reading.dao.jdbc.DeviceReadingDaoJdbcTest
  Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.112 sec - in com.company.core.meter.reading.dao.jdbc.DeviceReadingDaoJdbcTest
  Running com.company.core.meter.request.impl.InitiateReadingServiceImplTest
  Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in com.company.core.meter.request.impl.InitiateReadingServiceImplTest
  Running com.company.core.vrapp.model.Dnp3ConfigurationTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in com.company.core.vrapp.model.Dnp3ConfigurationTest
  Running com.company.core.vrapp.model.AverageDemandTest
  Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.vrapp.model.AverageDemandTest
  Running com.company.core.vrapp.model.VrDeviceTest
  Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 sec - in com.company.core.vrapp.model.VrDeviceTest
  Running com.company.core.messaging.rmq.impl.ReflectionTest
  Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.messaging.rmq.impl.ReflectionTest
  Running com.company.core.messaging.rmq.impl.RmqBrokerConfigTest
  Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.messaging.rmq.impl.RmqBrokerConfigTest
  Running com.company.core.messaging.rmq.impl.UtilsTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.messaging.rmq.impl.UtilsTest
  Running com.company.core.messaging.rmq.impl.RmqQueueReaderTest
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.company.core.messaging.rmq.impl.RmqQueueReaderTest
  Running com.company.core.messaging.rmq.message.RefreshMultiSpeakMessageTest
  Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.589 sec - in com.company.core.messaging.rmq.message.RefreshMultiSpeakMessageTest
  Running com.company.core.messaging.rmq.BasicFunctionalityTest
  Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.228 sec - in com.company.core.messaging.rmq.BasicFunctionalityTest
  
  Results :
  
  Tests run: 207, Failures: 0, Errors: 0, Skipped: 0
  
  [INFO] 
  [INFO] &gt;&gt;&gt; cobertura-maven-plugin:2.5.2:cobertura (default) &gt; [cobertura]test @ ns-core &gt;&gt;&gt;
  [INFO] 
  [INFO] --- maven-antrun-plugin:1.8:run (generate-sources) @ ns-core ---
  [INFO] Executing tasks
  
  main:
  [INFO] Executed tasks
  [INFO] Registering compile source root /home/bli/ns/tun-0018-New/BASE_STATION/java/target/generated-sources
  [INFO] 
  [INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ ns-core ---
  [INFO] Source directory: /home/bli/ns/tun-0018-New/BASE_STATION/java/target/generated-sources added.
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ns-core ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 5 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ ns-core ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 335 source files to /home/bli/ns/tun-0018-New/BASE_STATION/java/target/classes
  [INFO] 
  [INFO] --- cobertura-maven-plugin:2.5.2:instrument (default) @ ns-core ---
  [INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
  Instrumenting 481 files to /home/bli/ns/tun-0018-New/BASE_STATION/java/target/generated-classes/cobertura
  [cobertura] WARN  [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.company.core.common.dao.impl.hibernate.ErtReadingDaoHibernate$1.  Perhaps you need to compile with debug=true?
  [cobertura] WARN  [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.company.core.common.dao.impl.jdbc.LicenseDaoJdbc$1.  Perhaps you need to compile with debug=true?
  [cobertura] WARN  [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.company.core.common.dao.impl.jdbc.CategorySelectListDaoJdbc$1.  Perhaps you need to compile with debug=true?
  [cobertura] WARN  [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.company.core.common.dao.impl.jdbc.MeterServiceDaoJdbc$1.  Perhaps you need to compile with debug=true?
  [cobertura] WARN  [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.company.core.meter.reading.dao.jdbc.PolyPhaseMeterReadingDaoJdbc$1.  Perhaps you need to compile with debug=true?
  [cobertura] WARN  [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.company.core.meter.reading.dao.jdbc.SinglePhaseMeterReadingDaoJdbc$1.  Perhaps you need to compile with debug=true?
  Cobertura: Saved information on 481 classes.
  Instrument time: 516ms
  
  [INFO] Instrumentation was successful.
  [INFO] NOT adding cobertura ser file to attached artifacts list.
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ns-core ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 5 resources
  [INFO] Copying 5 resources
  [INFO] Copying 2 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ ns-core ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 43 source files to /home/bli/ns/tun-0018-New/BASE_STATION/java/target/test-classes
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ ns-core ---
  [INFO] Surefire report directory: /home/bli/ns/tun-0018-New/BASE_STATION/java/target/surefire-reports
  [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
  [INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true
  
  -------------------------------------------------------
   T E S T S
  -------------------------------------------------------
  
  Results :
  
  Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  
  [INFO] ------------------------------------------------------------------------
  [INFO] Reactor Summary:
  [INFO] 
  [INFO] top-level Maven project ......................... SUCCESS [  0.079 s]
  [INFO] core Java library ............................... FAILURE [ 17.884 s]
  [INFO] web application (presentation) .................. SKIPPED
  
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 18.131 s
  [INFO] Finished at: 2015-01-16T16:01:12-08:00
  [INFO] Final Memory: 21M/363M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project ns-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: There was an error in the forked process
  [ERROR] java.lang.VerifyError: Instruction type does not match stack map
  [ERROR] Exception Details:
  [ERROR] Location:
  [ERROR] com/company/test/BaseDaoIntegrationTest.removeDeviceReadingData(J[I)V @71: iload
  [ERROR] Reason:
  [ERROR] Type integer (current frame, locals[4]) is not assignable to 'java/text/NumberFormat' (stack map, locals[4])
  [ERROR] Current Frame:
  [ERROR] bci: @71
  [ERROR] flags: { }
  [ERROR] locals: { 'com/company/test/BaseDaoIntegrationTest', long, long_2nd, '[I', integer, integer, 'java/text/DecimalFormat', '[Ljava/lang/Object;', integer }
  [ERROR] stack: { }
  [ERROR] Stackmap Frame:
  [ERROR] bci: @71
  [ERROR] flags: { }
  [ERROR] locals: { 'com/company/test/BaseDaoIntegrationTest', long, long_2nd, '[I', 'java/text/NumberFormat', '[Ljava/lang/Object;', integer }
  [ERROR] stack: { }
  [ERROR] Bytecode:
  [ERROR] 0x0000000: 0336 0411 ffff 3605 120b 1100 21b8 0011
  [ERROR] 0x0000010: bb00 5259 1254 b700 573a 0612 0b11 0022
  [ERROR] 0x0000020: b800 112d be04 60bd 0004 3a07 120b 1100
  [ERROR] 0x0000030: 24b8 0011 1907 031f b800 3953 120b 1100
  [ERROR] 0x0000040: 25b8 0011 0436 0815 0819 07be 1100 2536
  [ERROR] 0x0000050: 0411 0000 3605 a200 4615 0411 0025 a000
  [ERROR] 0x0000060: 1a15 0511 0000 a000 1212 0b15 0415 0504
  [ERROR] 0x0000070: b800 5f11 ffff 3605 120b 1100 26b8 0011
  [ERROR] 0x0000080: 1907 1508 2d15 0804 642e b800 3e53 120b
  [ERROR] 0x0000090: 1100 25b8 0011 8408 01a7 ffae 1505 9b00
  [ERROR] 0x00000a0: 1212 0b15 0415 0503 b800 5f11 ffff 3605
  [ERROR] 0x00000b0: 120b 1100 29b8 0011 0336 0815 0810 1011
  [ERROR] 0x00000c0: 0029 3604 1100 0036 05a2 007a 1504 1100
  [ERROR] 0x00000d0: 29a0 001a 1505 1100 00a0 0012 120b 1504
  [ERROR] 0x00000e0: 1505 04b8 005f 11ff ff36 0512 0b11 002a
  [ERROR] 0x00000f0: b800 1119 0615 0885 b600 633a 0912 0b11
  [ERROR] 0x0000100: 002b b800 112a b600 31bb 0065 59b7 0066
  [ERROR] 0x0000110: 1268 b600 6c19 09b6 006c 126e b600 6c2d
  [ERROR] 0x0000120: beb8 0074 b600 6c12 76b6 006c b600 7a19
  [ERROR] 0x0000130: 07b6 0044 5712 0b11 0029 b800 1184 0801
  [ERROR] 0x0000140: a7ff 7b15 059b 0012 120b 1504 1505 03b8
  [ERROR] 0x0000150: 005f 11ff ff36 0512 0b11 002f b800 11b1
  [ERROR] 0x0000160:
  [ERROR] Stackmap Table:
  [ERROR] append_frame(@71,Object[#89],Object[#91],Integer)
  [ERROR] chop_frame(@184,1)
  [ERROR] append_frame(@187,Integer)
  [ERROR] chop_frame(@351,1)
  [ERROR] 
  [ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
  [ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
  [ERROR] at java.lang.Class.privateGetMethodRecursive(Class.java:3040)
  [ERROR] at java.lang.Class.getMethod0(Class.java:3010)
  [ERROR] at java.lang.Class.getMethod(Class.java:1776)
  [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(ReflectionUtils.java:57)
  [ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isSuiteOnly(JUnit3TestChecker.java:64)
  [ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isValidJUnit3Test(JUnit3TestChecker.java:59)
  [ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.accept(JUnit3TestChecker.java:54)
  [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:52)
  [ERROR] at org.apache.maven.surefire.common.junit48.JUnit48TestChecker.accept(JUnit48TestChecker.java:50)
  [ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:97)
  [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.scanClassPath(JUnitCoreProvider.java:210)
  [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
  [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
  [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
  [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
  [ERROR] -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
  [ERROR] 
  [ERROR] After correcting the problems, you can resume the build with the command
  </code></pre>