Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maven is really not insanely flexible. I have a build in which i wanted three distinct test phases (unit, functional, and API contract). A simple requirement. But i couldn't have that without writing a plugin, or breaking out a dummy module for one of them. We ended up making the contract tests a special case of the unit tests, selected by passing in some flags; a consequence of that is that it's impossible to run both sets of tests in a single build.

tl;dr: Maven is the exact opposite of flexible.



creating profiles specific to each might help


I think i still couldn't run all three sets of tests in one build though, right?


You can activate multiple profiles per build if needed.


But i can't run a goal twice under different profiles, can i?


No, but you can tie multiple plugin executions to a single phase.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: