allow AMP with warning
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user