[ 
https://issues.apache.org/jira/browse/SUREFIRE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Pabst updated SUREFIRE-2149:
------------------------------------
    Description: 
See errors in continuous build since the switch to Maven 3.9.0

{noformat}
Error:  Failures: 
Error:    Surefire772BothReportsIT.testReportGeneration:57 Expecting failsafe 
report file
Error:    Surefire772BothReportsIT.testSkippedSurefireReportGeneration:85 
Expecting failsafe report file
Error:    
Surefire772NoSurefireReportsIT.testOptionalSurefireReportGeneration:75 
Expecting failsafe report file
Error:    Surefire772NoSurefireReportsIT.testReportGeneration:49 Expecting 
failsafe report file
Error:    
Surefire772NoSurefireReportsIT.testSkipOptionalSurefireReportGeneration:88 
Expecting failsafe report file
Error:    Surefire772NoSurefireReportsIT.testSkippedSurefireReportGeneration:62 
Expecting failsafe report file
Error:  Errors: 
Error:    Surefire946KillMainProcessInReusableForkIT.dummyDep:88 » 
SurefireVerifier Exit code was non-zero: 1; command line and log = 
/home/runner/.m2/wrapper/dists/apache-maven-3.9.0-bin/7u41pcsb933vr4m6u83d7ofakm/apache-maven-3.9.0/bin/mvn
 -e --batch-mode -Dmaven.repo.local=/home/runner/.m2/repository 
org.apache.maven.plugins:maven-clean-plugin:clean 
-Dsurefire.version=3.0.0-M10-SNAPSHOT 
-Djacoco.agent=-javaagent:/home/runner/.m2/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/home/runner/work/maven-surefire/maven-surefire/surefire-its/target/jacoco.exec,includes=**/failsafe/*:**/failsafe/**/*:**/surefire/*:**/surefire/**/*,excludes=**/HelpMojo.class:**/shadefire/**/*:org/jacoco/**/*:com/vladium/emma/rt/*
 -nsu install -Ddistinct.classifier=exitexit
{noformat}

h3. Surefire772 ITs:

The reason for these failures is that 
{{org.apache.maven.surefire.its.fixture.MavenLauncher#skipClean}} still uses 
the pre-3.0.0 name of the respective {{maven-clean-plugin}} property.

Before maven-clean-plugin version 3.0.0: {{-Dclean.skip=true}}
Since maven-clean-plugin version 3.0.0: {{-Dmaven.clean.skip=true}}

Maven 3.9.0 uses {{maven-clean-plugin}} in version 3.2 by default. Maven 3.8.x 
still uses version 2.5 by default.

In order to support both versions it might be best to set both properties.

h3. Surefire946 IT:

The log output of the test project says the following:

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-install-plugin:3.1.0:install (default-install) 
on project surefire-946-dummy-dependency: The packaging plugin for this project 
did not assign a main file to the project but it has attachments. Change 
packaging to 'pom'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-install-plugin:3.1.0:install (default-install) 
on project surefire-946-dummy-dependency: The packaging plugin for this project 
did not assign a main file to the project but it has attachments. Change 
packaging to 'pom'.
{noformat}

  was:
See errors in continuous build since the switch to Maven 3.9.0

{noformat}
Error:  Failures: 
Error:    Surefire772BothReportsIT.testReportGeneration:57 Expecting failsafe 
report file
Error:    Surefire772BothReportsIT.testSkippedSurefireReportGeneration:85 
Expecting failsafe report file
Error:    
Surefire772NoSurefireReportsIT.testOptionalSurefireReportGeneration:75 
Expecting failsafe report file
Error:    Surefire772NoSurefireReportsIT.testReportGeneration:49 Expecting 
failsafe report file
Error:    
Surefire772NoSurefireReportsIT.testSkipOptionalSurefireReportGeneration:88 
Expecting failsafe report file
Error:    Surefire772NoSurefireReportsIT.testSkippedSurefireReportGeneration:62 
Expecting failsafe report file
Error:  Errors: 
Error:    Surefire946KillMainProcessInReusableForkIT.dummyDep:88 » 
SurefireVerifier Exit code was non-zero: 1; command line and log = 
/home/runner/.m2/wrapper/dists/apache-maven-3.9.0-bin/7u41pcsb933vr4m6u83d7ofakm/apache-maven-3.9.0/bin/mvn
 -e --batch-mode -Dmaven.repo.local=/home/runner/.m2/repository 
org.apache.maven.plugins:maven-clean-plugin:clean 
-Dsurefire.version=3.0.0-M10-SNAPSHOT 
-Djacoco.agent=-javaagent:/home/runner/.m2/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/home/runner/work/maven-surefire/maven-surefire/surefire-its/target/jacoco.exec,includes=**/failsafe/*:**/failsafe/**/*:**/surefire/*:**/surefire/**/*,excludes=**/HelpMojo.class:**/shadefire/**/*:org/jacoco/**/*:com/vladium/emma/rt/*
 -nsu install -Ddistinct.classifier=exitexit
{noformat}

h3. Surefire772 ITs:

The reason for these failures is that 
{{org.apache.maven.surefire.its.fixture.MavenLauncher#skipClean}} still uses 
the pre-3.0.0 name of the respective {{maven-clean-plugin}} property.

Before maven-clean-plugin version 3.0.0: {{-Dclean.skip=true}}
Since maven-clean-plugin version 3.0.0: {{-Dmaven.clean.skip=true}}

Maven 3.9.0 uses {{maven-clean-plugin}} in version 3.2 by default. Maven 3.8.x 
still uses version 2.5 by default.

In order to support both versions it might be best to set both properties.

h3. Surefire946IT:

The log output of the test project says the following:

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-install-plugin:3.1.0:install (default-install) 
on project surefire-946-dummy-dependency: The packaging plugin for this project 
did not assign a main file to the project but it has attachments. Change 
packaging to 'pom'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-install-plugin:3.1.0:install (default-install) 
on project surefire-946-dummy-dependency: The packaging plugin for this project 
did not assign a main file to the project but it has attachments. Change 
packaging to 'pom'.
{noformat}


> Several ITs fail with Maven 3.9.0
> ---------------------------------
>
>                 Key: SUREFIRE-2149
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2149
>             Project: Maven Surefire
>          Issue Type: Task
>    Affects Versions: 3.0.0-M8
>            Reporter: Andreas Pabst
>            Priority: Major
>              Labels: build, integration-tests
>
> See errors in continuous build since the switch to Maven 3.9.0
> {noformat}
> Error:  Failures: 
> Error:    Surefire772BothReportsIT.testReportGeneration:57 Expecting failsafe 
> report file
> Error:    Surefire772BothReportsIT.testSkippedSurefireReportGeneration:85 
> Expecting failsafe report file
> Error:    
> Surefire772NoSurefireReportsIT.testOptionalSurefireReportGeneration:75 
> Expecting failsafe report file
> Error:    Surefire772NoSurefireReportsIT.testReportGeneration:49 Expecting 
> failsafe report file
> Error:    
> Surefire772NoSurefireReportsIT.testSkipOptionalSurefireReportGeneration:88 
> Expecting failsafe report file
> Error:    
> Surefire772NoSurefireReportsIT.testSkippedSurefireReportGeneration:62 
> Expecting failsafe report file
> Error:  Errors: 
> Error:    Surefire946KillMainProcessInReusableForkIT.dummyDep:88 » 
> SurefireVerifier Exit code was non-zero: 1; command line and log = 
> /home/runner/.m2/wrapper/dists/apache-maven-3.9.0-bin/7u41pcsb933vr4m6u83d7ofakm/apache-maven-3.9.0/bin/mvn
>  -e --batch-mode -Dmaven.repo.local=/home/runner/.m2/repository 
> org.apache.maven.plugins:maven-clean-plugin:clean 
> -Dsurefire.version=3.0.0-M10-SNAPSHOT 
> -Djacoco.agent=-javaagent:/home/runner/.m2/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/home/runner/work/maven-surefire/maven-surefire/surefire-its/target/jacoco.exec,includes=**/failsafe/*:**/failsafe/**/*:**/surefire/*:**/surefire/**/*,excludes=**/HelpMojo.class:**/shadefire/**/*:org/jacoco/**/*:com/vladium/emma/rt/*
>  -nsu install -Ddistinct.classifier=exitexit
> {noformat}
> h3. Surefire772 ITs:
> The reason for these failures is that 
> {{org.apache.maven.surefire.its.fixture.MavenLauncher#skipClean}} still uses 
> the pre-3.0.0 name of the respective {{maven-clean-plugin}} property.
> Before maven-clean-plugin version 3.0.0: {{-Dclean.skip=true}}
> Since maven-clean-plugin version 3.0.0: {{-Dmaven.clean.skip=true}}
> Maven 3.9.0 uses {{maven-clean-plugin}} in version 3.2 by default. Maven 
> 3.8.x still uses version 2.5 by default.
> In order to support both versions it might be best to set both properties.
> h3. Surefire946 IT:
> The log output of the test project says the following:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-install-plugin:3.1.0:install (default-install) 
> on project surefire-946-dummy-dependency: The packaging plugin for this 
> project did not assign a main file to the project but it has attachments. 
> Change packaging to 'pom'. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-install-plugin:3.1.0:install 
> (default-install) on project surefire-946-dummy-dependency: The packaging 
> plugin for this project did not assign a main file to the project but it has 
> attachments. Change packaging to 'pom'.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to