[ http://jira.codehaus.org/browse/MNG-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201726#action_201726 ]
Tamás Cservenák commented on MNG-4368: -------------------------------------- Okay, just to assure all the skeptics here: * svn co svn://svn.graffen.dk/MNG4368 mng4368 * cd mng4368/trunk * mvn clean install * cd ../branches/featureX * mvn clean install And here, the branch pom is not installed (the difference between trunk and featureX is that featureX uses junit 4.4). This can hose your build just like that. Also note, that steps of "svn co" and "cd ../branches/featureX" could be swapped with something like "and now get the same stuff's featureX branch from another Git repo". I just used SVN for easy reproducibility. Also, while in case of centralized SVN, maintaining "versions per branch" (that is considered as best practice) is possible, in Distributed SCM case it is impossible. But this is not all. Now go, and edit the trunk pom and featureX pom, and make them have packaging "jar", and repeat the steps. In this case, _it works_. According to Benjamin Bentmann, this is due to the reason, that with packaging "pom", the pom is treated as artifact to be installed (the fix in this JIRA _is_ applied). With packing "jar", the pom is just repository metadata (the fix in this JIRA _is not_ applied). Hence, it's somehow inconsistent too. > DefaultArtifactInstaller should only overwrite files if timestamp has changed > ----------------------------------------------------------------------------- > > Key: MNG-4368 > URL: http://jira.codehaus.org/browse/MNG-4368 > Project: Maven 2 > Issue Type: Improvement > Environment: Linux, JDK 1.5 > Reporter: Johannes Martin > Fix For: 2.2.2, 3.0-alpha-3 > > > install:install (from maven-install-plugin) by default uses > DefaultArtifactInstaller to install artifacts. DefaultArtifactInstaller in > turn uses FileUtils.copyFile(), thereby overwriting destination files even if > they are unchanged. It would be helpful if DefaultArtifactInstaller used > FileUtils.copyFileIfModified() instead, at least as an option, to speed up > the build process. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira