PDavid commented on code in PR #6668:
URL: https://github.com/apache/hbase/pull/6668#discussion_r1971359381
##########
pom.xml:
##########
@@ -2910,6 +2987,55 @@
</target>
</configuration>
</execution>
+ <!-- Copy static CSS and JS files for the website. -->
+ <execution>
+ <id>copy-css-js-to-site</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>pre-site</phase>
+ <configuration>
+ <target>
+ <copy flatten="true"
todir="${project.build.directory}/site/css">
Review Comment:
Ah, I think I misunderstood your question but now I understand what you
mean. So why do we need the copying in the `maven-antrun-plugin` and why can't
we just use the `maven-dependency-plugin` to place the files?
The `maven-dependency-plugin` extracts the files with the directory
structure (with some deeper nesting) they had in the jar and it looks like this:

But we would need this kind of structure so we need to flatten the files:

Hence the usage of `maven-antrun-plugin` with flatten copy.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]