Skip to content

[MNG-8244] Using before:all / all / after:all is not triggered #9621

@jira-importer

Description

@jira-importer

Karl Heinz Marbaise opened MNG-8244 and commented

I just tried to use the phases: {}before:all{}, all and after:all simply to test at which exact point in time those phases are running.

I've used  things like {}before:integration-test{}, integration-test and after:integration-test which works fine also using {}before:build{}, build and after:build works so far fine.

 

The only exeptions are the {}before:all{}, all and after:all which are not triggered.

 

I have setup a full working example: https://github.com/khmarbaise/maven-bugs/tree/master/MNG-8244

During the execution with Maven 4.0.0-beta-4 I can see outputs which indicates that the phases are correctly triggered (except {}before:all{}, all and {}after:all{}): The lines "--- echo:0.5.0:echo" are triggered by the appropriate life cycle phases... 

...
[INFO] 
[INFO] --- jar:3.4.2:jar (default-jar) @ mng-8244 ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /Users/khm/ws-git-soebes/maven-bugs/MNG-8244/target/mng-8244-2.0.0.jar
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ mng-8244 ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] --- echo:0.5.0:echo (before-build) @ mng-8244 ---
[INFO] Hallo 'before:build' phase.
[INFO] 
[INFO] --- echo:0.5.0:echo (build) @ mng-8244 ---
[INFO] Hallo 'build' phase.
[INFO] 
[INFO] --- echo:0.5.0:echo (after-build) @ mng-8244 ---
[INFO] Hallo 'after:build' phase.
[INFO] 
[INFO] --- failsafe:3.3.1:integration-test (integration-test) @ mng-8244 ---
[INFO] No tests to run.
[INFO] 
[INFO] --- failsafe:3.3.1:verify (after:integration-test) @ mng-8244 ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco:0.8.12:report (default) @ mng-8244 ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] Copying com.soebes.maven.bugs:mng-8244:pom:2.0.0 to project local repository
[INFO] Copying com.soebes.maven.bugs:mng-8244:jar:2.0.0 to project local repository
[INFO] Copying com.soebes.maven.bugs:mng-8244:pom:consumer:2.0.0 to project local repository
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time1.203 s
[INFO] Finished at: 2024-09-07T12:16:36+02:00 

 
It could also be that the plugin I have written might not work on those particular phases... but my assumption is that this is not the issue here... (maybe I'm wrong)


Affects: 4.0.0-beta-4

Remote Links:

Backported to: 4.0.0-rc-2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions