Hi,

Have you tried putting the plugin definition in a profile activated by the value of the 'maven.test.skip' property.

-Tim

Jose Alberto Fernandez schrieb:
Hi,

I have a maven-antrun-plugin that must execute before running the test suit
to make sure that my database schema is in sync with the code. That works
fine. However, I would like for this task to only execute when tests are
actually run. That is if I set maven.test.skip=true I would prefer for the
schema to not be upgraded.

The reason being that I may be just working on the code and do not want to
upgrade the schema until I am ready to others to see my changes (which means
the code changes can be committed, as they at least compile).

Is there any way to achieve this? I try to set the plugin to the
test-compile phase, but it seem to execute even when the tests are not run.
Any advise on what is the best way to get to this?

Jose Alberto



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to