pinpoint开地开发-web模块
Posted 胡大叔
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pinpoint开地开发-web模块相关的知识,希望对你有一定的参考价值。
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>
以上是关于pinpoint开地开发-web模块的主要内容,如果未能解决你的问题,请参考以下文章