plamentotev opened a new pull request #2: [MSOURCES-95] Fix source Jar is 
re-created even when sources are not changed
URL: https://github.com/apache/maven-source-plugin/pull/2
 
 
   If there is an empty source directory (such as generated-sources/annotations 
for example) the sources Jar will be re-created even if the sources are not 
changed. The reason is the default include pattern - "**/*". It does not 
include the directory itself and if the directory is empty there is no way for 
Plexus Archiver to know if the archive is up to date (no file or directory to 
compare with the last modification time of the archive), so it does the safe 
thing and re-creates the archive.
   
   Change the default includes pattern to "**/**". That will cause the empty 
directory itself (generated-sources/annotations in our example) to be 
considered when checking the last modification date so the
   archive will not be re-created if it is up to date. Please note that the 
change of the pattern will not change what is included in the archive - the 
directory itself will not be included, only its content.
   
   p.s. This is updated version of #1, but I had to create new pull request as 
I was enable to update the original.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to