[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-dev
Subject:    =?utf-8?q?=5BPR=5D_=5BARCHETYPE-64=5D_work_around_warning_=27Don=27t_overrid?= =?utf-8?q?e_file=2E=2
From:       WolfgangHG_(via_GitHub) <git () apache ! org>
Date:       2023-11-30 20:57:53
Message-ID: PR_kwDOAAMnKM5g00fz () gitbox ! apache ! org
[Download RAW message or body]


WolfgangHG opened a new pull request, #160:
URL: https://github.com/apache/maven-archetype/pull/160

   This pull request tries to work around a warning "Don't override file ..." or "CP \
Don't override file..." that appeared after switching from maven archetype plugin \
3.1.2 to 3.2.1 - more details and a sample see \
https://issues.apache.org/jira/browse/ARCHETYPE-649  
   The warning seems to be caused by fileset declarations in \
"archetype-metadata.xml": with 3.2.1, the archetype jar file contains entries for all \
directories, but before there were only entries for the actual files in the zip. I \
could also verify this difference by analyzing the jar file with WinZip.  
   I could work around the warning by switching off "IncludeEmptyDirs" in two places \
in "JarMojo.execute".  
   My first thought was to pass the paths of the "archetype-metadata.xml" filesets to \
the second argument of "DefaultFileSet.includeExclude()", but this did not have any \
effect - but this might also be caused by me using wrong paths;-)  
   [DISCLAIMER] This is my first pull request to maven, I don't have knowledge of the \
internals - just trying to workaround an issue that I run into. Maybe the problem is \
also caused by me misusing the filesets in "archetype-metadata.xml".  So please \
consider this more a start of a discussion that a "I have fixed something" statement \
;-). If you have better suggestions to resolve this, please point me to them.


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

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic