slawekjaranowski commented on code in PR #228: URL: https://github.com/apache/maven-shade-plugin/pull/228#discussion_r1616976316
########## src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java: ########## @@ -444,6 +474,17 @@ public void execute() throws MojoExecutionException { artifacts.add(project.getArtifact().getFile()); + if (extraJars != null && !extraJars.isEmpty()) { + for (File extraJar : extraJars) { + if (!Files.isRegularFile(extraJar.toPath())) { + createErrorOutput(); Review Comment: ```java private void createErrorOutput() { getLog().error("The project main artifact does not exist. This could have the following"); getLog().error("reasons:"); .... ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org