Improve check for project artifact type.
There are artifact types that are not "jar" in maven that still produce
a JAR file, allow those to be used.
@@ -161,7 +161,7 @@ public class AbiCheck extends AbstractMojo {
File specFile = new File(project.getBasedir(), specFileName);
if (mainArtifact.getFile() == null) {
throw new MojoExecutionException("Missing project artifact file");
- } else if (!mainArtifact.getType().equals("jar")) {
+ } else if (!mainArtifact.getFile().getName().endsWith(".jar")) {
throw new MojoExecutionException("Project artifact is not a JAR");
}
