maven-jar-plugin/01-allow-replacing-artifacts.patch

12 lines
710 B
Diff

--- maven-jar-plugin-3.3.0/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java 2023-09-14 08:41:53.495070762 +0200
+++ maven-jar-plugin-3.3.0/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java 2023-09-14 08:46:56.323819346 +0200
@@ -312,7 +312,7 @@
{
if ( projectHasAlreadySetAnArtifact() )
{
- throw new MojoExecutionException( "You have to use a classifier "
+ getLog().warn( "You have to use a classifier "
+ "to attach supplemental artifacts to the project instead of replacing them." );
}
getProject().getArtifact().setFile( jarFile );