You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2016/01/11 18:36:40 UTC

[jira] [Closed] (MRESOURCES-211) phase, resources:resources do twice

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

Robert Scholte closed MRESOURCES-211.
-------------------------------------
    Resolution: Not A Problem
      Assignee: Robert Scholte

To be precise: this is not a maven-resource-plugin problem.
This issue is superseded by MNG-5885, which explains the current behavior of Maven when calling multiple phases.
If copy-resources is something which should be executed as part of the lifecycle, bind it to the process-resources phase.

> phase, resources:resources do twice
> -----------------------------------
>
>                 Key: MRESOURCES-211
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-211
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.7
>            Reporter: LinZuXiong
>            Assignee: Robert Scholte
>
> {noformat}
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ shiva-rds ---
> [INFO] Deleting /data/workspace-jee/shiva-rds/target
> [INFO] 
> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ shiva-rds ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ shiva-rds ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 755 source files to /data/workspace-jee/shiva-rds/target/classes
> [INFO] 
> [INFO] --- maven-resources-plugin:2.7:copy-resources (default-cli) @ shiva-rds ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] Copying 5 resources
> [INFO] 
> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ shiva-rds ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ shiva-rds ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 755 source files to /data/workspace-jee/shiva-rds/target/classes
> [INFO] 
> {noformat}
> CLI: mvn clean compile resources:copy-resources package -DskipTests=true -Ptrade_item
> It executes twice : [INFO] --- maven-resources-plugin:2.7:resources (default-resources)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)