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>

最新文章

  1. Myeclipse安装SVN插件(转)
  2. Fragment的使用(一)
  3. Java数据库——PreparedStatement接口
  4. VUE应用的一些感受
  5. java线程安全理解
  6. [DevExpress]设置RepositoryItemComboBox只可下拉选择不可编辑
  7. [BEC][hujiang] Lesson04 Unit1:Working life ---Reading + Listening &amp;Grammar &amp; Speaking
  8. IE浏览器中发送到onenote的选项没有调出来??
  9. [转载]linux下mysql 自动备份
  10. 网络最大流算法—EK算法
  11. loadrunner&#160;脚本录制-录制选项设置HTML-based&#160;URL-based&#160;Script
  12. Hadoop:HDFS NameNode内存全景
  13. (19)模型层 -ORM之msql 跨表查询(正向和反向查询)
  14. NOIP水题测试(2017082501)
  15. tomcat运行JSP时产生的错误:”javax.servlet.servletexception: java.lang.nosuchmethoderror”
  16. [Learn AF3]第五章 App Framework 3组件之Drawer——Side Menu
  17. Netty权威指南之Netty入门程序
  18. English trip -- VC(情景课)10 B Around the house 在家里
  19. 戴尔R720xd服务器系统安装前期环境实现
  20. .net core开发 (一)

热门文章

  1. 11i REP-3000: 启动 Oracle Toolkit 时发生内部错误.
  2. VS2010 MFC中 使用CListCtrl的排序功能
  3. 【转】如何利用多核CPU来加速你的Linux命令 — awk, sed, bzip2, grep, wc等
  4. Zookeeper demo增删改查
  5. 粗略。。Java项目设计模式之笔记----studying
  6. 跨域问题解决方式(HttpClient安全跨域 &amp;amp; jsonp跨域)
  7. JavaScript学习与实践一
  8. vue2 axios 接口函数封装
  9. Struts2中Action自己主动接收參数
  10. POJ 题目3264 Balanced Lineup(RMQ)