diff --git a/pom-compiler-source-target.patch b/pom-compiler-source-target.patch
new file mode 100644
index 0000000..4bc9202
--- /dev/null
+++ b/pom-compiler-source-target.patch
@@ -0,0 +1,23 @@
+--- a/pom.xml.orig 2013-03-29 14:56:54.171650079 +0000
++++ b/pom.xml 2013-03-29 14:58:21.818455592 +0000
+@@ -156,6 +156,20 @@
+
+
+
++
++
++
++ org.apache.maven.plugins
++ maven-compiler-plugin
++ 2.5.0
++
++ 1.6
++ 1.6
++
++
++
++
++
+
+
+ run-its
diff --git a/rmic-maven-plugin-1.2.1.zip b/rmic-maven-plugin-1.2.1.zip
new file mode 100644
index 0000000..ca3720f
Binary files /dev/null and b/rmic-maven-plugin-1.2.1.zip differ
diff --git a/rmic-maven-plugin.spec b/rmic-maven-plugin.spec
new file mode 100644
index 0000000..845f0d9
--- /dev/null
+++ b/rmic-maven-plugin.spec
@@ -0,0 +1,46 @@
+Name: rmic-maven-plugin
+Version: 1.2.1
+Release: 1
+Summary: Uses the java rmic compiler to generate classes used in remote method invocation
+License: MIT
+URL: http://www.mojohaus.org/rmic-maven-plugin
+BuildArch: noarch
+Source0: http://github.com/mojohaus/%{name}/archive/%{name}-%{version}.zip
+Patch0: pom-compiler-source-target.patch
+BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.maven:maven-model:2.0.6)
+BuildRequires: mvn(org.apache.maven:maven-plugin-api) mvn(org.apache.maven:maven-project)
+BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
+BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
+BuildRequires: mvn(org.codehaus.plexus:plexus-archiver)
+BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
+BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
+BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
+%description
+This plugin works with Maven 2 and uses the java rmic compiler to generate
+classes used in remote method invocation.
+
+%package javadoc
+Summary: Javadoc for %{name}
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%autosetup -n %{name}-%{name}-%{version} -p1
+sed -i -e "s|groupId>plexus|groupId>org.codehaus.plexus|g" pom.xml
+%pom_add_dep "junit:junit::test"
+
+%build
+%mvn_build -- -Dmaven.test.failure.ignore=true
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc License.txt
+
+%files javadoc -f .mfiles-javadoc
+%doc License.txt
+
+%changelog
+* Thu Jul 30 2020 wangyue - 1.2.1-1
+- package init
diff --git a/rmic-maven-plugin.yaml b/rmic-maven-plugin.yaml
new file mode 100644
index 0000000..52c3cd9
--- /dev/null
+++ b/rmic-maven-plugin.yaml
@@ -0,0 +1,5 @@
+git_url: https://github.com/mojohaus/rmic-maven-plugin
+version_control: github
+src_repo: mojohaus/rmic-maven-plugin
+tag_prefix: "^rmic-maven-plugin-"
+seperator: "."