[ 
https://jira.codehaus.org/browse/MDEP-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reguel Wermelinger updated MDEP-458:
------------------------------------

    Description: 
The _<overwriteIfNever/>_ property does not work for classifier 
_<classifier>sources</classifier>_ . As soon as the overWriteIfNever property 
is enabled, the artifacts with classifier "sources" are always overwritten. So 
not needed files are written very often to the disk. 

The flag seems to work as expected for executions where no classifier is 
specified. 

See the attached sample project where execution "thirdparty" can handle 
overwriteIfNever correctly. While the execution "thirdparty.sources" always 
copies files to the disk:

{code:xml}[INFO] --- maven-dependency-plugin:2.9-SNAPSHOT:copy-dependencies 
(thirdparty) @ ch.ivyteam.testarea.overwrite ---
[INFO] junit:junit:jar:3.8.1 already exists in destination.
[INFO] 
[INFO] --- maven-dependency-plugin:2.9-SNAPSHOT:copy-dependencies 
(thirdparty.sources) @ ch.ivyteam.testarea.overwrite ---
[INFO] Copying junit-3.8.1-sources.jar to 
D:\dev\trunk\real_workspaceKepler\ch.ivyteam.testarea.overwrite\lib\mvn-src\junit-3.8.1-sources.jar
{code}

The not yet released version 2.9 in use was: 
maven-dependency-plugin-2.9-20140907.174645-631

  was:
The _<overwriteIfNever/>_ property does not work for classifier 
_<classifier>sources</classifier>_ . As soon as the overWriteIfNever property 
is enabled, the artifacts with classifier "sources" are always overwritten. So 
not needed files are written very often to the disk. 

The flag seems to work as expected for executions where no classifier is 
specified. 

See the attached sample project where execution "thirdparty" can handle 
overwriteIfNever correctly. While the execution "thirdparty.sources" always 
copies files to the disk:

{{[INFO] --- maven-dependency-plugin:2.9-SNAPSHOT:copy-dependencies 
(thirdparty) @ ch.ivyteam.testarea.overwrite ---
[INFO] junit:junit:jar:3.8.1 already exists in destination.
[INFO] 
[INFO] --- maven-dependency-plugin:2.9-SNAPSHOT:copy-dependencies 
(thirdparty.sources) @ ch.ivyteam.testarea.overwrite ---
[INFO] Copying junit-3.8.1-sources.jar to 
D:\dev\trunk\real_workspaceKepler\ch.ivyteam.testarea.overwrite\lib\mvn-src\junit-3.8.1-sources.jar
}}

The not yet released version 2.9 in use was: 
maven-dependency-plugin-2.9-20140907.174645-631


> overwriteIfNewer forces not needed overwrite of already existing artifacts
> --------------------------------------------------------------------------
>
>                 Key: MDEP-458
>                 URL: https://jira.codehaus.org/browse/MDEP-458
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.8, 2.9
>         Environment: Win7 x64, MVN 3.0.5, Java 7.0.51
>            Reporter: Reguel Wermelinger
>            Priority: Minor
>         Attachments: overwriteIfNewer-sample.zip
>
>
> The _<overwriteIfNever/>_ property does not work for classifier 
> _<classifier>sources</classifier>_ . As soon as the overWriteIfNever property 
> is enabled, the artifacts with classifier "sources" are always overwritten. 
> So not needed files are written very often to the disk. 
> The flag seems to work as expected for executions where no classifier is 
> specified. 
> See the attached sample project where execution "thirdparty" can handle 
> overwriteIfNever correctly. While the execution "thirdparty.sources" always 
> copies files to the disk:
> {code:xml}[INFO] --- maven-dependency-plugin:2.9-SNAPSHOT:copy-dependencies 
> (thirdparty) @ ch.ivyteam.testarea.overwrite ---
> [INFO] junit:junit:jar:3.8.1 already exists in destination.
> [INFO] 
> [INFO] --- maven-dependency-plugin:2.9-SNAPSHOT:copy-dependencies 
> (thirdparty.sources) @ ch.ivyteam.testarea.overwrite ---
> [INFO] Copying junit-3.8.1-sources.jar to 
> D:\dev\trunk\real_workspaceKepler\ch.ivyteam.testarea.overwrite\lib\mvn-src\junit-3.8.1-sources.jar
> {code}
> The not yet released version 2.9 in use was: 
> maven-dependency-plugin-2.9-20140907.174645-631



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to