19
0

3 Commits

5 changed files with 25 additions and 39 deletions

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd4949e15b04a37e5e82a3a2fa2651c2f9fdf2a2bd33b5e0a521f4edcd09de31
size 214609

View File

@@ -1,37 +1,3 @@
-------------------------------------------------------------------
Sat Nov 29 05:19:43 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.4.0
* Bug Fixes
+ MSOURCES-140: fail only if re-attach different files
* Maintenance
+ Bump m-invoker-p to 3.9.1
+ Allow to manually execute release drafter
+ GH Issues (Maven 3 branch)
+ MNGSITE-529: Rename "Goals" to "Plugin Documentation"
* Dependency updates
+ Use plexus-utils version from parent
+ MSOURCES-146: Bump commons-io:commons-io from 2.11.0 to 2.16.0
+ Bump commons-io:commons-io from 2.16.0 to 2.21.0
+ MSOURCES-147: Bump org.codehaus.plexus:plexus-archiver from
4.9.1 to 4.9.2
+ Bump org.codehaus.plexus:plexus-archiver from 4.9.2 to 4.10.4
+ MSOURCES-145: Bump org.apache.maven:maven-archiver from 3.6.1
to 3.6.2
+ Bump org.apache.maven:maven-archiver from 3.6.2 to 3.6.5
+ Bump org.apache.maven.plugin-testing:maven-plugin-testing-harness
from 3.3.0 to 3.4.0
+ Bump mavenVersion from 3.2.5 to 3.9.11
+ Bump org.apache.maven.plugins:maven-plugins from 41 to 45
+ Bump org.codehaus.plexus:plexus-utils from 3.5.1 to 3.6.0
-------------------------------------------------------------------
Mon Jul 21 14:40:41 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Removed patch:
* reproducible-from-environment.patch
+ patched in a more central place in maven-archiver
-------------------------------------------------------------------
Tue Sep 24 09:38:55 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package maven-source-plugin
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,14 @@
Name: maven-source-plugin
Version: 3.4.0
Version: 3.3.1
Release: 0
Summary: Plugin for creating source JARs
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://maven.apache.org/plugins/maven-source-plugin/
Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
Patch0: reproducible-from-environment.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
@@ -53,6 +54,7 @@ API documentation for %{name}.
%prep
%setup -q
%patch -P 0 -p1
%{mvn_file} : %{name}

View File

@@ -0,0 +1,18 @@
diff -urEbwB maven-source-plugin-3.3.1.orig/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java maven-source-plugin-3.3.1/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
--- maven-source-plugin-3.3.1.orig/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java 2024-09-24 08:52:01.065274036 +0200
+++ maven-source-plugin-3.3.1/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java 2024-09-24 08:52:08.211989382 +0200
@@ -390,6 +390,14 @@
archiver.setCreatedBy("Maven Source Plugin", "org.apache.maven.plugins", "maven-source-plugin");
archiver.setBuildJdkSpecDefaultEntry(false);
+ if ( outputTimestamp == null ||
+ outputTimestamp.length() < 1 ||
+ ( ( outputTimestamp.length() == 1 )
+ && !Character.isDigit( outputTimestamp.charAt(0) ) ) )
+ {
+ outputTimestamp = System.getenv("SOURCE_DATE_EPOCH");
+ }
+
// configure for Reproducible Builds based on outputTimestamp value
archiver.configureReproducibleBuild(outputTimestamp);