Sync from SUSE:SLFO:Main exec-maven-plugin revision 04ef656c15e7fafbd3e6436ccf1bd8c5

This commit is contained in:
2025-01-27 11:24:15 +01:00
commit 1aa2c5d41e
5 changed files with 188 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
exec-maven-plugin-3.0.0-source-release.zip (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -0,0 +1,12 @@
diff -urEbwB exec-maven-plugin-3.0.0.orig/src/main/java/org/codehaus/mojo/exec/ExecMojo.java exec-maven-plugin-3.0.0/src/main/java/org/codehaus/mojo/exec/ExecMojo.java
--- exec-maven-plugin-3.0.0.orig/src/main/java/org/codehaus/mojo/exec/ExecMojo.java 2022-10-25 15:44:52.358398144 +0200
+++ exec-maven-plugin-3.0.0/src/main/java/org/codehaus/mojo/exec/ExecMojo.java 2022-10-25 15:49:53.360427182 +0200
@@ -505,7 +505,7 @@
enviro.put( (String) entry.getKey(), (String) entry.getValue() );
}
}
- catch ( IOException x )
+ catch ( Exception x )
{
getLog().error( "Could not assign default system enviroment variables.", x );
}

62
exec-maven-plugin.changes Normal file
View File

@@ -0,0 +1,62 @@
-------------------------------------------------------------------
Wed Feb 21 10:42:51 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Mon Dec 12 13:06:39 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Do not require java-headless >= 9, since the jar works just fine
with java 8
-------------------------------------------------------------------
Tue Oct 25 14:01:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* exec-maven-plugin-ioexception.patch
+ allow building with wider range of plexus-utils versions,
including the 3.5.0 that does not declare IOException as
thrown in functions where it is actually not thrown.
-------------------------------------------------------------------
Tue Mar 22 08:31:00 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 3.0.0
* Bug Fixes
+ Resolving "target" dir via "${project.build.directory}", so
to make sure it can be resolved correctly within multi-module
builds and if another name than "target" has been configured
#124
+ Ensure mojo descriptors are extracted after compilation #123
+ Argument file for modulepath is generated wrongly when paths
contains spaces #115
+ java.lang.String cannot be cast to
org.codehaus.mojo.exec.Modulepath #75
* Enhancement
+ Resolves #152 - Adds option to redirect program output of
exec:exec to the maven logger. #153
+ Program output can be difficult to trace and may be jumbled
with Maven logs when running Maven with multiple threads #152
+ Fix type in Property.java #147
+ Correct spelling and remove redundant "small" #142
+ Fix typo #140
+ <timeout> configuration parameter #128
+ Methodhandles #119
+ Introduce Mock Repository Manager #117
+ Improved docs about <environmentVariables/> config of
exec:exec goal #104
+ Add CodeTriage badge to mojohaus/exec-maven-plugin #96
+ [Enhancement] Support for JPMS module path for exec:java #90
- Removed patch:
* exec-maven-plugin-1.6.0-Port-to-Maven-3.patch
+ not needed any more with this version
-------------------------------------------------------------------
Sat Apr 6 12:09:09 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Avoid trivial name repetition in summary.
-------------------------------------------------------------------
Fri Apr 5 14:52:08 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of exec-maven-plugin 1.6.0

88
exec-maven-plugin.spec Normal file
View File

@@ -0,0 +1,88 @@
#
# spec file for package exec-maven-plugin
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: exec-maven-plugin
Version: 3.0.0
Release: 0
Summary: Exec Maven Plugin
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://www.mojohaus.org/exec-maven-plugin/
Source0: https://repo1.maven.org/maven2/org/codehaus/mojo/exec-maven-plugin/%{version}/exec-maven-plugin-%{version}-source-release.zip
Patch0: exec-maven-plugin-ioexception.patch
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: unzip
BuildRequires: mvn(org.apache.commons:commons-exec)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildArch: noarch
%description
A plugin to allow execution of system and Java programs.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n exec-maven-plugin-%{version}
%patch -P 0 -p1
sed -i 's/\r$//' LICENSE.txt
find . -name *.jar -delete
%pom_remove_plugin :animal-sniffer-maven-plugin
#Drop test part. sonatype-aerther not available
%pom_remove_dep :mockito-core
%pom_remove_dep :maven-plugin-testing-harness
%pom_remove_dep :plexus-interpolation
rm -rf src/test/
%build
%{mvn_build} -f
# The tooling generates Java 9+ require, but it a multi-release jar that works with Java 8 just fine
sed -i 's|compilerTarget=9|compilerTarget=1\.8|' .xmvn/properties
sed -i 's|<requiresJava>9</requiresJava>|<requiresJava>1\.8</requiresJava>|' .xmvn-reactor
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt
%dir %{_javadir}/%{name}
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog