allow AMP with warning

This commit is contained in:
2022-04-25 21:44:19 -04:00
parent c9f56d7187
commit aa120eae1b
@@ -245,9 +245,9 @@ public class AmpMojo extends AbstractMojo implements ArtifactResolutionCallback
for (FileSet fileset : this.libDirectories)
libcount += this.zipFileset(zstream, fileset, "lib");
if (libcount == 0)
throw new IllegalStateException("There are no external libraries to include, making an AMP pointless");
this.getLog().warn("There are no external libraries to include; an AMP is not recommended");
}
private List<String> getExclusions() {