Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven for static web projects

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 compressor 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 compress JS and CSS, I declare some compress/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?

like image 679
Andre Pastore Avatar asked Nov 01 '11 13:11

Andre Pastore


1 Answers

If 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 compile, test, etc.

like image 58
Raghuram Avatar answered Oct 04 '22 21:10

Raghuram