pinpoint本地开发-web模块
2024-09-07 18:52:41
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>
最新文章
- Myeclipse安装SVN插件(转)
- Fragment的使用(一)
- Java数据库——PreparedStatement接口
- VUE应用的一些感受
- java线程安全理解
- [DevExpress]设置RepositoryItemComboBox只可下拉选择不可编辑
- [BEC][hujiang] Lesson04 Unit1:Working life ---Reading + Listening &;Grammar &; Speaking
- IE浏览器中发送到onenote的选项没有调出来??
- [转载]linux下mysql 自动备份
- 网络最大流算法—EK算法
- loadrunner&#160;脚本录制-录制选项设置HTML-based&#160;URL-based&#160;Script
- Hadoop:HDFS NameNode内存全景
- (19)模型层 -ORM之msql 跨表查询(正向和反向查询)
- NOIP水题测试(2017082501)
- tomcat运行JSP时产生的错误:”javax.servlet.servletexception: java.lang.nosuchmethoderror”
- [Learn AF3]第五章 App Framework 3组件之Drawer——Side Menu
- Netty权威指南之Netty入门程序
- English trip -- VC(情景课)10 B Around the house 在家里
- 戴尔R720xd服务器系统安装前期环境实现
- .net core开发 (一)
热门文章
- 11i REP-3000: 启动 Oracle Toolkit 时发生内部错误.
- VS2010 MFC中 使用CListCtrl的排序功能
- 【转】如何利用多核CPU来加速你的Linux命令 — awk, sed, bzip2, grep, wc等
- Zookeeper demo增删改查
- 粗略。。Java项目设计模式之笔记----studying
- 跨域问题解决方式(HttpClient安全跨域 &;amp; jsonp跨域)
- JavaScript学习与实践一
- vue2 axios 接口函数封装
- Struts2中Action自己主动接收參数
- POJ 题目3264 Balanced Lineup(RMQ)