Maven for static web projects

I want to use the capabilities of Maven for my static web projects containing images, javascript and / or css files.

I do not want to consider anything about Java, packaging jar, ...

Basically I need:

  • "minify" resources: ie: some yui compressor plugin
  • my project package (.tar.gz, ...)

After looking, I just found some tags. But nothing about the whole project.

For the tar.gz build, I find the build plugin to be useful. To minimize and compress JS and CSS, I am declaring some compress / minify plugin.

How can I declare a packaging tag in this case? The closer I thought: <packaging>war</packaging> .

Is there any way to declare it?

Does it make sense?

+6
source share
1 answer

If the assembly descriptor does all the data processing (creating folders, copying files, etc.), you can also declare the project as a pom project. This will cause maven to skip the default lifecycle phases such as compile , test , etc.

+7
source

Source: https://habr.com/ru/post/900517/


All Articles