17
0

4 Commits

5 changed files with 137 additions and 27 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,12 +0,0 @@
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 );
}

View File

@@ -1,3 +1,123 @@
-------------------------------------------------------------------
Mon Jul 21 09:15:07 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 3.5.1
- Changes of 3.5.1
* Bug Fixes
+ Add ClassLoader support for ASM ClassWriter
* Maintenance
+ Fix ITs for Maven 4 rc-3
+ Document how to use env vars in commandlineArgs
- Changes of 3.5.0
* New features and improvements
+ Add toolchain java path to environment variables in ExecMojo
* Bug Fixes
+ #322, enable to control the exec:java interaction with JVM
classloader more finely
* Maintenance
+ Update site descriptor to 2.0.0
+ Toolchains manual improvements
+ Manage version of maven-toolchains-plugin
- Changes of 3.4.1
* Bug Fixes
+ Environment variable Path should be used as case-insensitive
+ fix: NPE because declared MavenSession field hides field of
superclass
* Maintenance
+ Remove redundant spotless configuration
* Build
+ Use Maven4 enabled with GH Action
+ Use shared release drafter GH Action
- Chages of 3.4.0
* New features and improvements
+ Allow <includePluginDependencies> to be specified for the
exec:exec goal
* Bug Fixes
+ Do not get UPPERCASE env vars
* Maintenance
+ Remove Log4j 1.2.x from ITs
* Build
+ Use Maven 3.9.7 and 4.0.0-beta-3
- Changes of 3.3.0
* New features and improvements
+ Add option to include runtime and provided
- Changes of 3.2.0
* New features and improvements
+ Enable to exec:java runnables and not only mains with loosely
coupled injections
+ Try to get rid of legacy API which can break starting with
java 17
* Bug Fixes
+ Fix #401 - Maven v4 compatibility
* Maintenance
+ ITs improvement
+ Fix documentation formatting, add menu items for new examples
+ Execute mexec-137 also on unix family
+ Remove unused test
* Build
+ Bump release-drafter/release-drafter from 5 to 6
- Changes of 3.1.1
* New features and improvements
+ Remove unused killAfter options
+ [#391] Cope with Thread::stop being unavailable in JDK 20+
+ Only prefix program output with thread name when running with
multiple threads
+ [#389] Add option 'blockSystemExit' to 'java' mojo
+ Require Maven 3.6.3+
+ Ensure maven.properties can be forwarded to system properties
for exec:java
* Bug Fixes
+ Fix #158 - Fix non ascii character handling
+ [#323] exec arguments missing
* Maintenance
+ Code cleanups - use newer JDK features
+ Enable spotless for code formatting
+ Require Maven 3.6.3+
+ ITs cleanups
+ Use Resolver Api for dependency resolving
* Build
+ Workaround for concurrent access to local repository on
Windows by ITs
+ Use Maven 3.9.4, 3.8.8 in GitHub build
- Changes of 3.1.0
* New features and improvements
+ Require Maven 3.2.5
+ Support stream inheritance for the forked process, fixes #71
* Bug Fixes
+ Fix NullPointerException when using plugin dependencies in
version 1.6.0
+ preload common pool - issue #198
+ fix handling of LongModulePathArgument and LongClassPathArgument
+ Do not drop environment variables that contain '=' in their value,
or have no value.
+ Empty argument tag should add empty string instead of null
+ Fixes #160, ensure the java classloader is a child first one and
supports to excludes some gathered classpath element to solve
manually conflicts
* Maintenance
+ Get rid of maven-artifact-transfer from dependencies
+ Cleanup project site
+ Cleanup project
+ Fix build badge for current CI system
+ Enforce JAVA_HOME for ITs
+ Drop Invokable interface
+ Remove unused class
+ Remove unused class and profile to build it
+ Remove unused imports
+ Remove unused fields
+ Bump sniffed signatures
+ fix issue with IBM semu 11
+ [DEPS] remove unused logging dependencies.
+ Fixed message: Removed duplicate space
+ Fix spelling in error msg (occured -> occurred)
* Build
+ Testing with Maven 3.2.5 and 3.8.6
+ use shared gh action from ASF
+ use Temurin JDK
- Removed patch:
* exec-maven-plugin-ioexception.patch
+ not needed with this version
-------------------------------------------------------------------
Wed Feb 21 10:42:51 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
@@ -16,7 +136,7 @@ Tue Oct 25 14:01:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>
* 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.
thrown in functions where it is actually not thrown.
-------------------------------------------------------------------
Tue Mar 22 08:31:00 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package exec-maven-plugin
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,30 +16,36 @@
#
# The automatic requires would be java-headless >= 9, but the
# binaries are java 8 compatible
%define __requires_exclude java-headless
Name: exec-maven-plugin
Version: 3.0.0
Version: 3.5.1
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: java-devel >= 9
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-dependency-plugin)
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-compat)
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)
BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)
Requires: java-headless >= 1.8
BuildArch: noarch
%description
@@ -54,7 +60,6 @@ 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
@@ -64,17 +69,14 @@ find . -name *.jar -delete
#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/
%pom_xpath_set pom:project/pom:properties/pom:mavenVersion 3
%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