|
524 | 524 | <plugin> |
525 | 525 | <artifactId>maven-antrun-plugin</artifactId> |
526 | 526 | <executions> |
527 | | - <execution> |
528 | | - <!-- Copy static CSS and JS files for the UI. --> |
529 | | - <id>copy-css-js-to-ui</id> |
530 | | - <goals> |
531 | | - <goal>run</goal> |
532 | | - </goals> |
533 | | - <phase>process-resources</phase> |
534 | | - <configuration> |
535 | | - <target> |
536 | | - <copy flatten="true" todir="${project.build.directory}/hbase-webapps/static/css"> |
537 | | - <fileset dir="${webjars-dir}/bootstrap/${bootstrap.version}/css"> |
538 | | - <include name="bootstrap.min.css"/> |
539 | | - </fileset> |
540 | | - </copy> |
541 | | - <copy flatten="true" todir="${project.build.directory}/hbase-webapps/static/js"> |
542 | | - <fileset dir="${webjars-dir}/bootstrap/${bootstrap.version}/js"> |
543 | | - <include name="bootstrap.min.js"/> |
544 | | - </fileset> |
545 | | - <fileset dir="${webjars-dir}/jquery/${jquery.version}"> |
546 | | - <include name="jquery.min.js"/> |
547 | | - </fileset> |
548 | | - <fileset dir="${webjars-dir}/tablesorter/${tablesorter.version}/js"> |
549 | | - <include name="jquery.tablesorter.min.js"/> |
550 | | - <include name="parsers/parser-date-iso8601.min.js"/> |
551 | | - </fileset> |
552 | | - <fileset dir="${webjars-dir}/vega/${vega.version}/"> |
553 | | - <include name="vega.min.js"/> |
554 | | - </fileset> |
555 | | - <fileset dir="${webjars-dir}/vega-embed/${vega-embed.version}/"> |
556 | | - <include name="vega-embed.min.js"/> |
557 | | - </fileset> |
558 | | - <fileset dir="${webjars-dir}/vega-lite/${vega-lite.version}/"> |
559 | | - <include name="vega-lite.min.js"/> |
560 | | - </fileset> |
561 | | - </copy> |
562 | | - </target> |
563 | | - </configuration> |
564 | | - </execution> |
565 | 527 | <!-- Generate web app sources --> |
566 | 528 | <execution> |
567 | 529 | <id>generate</id> |
|
790 | 752 | <build> |
791 | 753 | <plugins> |
792 | 754 | <plugin> |
| 755 | + <groupId>org.apache.maven.plugins</groupId> |
793 | 756 | <artifactId>maven-dependency-plugin</artifactId> |
| 757 | + <version>${maven.dependency.version}</version> |
794 | 758 | <executions> |
795 | 759 | <execution> |
796 | 760 | <id>create-mrapp-generated-classpath</id> |
|
807 | 771 | </configuration> |
808 | 772 | </execution> |
809 | 773 | <execution> |
810 | | - <id>unpack-ui-resources</id> |
| 774 | + <id>unpack-ui-resources-js</id> |
811 | 775 | <goals> |
812 | 776 | <goal>unpack</goal> |
813 | 777 | </goals> |
|
820 | 784 | <version>${bootstrap.version}</version> |
821 | 785 | <type>jar</type> |
822 | 786 | <overWrite>true</overWrite> |
823 | | - <includes>**/css/bootstrap.min.css, |
824 | | - **/js/bootstrap.min.js</includes> |
| 787 | + <includes>**/js/bootstrap.min.js</includes> |
| 788 | + <fileMappers> |
| 789 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 790 | + </fileMappers> |
825 | 791 | </artifactItem> |
826 | 792 | <artifactItem> |
827 | 793 | <groupId>org.webjars</groupId> |
|
830 | 796 | <type>jar</type> |
831 | 797 | <overWrite>true</overWrite> |
832 | 798 | <includes>**/jquery.min.js</includes> |
| 799 | + <fileMappers> |
| 800 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 801 | + </fileMappers> |
833 | 802 | </artifactItem> |
834 | 803 | <artifactItem> |
835 | 804 | <groupId>org.webjars</groupId> |
|
839 | 808 | <overWrite>true</overWrite> |
840 | 809 | <includes>**/jquery.tablesorter.min.js, |
841 | 810 | **/parsers/parser-date-iso8601.min.js</includes> |
| 811 | + <fileMappers> |
| 812 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 813 | + </fileMappers> |
842 | 814 | </artifactItem> |
843 | 815 | <artifactItem> |
844 | 816 | <groupId>org.webjars</groupId> |
|
847 | 819 | <type>jar</type> |
848 | 820 | <overWrite>true</overWrite> |
849 | 821 | <includes>**/vega.min.js</includes> |
| 822 | + <fileMappers> |
| 823 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 824 | + </fileMappers> |
850 | 825 | </artifactItem> |
851 | 826 | <artifactItem> |
852 | 827 | <groupId>org.webjars</groupId> |
|
855 | 830 | <type>jar</type> |
856 | 831 | <overWrite>true</overWrite> |
857 | 832 | <includes>**/vega-embed.min.js</includes> |
| 833 | + <fileMappers> |
| 834 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 835 | + </fileMappers> |
858 | 836 | </artifactItem> |
859 | 837 | <artifactItem> |
860 | 838 | <groupId>org.webjars</groupId> |
|
863 | 841 | <type>jar</type> |
864 | 842 | <overWrite>true</overWrite> |
865 | 843 | <includes>**/vega-lite.min.js</includes> |
| 844 | + <fileMappers> |
| 845 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 846 | + </fileMappers> |
| 847 | + </artifactItem> |
| 848 | + </artifactItems> |
| 849 | + <outputDirectory>${project.build.directory}/hbase-webapps/static/js</outputDirectory> |
| 850 | + </configuration> |
| 851 | + </execution> |
| 852 | + <execution> |
| 853 | + <id>unpack-ui-resources-css</id> |
| 854 | + <goals> |
| 855 | + <goal>unpack</goal> |
| 856 | + </goals> |
| 857 | + <phase>process-resources</phase> |
| 858 | + <configuration> |
| 859 | + <artifactItems> |
| 860 | + <artifactItem> |
| 861 | + <groupId>org.webjars</groupId> |
| 862 | + <artifactId>bootstrap</artifactId> |
| 863 | + <version>${bootstrap.version}</version> |
| 864 | + <type>jar</type> |
| 865 | + <overWrite>true</overWrite> |
| 866 | + <includes>**/css/bootstrap.min.css</includes> |
| 867 | + <fileMappers> |
| 868 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/> |
| 869 | + </fileMappers> |
866 | 870 | </artifactItem> |
867 | 871 | </artifactItems> |
868 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
| 872 | + <outputDirectory>${project.build.directory}/hbase-webapps/static/css</outputDirectory> |
869 | 873 | </configuration> |
870 | 874 | </execution> |
871 | 875 | </executions> |
|
0 commit comments