Hello community,

here is the log from the commit of package maven-jar-plugin for 
openSUSE:Factory checked in at 2019-10-08 19:58:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/maven-jar-plugin (Old)
 and      /work/SRC/openSUSE:Factory/.maven-jar-plugin.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "maven-jar-plugin"

Tue Oct  8 19:58:48 2019 rev:2 rq:735978 version:3.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/maven-jar-plugin/maven-jar-plugin.changes        
2019-04-05 12:04:57.362598152 +0200
+++ 
/work/SRC/openSUSE:Factory/.maven-jar-plugin.new.2352/maven-jar-plugin.changes  
    2019-10-08 19:58:50.160034748 +0200
@@ -1,0 +2,7 @@
+Tue Oct  8 05:35:17 UTC 2019 - Fridrich Strba <[email protected]>
+
+- Added patch:
+  * 01-allow-replacing-artifacts.patch
+    + Warn but do not fail with misconfigured plugin
+
+-------------------------------------------------------------------

New:
----
  01-allow-replacing-artifacts.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ maven-jar-plugin.spec ++++++
--- /var/tmp/diff_new_pack.yFJn5l/_old  2019-10-08 19:58:50.572033515 +0200
+++ /var/tmp/diff_new_pack.yFJn5l/_new  2019-10-08 19:58:50.576033503 +0200
@@ -32,6 +32,7 @@
 Source0:        
http://repo2.maven.org/maven2/org/apache/maven/plugins/%{base_name}/%{version}/%{base_name}-%{version}-source-release.zip
 Source1:        %{base_name}-build.xml
 Patch0:         %{base_name}-bootstrap-resources.patch
+Patch1:         01-allow-replacing-artifacts.patch
 BuildRequires:  fdupes
 BuildRequires:  javapackages-local
 BuildRequires:  maven-archiver
@@ -86,6 +87,7 @@
 cp %{SOURCE1} build.xml
 %patch0 -p1
 %endif
+%patch1 -p1
 
 %build
 # Test class MockArtifact doesn't override method getMetadata

++++++ 01-allow-replacing-artifacts.patch ++++++
Description: Display a warning instead of failing the build if the plugin
 is misconfigured and attempts to attach twice the same artifact.
Author: Emmanuel Bourg <[email protected]>
Forwarded: no
Bug: https://issues.apache.org/jira/browse/MJAR-198
--- a/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java
@@ -300,7 +300,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 );


Reply via email to