-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't support war overlays #2
Comments
Can you setup a test project (on github) reproducing the issue? Please note that m2e-wro4j won't process resources from other projects than the one having the maven-wro4j-plugin config. |
Thanks for replying. I thought that is possible, as a matter of order in which are maven plugins launched. Eg. use m2e-wro4j to fire wro4j plugin at the end of the build process, after the maven war plugin is finished. So war ovelay do this: gives: proj1/src/webapp/js/foo.js and then fire wro4j with path: /**.js and expect: proj1/src/webapp/js/all.js (which includes minified foo.js and bar.js) I think I presented it clearer now, but i can later provide test-case project. greetz! |
The maven war plugin is not invoked in Eclipse, since m2e-wtp delegates all the packaging / deployment to WTP. The actual build lifecycle is different :
So, given the current m2e-wtp / m2e-wro4j implementations, there's no way to produce what you expect. I'm not saying it's impossible, but really don't see a solution right now. There might be a hack involving maven profiles and resource filtering to workaround the absolute path problems in your current solution, but again I'd need a sample project to try. And I'm not sure it'd work anyway. |
Hello there, As you said I've created test-case project and commited it over github to make it easier to work it out. https://github.com/denu/denu/tree/master/parent greetz |
Hello,
I've got maven project with 17 overlayed war dependencies.
I've added wro4j plugin to main project, also wro.xml is in there, and no matter if I use static path or classpath...
Neither of this works:
/core/js/.js
classpath:__.js
classpath:/core/js/.js
As a workaround I have to use this (but there comes SVN issue, as each developer in team uses different dirs for sources):
file:d:\stsworkspace\xariswebcore\src\main\webapp\core\js**.js
The text was updated successfully, but these errors were encountered: