[MSOURCES-95] Source JAR is re-created even if sources are not changed

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 have 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.

This closes #2
8 files changed
tree: db9d92885f23834ae81a891b2c8cd3588f3e5c8b
  1. src/
  2. .gitignore
  3. Jenkinsfile
  4. pom.xml