11package dev .sassine .api .maven .plugin .start ;
2+ import static dev .sassine .api .structure .Sqlschema2Java .generate ;
3+ import static java .lang .String .format ;
4+
25import org .apache .maven .plugin .AbstractMojo ;
36import org .apache .maven .plugin .MojoExecutionException ;
47import org .apache .maven .plugin .MojoFailureException ;
710import org .apache .maven .plugins .annotations .Parameter ;
811import org .apache .maven .project .MavenProject ;
912
10- import dev .sassine .api .structure .Sqlschema2Java ;
11-
12- @ Mojo (name = "sqlschema2java" , defaultPhase = LifecyclePhase .NONE )
13+ @ Mojo (name = "generate" , defaultPhase = LifecyclePhase .NONE )
1314public class SqlSchema2Java extends AbstractMojo {
1415
1516 @ Parameter (defaultValue = "${project}" , required = true , readonly = true )
@@ -27,15 +28,10 @@ public class SqlSchema2Java extends AbstractMojo {
2728 @ Parameter (property = "sql.type.auto.increment.enabled" , defaultValue = "true" , required = false , readonly = true )
2829 Boolean useAutoIncrement ;
2930
30- @ Parameter (property = "log.debug.enabled" , defaultValue = "false" , required = false , readonly = true )
31- String debugEnabled ;
32-
33-
3431
3532 public void execute () throws MojoExecutionException , MojoFailureException {
36- getLog ().info (" " );
37- Sqlschema2Java .generate (sourceDirectory , isPostgres , useAutoIncrement ,packageName );
38- getLog ().info (" " );
33+ getLog ().info (format (" packageName %s - sourceDirectory %s - isPostgres %s - useAutoIncrement %s" , sourceDirectory , packageName , isPostgres , useAutoIncrement ));
34+ generate (sourceDirectory , isPostgres , useAutoIncrement , packageName );
3935 }
4036
4137}
0 commit comments