Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Mar 21, 2023
1 parent 940c6be commit 327e65c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,15 @@ private void processProject(final MavenProject project, DeployRequest request) t
request.addArtifact(RepositoryUtils.toArtifact(mavenMainArtifact));
} else if (!project.getAttachedArtifacts().isEmpty()) {
if (allowIncompleteProjects) {
getLog().warn( "" );
getLog().warn( "The packaging plugin for this project 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'." );
getLog().warn("");
getLog().warn("The packaging plugin for this project 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'.");
}
} else {
throw new MojoExecutionException(
Expand Down

0 comments on commit 327e65c

Please sign in to comment.