File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
autocoder/src/main/java/com/simiacryptus/ref/core
core/src/main/java/com/simiacryptus/ref Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3333
3434import javax .annotation .Nonnull ;
3535import java .io .File ;
36+ import java .util .List ;
3637import java .util .Optional ;
3738import java .util .stream .Stream ;
3839
@@ -48,10 +49,14 @@ public abstract class BaseMojo extends AbstractMojo {
4849
4950 @ Nonnull
5051 public String [] getDependencies () {
51- return project .getDependencies ().stream ()
52+ if (project == null ) return new String []{};
53+ List <Dependency > dependencies = project .getDependencies ();
54+ if (dependencies == null ) return new String []{};
55+ return dependencies .stream ()
5256 .map (x -> toArtifact (x ))
5357 .flatMap (x -> resolve (x ).getArtifacts ().stream ())
5458 .map (artifact -> artifact .getFile ())
59+ .filter (file -> null != file )
5560 .map (file -> file .getAbsolutePath ())
5661 .distinct ()
5762 .toArray (i -> new String [i ]);
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class RefSettings implements Settings {
4545 private static transient RefSettings INSTANCE = null ;
4646 public final boolean watchEnable = get ("WATCH_ENABLE" , true );
4747 public final boolean watchCreation = get ("WATCH_CREATE" , false );
48- public final boolean lifecycleDebug = get ("DEBUG_LIFECYCLE" , true );
48+ public final boolean lifecycleDebug = get ("DEBUG_LIFECYCLE" , false );
4949 @ Nonnull
5050 public final PersistanceMode doubleCacheMode = get ("DOUBLE_CACHE_MODE" , PersistanceMode .WEAK );
5151 private final Set <String > watchedClasses = Stream .<String >of (
You can’t perform that action at this time.
0 commit comments