maven-plugins icon indicating copy to clipboard operation
maven-plugins copied to clipboard

Add option to run goals initially

Open udalrich opened this issue 8 years ago • 2 comments

This looks quite useful. It would be great if it could (optionally) run the goals once before starting to watch. As it is, I start the watcher (which I have configured to run my tests), and then I have to make a trivial change and save it to get the first build to run.

udalrich avatar Feb 16 '17 17:02 udalrich

You can run multiple goals from the command line. Doesn't this simply work?

`mvn compile other-goal watcher

On Thu, Feb 16, 2017 at 12:37 PM, udalrich [email protected] wrote:

This looks quite useful. It would be great if it could (optionally) run the goals once before starting to watch. As it is, I start the watcher (which I have configured to run my tests), and then I have to make a trivial change and save it to get the first build to run.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fizzed/maven-plugins/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjwAr6zddQVmpPlAqdIbTO9EncHE2yUks5rdIlHgaJpZM4MDUh2 .

jjlauer avatar Feb 16 '17 18:02 jjlauer

It works, unless the other goal fails. I'm usually doing this after I changed/added a test that I expect to fail, so mvn test watcher will exit before it runs watcher.

Otoh, I could add --fail-at-end

Troy

On Feb 16, 2017 1:09 PM, "Joe Lauer" [email protected] wrote:

You can run multiple goals from the command line. Doesn't this simply work?

`mvn compile other-goal watcher

On Thu, Feb 16, 2017 at 12:37 PM, udalrich [email protected] wrote:

This looks quite useful. It would be great if it could (optionally) run the goals once before starting to watch. As it is, I start the watcher (which I have configured to run my tests), and then I have to make a trivial change and save it to get the first build to run.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fizzed/maven-plugins/issues/3, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AAjwAr6zddQVmpPlAqdIbTO9EncHE2yUks5rdIlHgaJpZM4MDUh2> .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fizzed/maven-plugins/issues/3#issuecomment-280410950, or mute the thread https://github.com/notifications/unsubscribe-auth/ALnajyyP8LVQ4oYvuxtc6oneYLrWTuHcks5rdJDQgaJpZM4MDUh2 .

udalrich avatar Feb 16 '17 19:02 udalrich