You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Linus Fernandes (Jira)" <ji...@apache.org> on 2021/02/15 12:31:01 UTC

[jira] [Commented] (MSITE-650) Problem with multiple executions of surefire within site plugin 3.0

    [ https://issues.apache.org/jira/browse/MSITE-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17284693#comment-17284693 ] 

Linus Fernandes commented on MSITE-650:
---------------------------------------

I've been told this is related:

The following is my pom file located at:

https://raw.githubusercontent.com/Fernal73/DSAlgos/master/pom.xml


Can you tell me what's causing the following plugins to be executed twice in sequence with the command mvn site?

mvn i.e., normal build is as expected.

The plugins (and goals) executed twice are:

 maven-jxr-plugin:3.0.0:jxr < generate-sources   maven-jxr-plugin:3.0.0:test-jxr > generate-test-sources 
maven-enforcer-plugin:3.0.0-M3:enforce (enforce-versions) 
jacoco-maven-plugin:0.8.6:prepare-agent (default)
lombok-maven-plugin:1.18.16.0:delombok (delombok) 
lombok-maven-plugin:1.18.16.0:testDelombok (test-delombok)
maven-antrun-plugin:3.0.0:run (sources)
maven-antrun-plugin:3.0.0:run (tests)

The project is at https//github.com/fernal73/DSAlgos


> Problem with multiple executions of surefire within site plugin 3.0
> -------------------------------------------------------------------
>
>                 Key: MSITE-650
>                 URL: https://issues.apache.org/jira/browse/MSITE-650
>             Project: Maven Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Kristian Rosenvold
>            Assignee: Herve Boutemy
>            Priority: Major
>             Fix For: backlog
>
>         Attachments: fooproject.tar.gz, mvn_X_install_fooproject.txt, mvn_X_site_fooproject.txt, mvninstall_fooproject.txt, mvnsite_3.4-SNAPSHOT.txt, mvnsite_fooproject.txt
>
>
> There is a test project attached to SUREFIRE-905 that has a total of 4 executions of surefire, with different configuration for each.
> When running "mvn clean install" inside this project, surefire gets executed 4 times as expected. When running "mvn site" only the first execution gets run, the last three get stopped by the configuration-checksum in surefire, indicating they get executed with the *same* configuration as the default execution.  (Surefire creates a SHA1 hash of all the mojo parameters to avoid re-running the same configuration, which is why I conclude the three executions get the same configuration as the default config)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)