File tree 1 file changed +13
-1
lines changed
src/main/java/com/jcabi/dynamodb/maven/plugin
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 30
30
package com .jcabi .dynamodb .maven .plugin ;
31
31
32
32
import com .jcabi .dynamodb .core .Instances ;
33
+ import com .jcabi .log .Logger ;
33
34
import java .io .IOException ;
35
+ import java .util .concurrent .TimeUnit ;
34
36
import lombok .EqualsAndHashCode ;
35
37
import lombok .ToString ;
36
38
import org .apache .maven .plugin .MojoFailureException ;
50
52
@ Mojo
51
53
(
52
54
threadSafe = true , name = "run" ,
53
- defaultPhase = LifecyclePhase .INTEGRATION_TEST
55
+ defaultPhase = LifecyclePhase .PRE_INTEGRATION_TEST
54
56
)
55
57
public final class RunMojo extends AbstractEnviromentMojo {
56
58
@@ -65,6 +67,16 @@ public void run(final Instances instances) throws MojoFailureException {
65
67
"failed to run DynamoDB Local" , ex
66
68
);
67
69
}
70
+ Logger .info (
71
+ this , "DynamoDB Local is listening on port %d... (Ctrl-C to stop)" ,
72
+ this .tcpPort ()
73
+ );
74
+ try {
75
+ TimeUnit .SECONDS .sleep (Long .MAX_VALUE );
76
+ } catch (final InterruptedException ex ) {
77
+ Thread .currentThread ().interrupt ();
78
+ throw new IllegalStateException (ex );
79
+ }
68
80
}
69
81
70
82
}
You can’t perform that action at this time.
0 commit comments