hboutemy commented on code in PR #45:
URL: 
https://github.com/apache/maven-deploy-plugin/pull/45#discussion_r1581253605


##########
src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java:
##########
@@ -299,18 +300,19 @@ private void processProject(final MavenProject project, 
DeployRequest request) t
             } else if (!project.getAttachedArtifacts().isEmpty()) {
                 if (allowIncompleteProjects) {
                     getLog().warn("");
-                    getLog().warn("The packaging plugin for this project did 
not assign");
+                    getLog().warn("The packaging plugin for project " + 
project.getArtifactId() + " did not assign");
                     getLog().warn("a main file to the project but it has 
attachments. Change packaging to 'pom'.");
                     getLog().warn("");
                     getLog().warn("Incomplete projects like this will fail in 
future Maven versions!");
                     getLog().warn("");
                 } else {
-                    throw new MojoExecutionException("The packaging plugin for 
this project did not assign "
-                            + "a main file to the project but it has 
attachments. Change packaging to 'pom'.");
+                    throw new MojoExecutionException("The packaging plugin for 
project " + project.getArtifactId()
+                            + " did not assign a main file to the project but 
it has attachments. Change packaging"
+                            + " to 'pom'.");
                 }
             } else {
-                throw new MojoExecutionException(
-                        "The packaging for this project did not assign a file 
to the build artifact");
+                throw new MojoExecutionException("The packaging plugin for 
project " + project.getArtifactId()

Review Comment:
   "packaging plugin"?
   there is no packaging plugin, just packaging



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to