maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MDEP-458) overwriteIfNewer forces not needed overwrite of already existing artifacts
Date Sat, 15 Apr 2017 22:55:41 GMT

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

Michael Osipov commented on MDEP-458:
-------------------------------------

Still valid for 3.0.1-SNAPSHOT.

> overwriteIfNewer forces not needed overwrite of already existing artifacts
> --------------------------------------------------------------------------
>
>                 Key: MDEP-458
>                 URL: https://issues.apache.org/jira/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.3.15#6346)

Mime
View raw message