admin管理员组文章数量:1336602
I want to use Maven capabilities for my static web projects containing images, javascript and/or css files.
I don't wanna consider anything about Java, jar packaging, ...
Basically, I need:
- "minify" resources: i.e.: some yui pressor plugin
- package my project (.tar.gz, ...)
Looking it up, I'd just found some tags samples. But, nothing about the whole project.
For assembly tar.gz
, I believe that Assembly plugin may be useful.
To minify and press JS and CSS, I declare some press/minify plugin.
How should I declare packaging tag in this case? The closer I thought was: <packaging>war</packaging>
.
There's other way to declare it?
Does it make sense?
I want to use Maven capabilities for my static web projects containing images, javascript and/or css files.
I don't wanna consider anything about Java, jar packaging, ...
Basically, I need:
- "minify" resources: i.e.: some yui pressor plugin
- package my project (.tar.gz, ...)
Looking it up, I'd just found some tags samples. But, nothing about the whole project.
For assembly tar.gz
, I believe that Assembly plugin may be useful.
To minify and press JS and CSS, I declare some press/minify plugin.
How should I declare packaging tag in this case? The closer I thought was: <packaging>war</packaging>
.
There's other way to declare it?
Does it make sense?
Share Improve this question edited Apr 3, 2013 at 20:21 Andre Pastore asked Nov 1, 2011 at 13:26 Andre PastoreAndre Pastore 2,9074 gold badges35 silver badges44 bronze badges 2- 1 Here, there is an good example for assembly usage in this case: blog.eisele/2009/07/… – Andre Pastore Commented Nov 1, 2011 at 13:37
- Recently, we changed our deployment architecture to Gradle. It improve some issues like flexibility, packaging, SCM tagging and delivery. It easy extensible, some Ant/Make/Maven foundations and modern. It is fully supported by Jenkins and can be run in any environment. We remend it! – Andre Pastore Commented Apr 3, 2013 at 20:25
1 Answer
Reset to default 7If your assembly descriptor does all the data processing (creating folders, copying files, etc.), then you can also declare the project to be a pom
project. This will result in maven skipping the default life-cycle phases like pile
, test
, etc.
本文标签: javascriptMaven for static web projectsStack Overflow
版权声明:本文标题:javascript - Maven for static web projects - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742409162a2469434.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论