Browse Source

feat[litemall-all]: all模块自动打包litemall-vue的dist文件夹到static/vue

Junling Bu 6 years ago
parent
commit
ff10f89caa
1 changed files with 21 additions and 0 deletions
  1. 21 0
      litemall-all/pom.xml

+ 21 - 0
litemall-all/pom.xml

@@ -57,6 +57,27 @@
                 </executions>
                 </executions>
             </plugin>
             </plugin>
 
 
+            <plugin>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy-resources-vue</id>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${basedir}/target/classes/static/vue</outputDirectory>
+                            <resources>
+                                <resource>
+                                    <directory>../litemall-vue/dist</directory>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
 
 
         </plugins>
         </plugins>
     </build>
     </build>