webjars 是比较方便的一个web 资源集成到java 应用的方法,打包是比较重要的,但是很多时候我们是需要依赖其他一些maven plugin 的

unsnapshot-maven-plugin

主要解决版本的问题,去掉snaphot,会提供一个${version.unsnapshot} 的变量

frontend-maven-plugin

主要方便npm 项目的maven打包集成,可以在generate-resources 阶段集成

maven-resources-plugin

主要是处理resource 资源转换为标准的webjars (当我们的web 项目是需要构建的时候就比较重要了,可以在process-resources阶段处理资源)

说明

webjars 很好,使用好了可以很大程度上提升软件的集成部署

参考资料

https://github.com/jamesward/unsnapshot-maven-plugin
https://github.com/eirslett/frontend-maven-plugin
https://www.cnblogs.com/rongfengliang/p/15855304.html
https://www.cnblogs.com/rongfengliang/p/15866295.html

相关文章:

  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-01-21
  • 2021-04-06
  • 2021-11-09
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2022-03-07
  • 2022-12-23
  • 2022-01-29
  • 2021-06-14
  • 2021-07-11
相关资源
相似解决方案