标签:path ever uil 开发 logs log ons 一个 rect
web模块中的前端依赖会导致工程很难打包成功,对于这些,我们可以直接注释掉
比如:
<plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>1.0</version> <configuration> <workingDirectory>${basedir}/target</workingDirectory> <srcdir>${basedir}/target/main/webapp</srcdir> <outputdir>${basedir}/target/main/webapp</outputdir> <installDirectory>target</installDirectory> </configuration> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <configuration> <nodeVersion>v5.11.1</nodeVersion> <npmVersion>3.9.6</npmVersion> </configuration> </execution> <execution> <id>npm install</id> <goals> <goal>npm</goal> </goals> <configuration> <arguments>install</arguments> </configuration> </execution> <execution> <id>grunt build</id> <goals> <goal>grunt</goal> </goals> <configuration> <arguments>${grunt.build.command}</arguments> </configuration> </execution> </executions> </plugin>
为了便于本地快速启动,可以增加一个tomcat的maven插件,放到build下的plugins标签内
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <path>/</path> <port>20330</port> <!--<fork>true</fork>--> <uriEncoding>UTF-8</uriEncoding> </configuration> </plugin>
标签:path ever uil 开发 logs log ons 一个 rect
原文地址:http://www.cnblogs.com/yissheng/p/7811445.html