Details

    • Similar Issues:

      Description

      I have a Java 7 project I am trying to port to Java 8.
      Everything else is working fine except maven tests, which result in zero coverage when project source/target is 1.8. Upon inspecting the resulting jacoco.exec it appears to be intact and showing executed classes properly.

      I don't see any jacoco related errors in the build log and build is successful with both java versions.

      I'm using jenkins 1.560, jacoco-maven-plugin 0.7.0.201403182114, jenkins jacoco plugin 1.0.14.

      I don't know if this is an issue with jacoco-maven-plugin or if it's actually a problem with maven-compiler-plugin or aspectj-maven-plugin.
      The only differences between Java 7 and 8 in my pom.xml are related to maven-compiler-plugin and aspectj-maven-plugin:

      <properties>
      		<jdk.version>1.7</jdk.version>
      </properties>
      
      			<plugin>
      				<groupId>org.apache.maven.plugins</groupId>
      				<artifactId>maven-compiler-plugin</artifactId>
      				<configuration>
      					<source>${jdk.version}</source>
      					<target>${jdk.version}</target>
      					<showDeprecation>false</showDeprecation>
      				</configuration>
      			</plugin>
      
      <groupId>org.codehaus.mojo</groupId>
      					<artifactId>aspectj-maven-plugin</artifactId>
      					<version>1.6</version>
      					<configuration>
      						<showWeaveInfo>true</showWeaveInfo>
      						<source>${jdk.version}</source>
      						<target>${jdk.version}</target>
      						<Xlint>ignore</Xlint>
      						<complianceLevel>${jdk.version}</complianceLevel>
      
      

        Attachments

          Activity

          risto_oikarinen Risto Oikarinen created issue -
          risto_oikarinen Risto Oikarinen made changes -
          Field Original Value New Value
          Description I have a Java 7 project I am trying to port to Java 8.
          Everything else is working fine except maven tests, which result in zero coverage when project source/target is 1.8. Upon inspecting the resulting jacoco.exec it appears to be intact and showing executed classes properly.

          I don't know if this is an issue with jacoco-maven-plugin or if it's actually a problem with maven-compiler-plugin or aspectj-maven-plugin.
          The only differences between Java 7 and 8 in my pom.xml are related to maven-compiler-plugin and aspectj-maven-plugin:

          {code}
          <properties>
          <jdk.version>1.7</jdk.version>
          </properties>
          {code}

          {code}
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <showDeprecation>false</showDeprecation>
          </configuration>
          </plugin>
          {code}

          {code}
          groupId>org.codehaus.mojo</groupId>
          <artifactId>aspectj-maven-plugin</artifactId>
          <version>1.6</version>
          <configuration>
          <showWeaveInfo>true</showWeaveInfo>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <Xlint>ignore</Xlint>
          <complianceLevel>${jdk.version}</complianceLevel>

          {code}
          I have a Java 7 project I am trying to port to Java 8.
          Everything else is working fine except maven tests, which result in zero coverage when project source/target is 1.8. Upon inspecting the resulting jacoco.exec it appears to be intact and showing executed classes properly.

          I don't see any jacoco related errors in the build log and build is successful with both java versions.

          I'm using jenkins 1.560, jacoco-maven-plugin 0.7.0.201403182114, jenkins jacoco plugin 1.0.14.

          I don't know if this is an issue with jacoco-maven-plugin or if it's actually a problem with maven-compiler-plugin or aspectj-maven-plugin.
          The only differences between Java 7 and 8 in my pom.xml are related to maven-compiler-plugin and aspectj-maven-plugin:

          {code}
          <properties>
          <jdk.version>1.7</jdk.version>
          </properties>
          {code}

          {code}
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <showDeprecation>false</showDeprecation>
          </configuration>
          </plugin>
          {code}

          {code}
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>aspectj-maven-plugin</artifactId>
          <version>1.6</version>
          <configuration>
          <showWeaveInfo>true</showWeaveInfo>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <Xlint>ignore</Xlint>
          <complianceLevel>${jdk.version}</complianceLevel>

          {code}
          risto_oikarinen Risto Oikarinen made changes -
          Description I have a Java 7 project I am trying to port to Java 8.
          Everything else is working fine except maven tests, which result in zero coverage when project source/target is 1.8. Upon inspecting the resulting jacoco.exec it appears to be intact and showing executed classes properly.

          I don't see any jacoco related errors in the build log and build is successful with both java versions.

          I'm using jenkins 1.560, jacoco-maven-plugin 0.7.0.201403182114, jenkins jacoco plugin 1.0.14.

          I don't know if this is an issue with jacoco-maven-plugin or if it's actually a problem with maven-compiler-plugin or aspectj-maven-plugin.
          The only differences between Java 7 and 8 in my pom.xml are related to maven-compiler-plugin and aspectj-maven-plugin:

          {code}
          <properties>
          <jdk.version>1.7</jdk.version>
          </properties>
          {code}

          {code}
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <showDeprecation>false</showDeprecation>
          </configuration>
          </plugin>
          {code}

          {code}
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>aspectj-maven-plugin</artifactId>
          <version>1.6</version>
          <configuration>
          <showWeaveInfo>true</showWeaveInfo>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <Xlint>ignore</Xlint>
          <complianceLevel>${jdk.version}</complianceLevel>

          {code}
          I have a Java 7 project I am trying to port to Java 8.
          Everything else is working fine except maven tests, which result in zero coverage when project source/target is 1.8. Upon inspecting the resulting jacoco.exec it appears to be intact and showing executed classes properly.

          I don't see any jacoco related errors in the build log and build is successful with both java versions.

          I'm using jenkins 1.560, jacoco-maven-plugin 0.7.0.201403182114, jenkins jacoco plugin 1.0.14.

          I don't know if this is an issue with jacoco-maven-plugin or if it's actually a problem with maven-compiler-plugin or aspectj-maven-plugin.
          The only differences between Java 7 and 8 in my pom.xml are related to maven-compiler-plugin and aspectj-maven-plugin:


          {code}
          <properties>
          <jdk.version>1.7</jdk.version>
          </properties>
          {code}

          {code}
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <showDeprecation>false</showDeprecation>
          </configuration>
          </plugin>
          {code}

          {code}
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>aspectj-maven-plugin</artifactId>
          <version>1.6</version>
          <configuration>
          <showWeaveInfo>true</showWeaveInfo>
          <source>${jdk.version}</source>
          <target>${jdk.version}</target>
          <Xlint>ignore</Xlint>
          <complianceLevel>${jdk.version}</complianceLevel>

          {code}
          chrisspelberg Chris lutje Spelberg made changes -
          Labels java8
          centic centic made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Ognjen Bubalo [ ognjenb ] centic [ centic ]
          Resolution Fixed [ 1 ]
          mheinzerling Martin Heinzerling made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154828 ] JNJira + In-Review [ 207639 ]

            People

            • Assignee:
              centic centic
              Reporter:
              risto_oikarinen Risto Oikarinen
            • Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: