public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hawtjni] epel10: Replace plexus-maven-plugin with plexus-containers implementation
@ 2026-07-17  9:03 Stanislav Ochotnicky
  0 siblings, 0 replies; only message in thread
From: Stanislav Ochotnicky @ 2026-07-17  9:03 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/hawtjni
Branch : epel10
Commit : 068838f688037d611f4f94027fe6ca4f995a115b
Author : Stanislav Ochotnicky <sochotnicky@redhat.com>
Date   : 2012-01-19T17:59:56+01:00
Stats  : +151/-84 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/hawtjni/c/068838f688037d611f4f94027fe6ca4f995a115b?branch=epel10

Log:
Replace plexus-maven-plugin with plexus-containers implementation

---
diff --git a/0001-Fix-shading-and-remove-unneeded-modules.patch b/0001-Fix-shading-and-remove-unneeded-modules.patch
new file mode 100644
index 0000000..1a08e02
--- /dev/null
+++ b/0001-Fix-shading-and-remove-unneeded-modules.patch
@@ -0,0 +1,85 @@
+From 226e8614bd078479c3f99712f63f6dfbf1c46b0c Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky@redhat.com>
+Date: Thu, 19 Jan 2012 17:12:16 +0100
+Subject: [PATCH 1/3] Fix shading and remove unneeded modules
+
+---
+ hawtjni-generator/pom.xml    |   28 ----------------------------
+ maven-hawtjni-plugin/pom.xml |    7 +++++++
+ pom.xml                      |    2 --
+ 3 files changed, 7 insertions(+), 30 deletions(-)
+
+diff --git a/hawtjni-generator/pom.xml b/hawtjni-generator/pom.xml
+index fac8cc2..35b8aaa 100644
+--- a/hawtjni-generator/pom.xml
++++ b/hawtjni-generator/pom.xml
+@@ -68,32 +68,4 @@
+     </dependency>
+   </dependencies>
+   
+-  <build>
+-    <plugins>
+-      
+-      <!-- include all the dependencies into the jar so it can run standalone -->
+-      <plugin>
+-        <groupId>org.apache.maven.plugins</groupId>
+-        <artifactId>maven-shade-plugin</artifactId>
+-        <version>1.3</version>
+-        <executions>
+-          <execution>
+-            <phase>package</phase>
+-            <goals>
+-              <goal>shade</goal>
+-            </goals>
+-            <configuration>
+-              <artifactSet>
+-                <excludes>
+-                  <exclude>junit:junit</exclude>
+-                </excludes>
+-              </artifactSet>
+-            </configuration>
+-          </execution>
+-        </executions>
+-      </plugin>
+-      
+-    </plugins>
+-  </build>
+-
+ </project>
+diff --git a/maven-hawtjni-plugin/pom.xml b/maven-hawtjni-plugin/pom.xml
+index 8ef99be..c0f4109 100644
+--- a/maven-hawtjni-plugin/pom.xml
++++ b/maven-hawtjni-plugin/pom.xml
+@@ -74,9 +74,16 @@
+ 
+     <dependency>
+       <groupId>org.apache.maven</groupId>
++      <artifactId>maven-compat</artifactId>
++      <version>3.0.3</version>
++    </dependency>
++
++    <dependency>
++      <groupId>org.apache.maven</groupId>
+       <artifactId>maven-artifact-manager</artifactId>
+       <version>2.0</version>
+     </dependency>
++
+     <dependency>
+       <groupId>org.apache.maven</groupId>
+       <artifactId>maven-artifact</artifactId>
+diff --git a/pom.xml b/pom.xml
+index fe2e17b..dfad938 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -210,8 +210,6 @@
+     <module>hawtjni-runtime</module>
+     <module>hawtjni-generator</module>
+     <module>maven-hawtjni-plugin</module>
+-    <module>hawtjni-example</module>
+-    <module>hawtjni-website</module>
+   </modules>
+ 
+ </project>
+-- 
+1.7.7.4
+

