开发者

Maven Plugin Execution Order and excluding js files

开发者 https://www.devze.com 2023-01-14 02:17 出处:网络
I have developed the pom.x开发者_运维问答ml to first combine all the js files in the project and then compress the JS file. These 2 steps are two plugin and are in compile phase.

I have developed the pom.x开发者_运维问答ml to first combine all the js files in the project and then compress the JS file. These 2 steps are two plugin and are in compile phase.

But some how few times puglin execution order is reversed and build fails. In case some one has seen this issue please redirect me to solution.

Secondly, I don't to include the JS in .war which are combined and compressed.


To strictly answer the first part of the question, plugins bound to the same phase are supposed to be executed in the same order as they are listed in the POM and any other behavior should be considered as a but (see MNG-2258). But I personally get the expected behavior with Maven 2.2.1.

Answering the second part of the question will be harder without more details:

  • what is the structure of your project?
  • where are the initial files located?
  • what are you using or doing (are you using the YIU Compressor of the previous question?)?
    • if yes, do you know that it can deal with aggregations (and thus remove the need for two executions)
  • where do you output compressed file?

In other words, give more info please.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号