[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17467414#comment-17467414 ] Tibor Digana commented on SUREFIRE-1738: It was not problem with Beanshell or -Djavadoc.skip -Danimal.sniffer.skip=true -Djacoco.skip=true or -Xdoclint:none or other conspiracy theory with ** MAVEN_OPTS. > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Labels: waiting-for-feedback > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17467413#comment-17467413 ] Tibor Digana commented on SUREFIRE-1738: [~akomakom] We know about this. The jacoco processes the test classes. The first run of mvn install is okay but you have to clean the target folders like this mvn -nsu clean install. > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Labels: waiting-for-feedback > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17467182#comment-17467182 ] Slawomir Jaranowski commented on SUREFIRE-1738: --- beanshell script was removed from project after switch to jdk 1.8 - please try with current master version > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17458732#comment-17458732 ] Slawomir Jaranowski commented on SUREFIRE-1738: --- Do you have some think like: {code} Beanshell found jdkHome=/usr/. Beanshell found jdk-release properties file=true Beanshell found java version for tests 1.8.0_312 {code} on console message before error? > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17458706#comment-17458706 ] Akom commented on SUREFIRE-1738: Current hash ( 9ffd9ae9d049f1ed73db18f97dbcf47ecc319fda ) compiles under specific conditions. I need to set MAVEN_OPTS per [https://github.com/apache/maven-surefire#development-information] {code:bash} export MAVEN_OPTS="-server -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true -Dhttps.protocols=TLSv1.2" {code} And use JDK: Oracle 1.8.0_231 Does not compile with OpenJDK 1.8.0_292 : {noformat} ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:3.2.0:bsh-property (bsh-property) on project surefire: error during Beanshell script execution: Sourced file: inline evaluation of: ``jdkHome = session.getUserProperties().getProperty("jdkHome", project.getProperti . . . '' : Object constructor: /usr/lib/jvm/java-8-openjdk-amd64/release (No such file or directory) -> [Help 1] {noformat} > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17458699#comment-17458699 ] Slawomir Jaranowski commented on SUREFIRE-1738: --- Is it still occurs with current master branch? > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (SUREFIRE-1738) Unable to compile maven-surefire-plugin
[ https://issues.apache.org/jira/browse/SUREFIRE-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17085876#comment-17085876 ] Akom commented on SUREFIRE-1738: I was more-or-less able to run maven on the project by: * Setting MAVEN_OPTS as per [https://github.com/apache/maven-surefire#development-information] * Running with JDK 1.8 and Maven 3.6.1 * Modifying compiler args in all poms with *-Xdoclint:none* Command Line was: {{ mvn install -Djavadoc.skip -Danimal.sniffer.skip=true -Djacoco.skip=true}} I say "more-or-less" because I had to turn off a bunch of stuff > Unable to compile maven-surefire-plugin > --- > > Key: SUREFIRE-1738 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1738 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin >Affects Versions: 3.0.0-M4 > Environment: JDKs: Zulu 8, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > Maven: 3.2.5, 3.3.5, 3.5.9,3.6.0 > Ubuntu Linux >Reporter: Akom >Priority: Major > Attachments: log.animal.sniffer.txt, log.compile.failure.txt, > log.jacoco.txt > > > I was trying to put together a PR but realized that I can't compile master > even without any of my changes. > I've tried many combinations of : > *JDKs*: {color:#de350b}Zulu 8{color}, Oracle 8, Oracle 7, Oracle 6, Zulu 11. > *Maven*: 3.2.5, 3.3.5, 3.5.9, {color:#de350b}3.6.0{color} > I'm on commit *db16777568e87447813b2ee1b15e9b079211f098* (current master). > *Command*: {color:#0747a6}mvn test [-Danimal.sniffer.skip=true] > [-Djacoco.skip=true]{color} > *Tools used* for logs below: Zulu 8 + Maven 3.6.0 > Errors encountered (separate errors, depending on what is turned off): > # Compilation error in *maven-surefire-common* module. No actual errors are > shown. > # Error in *animal.sniffer* plugin (turned off with > -Danimal.sniffer.skip=true) > # Error in *jacoco* plugin (turned off with -Djacoco.skip=true) > h2. Compilation Error Detail > [^log.compile.failure.txt] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project maven-surefire-common: Compilation failure > h2. Animal Sniffer Error Detail > > [^log.animal.sniffer.txt] > [ERROR] Bad class file > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class > h2. Jacoco Error Detail > [^log.jacoco.txt] > [ERROR] Failed to execute goal > org.jacoco:jacoco-maven-plugin:0.8.5:instrument (jacoco-instrumentation) on > project surefire-extensions-api: Unable to instrument file.: Error while > instrumenting > /home/thisuser/workspace/maven-surefire/surefire-extensions-api/target/classes/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.class. -- This message was sent by Atlassian Jira (v8.3.4#803005)