diff --git a/0002-Fix-xbean-compatibility.patch b/0002-Fix-xbean-compatibility.patch
new file mode 100644
index 0000000..e0286d0
--- /dev/null
+++ b/0002-Fix-xbean-compatibility.patch
@@ -0,0 +1,25 @@
+From 6ffdfd242299afb283d619c8ff9d5ce96853f160 Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky@redhat.com>
+Date: Thu, 19 Jan 2012 17:12:42 +0100
+Subject: [PATCH 2/3] Fix xbean compatibility
+
+---
+ .../org/fusesource/hawtjni/generator/HawtJNI.java  |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java b/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java
+index b4727c2..bf710eb 100755
+--- a/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java
++++ b/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java
+@@ -402,7 +402,7 @@ public class HawtJNI {
+     
+     @SuppressWarnings("unchecked")
+     private void collectMatchingClasses(ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector) {
+-        List<Class> annotated = finder.findAnnotatedClasses(annotation);
++        List<Class<?>> annotated = finder.findAnnotatedClasses(annotation);
+         for (Class<?> clazz : annotated) {
+             if( packages.isEmpty() ) {
+                 collector.add(clazz);
+-- 
+1.7.7.4
+

diff --git a/0003-Remove-plexus-maven-plugin-dependency.patch b/0003-Remove-plexus-maven-plugin-dependency.patch
new file mode 100644
index 0000000..bdf6336
--- /dev/null
+++ b/0003-Remove-plexus-maven-plugin-dependency.patch
@@ -0,0 +1,32 @@
+From 61963f6f7827459c551a03985e273d5feb65e55c Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky@redhat.com>
+Date: Thu, 19 Jan 2012 17:13:50 +0100
+Subject: [PATCH 3/3] Remove plexus-maven-plugin dependency
+
+---
+ maven-hawtjni-plugin/pom.xml |    6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/maven-hawtjni-plugin/pom.xml b/maven-hawtjni-plugin/pom.xml
+index c0f4109..efdd192 100644
+--- a/maven-hawtjni-plugin/pom.xml
++++ b/maven-hawtjni-plugin/pom.xml
+@@ -139,12 +139,12 @@
+       </plugin>
+       <plugin>
+         <groupId>org.codehaus.plexus</groupId>
+-        <artifactId>plexus-maven-plugin</artifactId>
+-        <version>1.3.8</version>
++        <artifactId>plexus-component-metadata</artifactId>
++        <version>1.5.5</version>
+         <executions>
+           <execution>
+             <goals>
+-              <goal>descriptor</goal>
++              <goal>generate-metadata</goal>
+             </goals>
+           </execution>
+         </executions>
+-- 
+1.7.7.4
+

diff --git a/hawtjni-1.5-pom.patch b/hawtjni-1.5-pom.patch
deleted file mode 100644
index 3e4b04d..0000000
--- a/hawtjni-1.5-pom.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-diff -Naur hawtjni-1.5/hawtjni-generator/pom.xml hawtjni-1.5-work/hawtjni-generator/pom.xml
---- hawtjni-1.5/hawtjni-generator/pom.xml	2011-09-21 12:20:30.000000000 -0400
-+++ hawtjni-1.5-work/hawtjni-generator/pom.xml	2012-01-14 21:16:52.849967350 -0500
-@@ -68,32 +68,4 @@
-     </dependency>
-   </dependencies>
-   
--  <build>
--    <plugins>
--      
--      <!-- include all the dependencies into the jar so it can run standalone -->
--      <plugin>
--        <groupId>org.apache.maven.plugins</groupId>
--        <artifactId>maven-shade-plugin</artifactId>
--        <version>1.3</version>
--        <executions>
--          <execution>
--            <phase>package</phase>
--            <goals>
--              <goal>shade</goal>
--            </goals>
--            <configuration>
--              <artifactSet>
--                <excludes>
--                  <exclude>junit:junit</exclude>
--                </excludes>
--              </artifactSet>
--            </configuration>
--          </execution>
--        </executions>
--      </plugin>
--      
--    </plugins>
--  </build>
--
- </project>
-diff -Naur hawtjni-1.5/maven-hawtjni-plugin/pom.xml hawtjni-1.5-work/maven-hawtjni-plugin/pom.xml
---- hawtjni-1.5/maven-hawtjni-plugin/pom.xml	2011-09-21 12:20:30.000000000 -0400
-+++ hawtjni-1.5-work/maven-hawtjni-plugin/pom.xml	2012-01-15 08:58:39.970261531 -0500
-@@ -74,9 +74,16 @@
- 
-     <dependency>
-       <groupId>org.apache.maven</groupId>
-+      <artifactId>maven-compat</artifactId>
-+      <version>3.0.3</version>
-+    </dependency>
-+
-+    <dependency>
-+      <groupId>org.apache.maven</groupId>
-       <artifactId>maven-artifact-manager</artifactId>
-       <version>2.0</version>
-     </dependency>
-+
-     <dependency>
-       <groupId>org.apache.maven</groupId>
-       <artifactId>maven-artifact</artifactId>
-diff -Naur hawtjni-1.5/pom.xml hawtjni-1.5-work/pom.xml
---- hawtjni-1.5/pom.xml	2011-09-21 12:20:30.000000000 -0400
-+++ hawtjni-1.5-work/pom.xml	2012-01-14 21:15:42.238961785 -0500
-@@ -210,8 +210,6 @@
-     <module>hawtjni-runtime</module>
-     <module>hawtjni-generator</module>
-     <module>maven-hawtjni-plugin</module>
--    <module>hawtjni-example</module>
--    <module>hawtjni-website</module>
-   </modules>
- 
- </project>

diff --git a/hawtjni-1.5-xbean.patch b/hawtjni-1.5-xbean.patch
deleted file mode 100644
index e9ccf6e..0000000
--- a/hawtjni-1.5-xbean.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur hawtjni-1.5/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java hawtjni-1.5-work/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java
---- hawtjni-1.5/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java	2011-09-21 12:20:30.000000000 -0400
-+++ hawtjni-1.5-work/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/HawtJNI.java	2012-01-15 09:15:52.681253759 -0500
-@@ -402,7 +402,7 @@
-     
-     @SuppressWarnings("unchecked")
-     private void collectMatchingClasses(ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector) {
--        List<Class> annotated = finder.findAnnotatedClasses(annotation);
-+        List<Class<?>> annotated = finder.findAnnotatedClasses(annotation);
-         for (Class<?> clazz : annotated) {
-             if( packages.isEmpty() ) {
-                 collector.add(clazz);

diff --git a/hawtjni.spec b/hawtjni.spec
index ad27e70..d8665d1 100644
--- a/hawtjni.spec
+++ b/hawtjni.spec
@@ -1,6 +1,6 @@
 Name:             hawtjni
 Version:          1.5
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          Code generator that produces the JNI code
 Group:            Development/Libraries
 License:          ASL 2.0 and EPL and BSD
@@ -9,8 +9,9 @@ URL:              http://hawtjni.fusesource.org/
 # git clone git://github.com/fusesource/hawtjni.git
 # cd hawtjni && git archive --format=tar --prefix=hawtjni-1.5/ hawtjni-project-1.5 | xz > hawtjni-1.5.tar.xz
 Source0:          %{name}-%{version}.tar.xz
-Patch0:           %{name}-%{version}-pom.patch
-Patch1:           %{name}-%{version}-xbean.patch
+Patch0:           0001-Fix-shading-and-remove-unneeded-modules.patch
+Patch1:           0002-Fix-xbean-compatibility.patch
+Patch2:           0003-Remove-plexus-maven-plugin-dependency.patch
 
 BuildArch:        noarch
 
@@ -18,7 +19,6 @@ BuildRequires:    jpackage-utils
 BuildRequires:    java-devel
 BuildRequires:    maven
 BuildRequires:    maven-compiler-plugin
-BuildRequires:    plexus-maven-plugin
 BuildRequires:    maven-idea-plugin
 BuildRequires:    maven-plugin-plugin
 BuildRequires:    maven-surefire-report-plugin
@@ -29,6 +29,7 @@ BuildRequires:    maven-eclipse-plugin
 BuildRequires:    maven-surefire-plugin
 BuildRequires:    maven-clean-plugin
 BuildRequires:    maven-surefire-provider-junit4
+BuildRequires:    plexus-containers-component-metadata
 BuildRequires:    log4j
 BuildRequires:    junit4
 BuildRequires:    fusesource-pom
@@ -72,6 +73,7 @@ This package allows to use HawtJNI from a maven plugin.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 mvn-rpmbuild install javadoc:aggregate
@@ -117,6 +119,9 @@ install -pm 644 maven-%{name}-plugin/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-
 %{_javadir}/maven-%{name}-plugin.jar
 
 %changelog
+* Thu Jan 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-2
+- Replace plexus-maven-plugin with plexus-containers implementation
+
 * Sun Jan 15 2012 Marek Goldmann <mgoldman@redhat.com> 1.5-1
 - Upstream release 1.5
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-17  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17  9:03 [rpms/hawtjni] epel10: Replace plexus-maven-plugin with plexus-containers implementation Stanislav Ochotnicky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox