Compare commits
No commits in common. "9247081c0ab03b01763c0fd198fe6abb2770256c" and "26cd7686a68f5ffa60828c19d69413181a88736f" have entirely different histories.
9247081c0a
...
26cd7686a6
@ -1,186 +0,0 @@
|
|||||||
From 92ae7610d3af4e9a4785b4009a86e852b462f3d0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: wang--ge <wang__ge@126.com>
|
|
||||||
Date: Fri, 31 Dec 2021 17:45:51 +0800
|
|
||||||
Subject: [PATCH] fix maven compiler plugin release flag
|
|
||||||
|
|
||||||
---
|
|
||||||
stax-ex/pom.xml | 121 +++++++++---------------------------------------
|
|
||||||
1 file changed, 21 insertions(+), 100 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/stax-ex/pom.xml b/stax-ex/pom.xml
|
|
||||||
index 7d59984..b6a91ac 100644
|
|
||||||
--- a/stax-ex/pom.xml
|
|
||||||
+++ b/stax-ex/pom.xml
|
|
||||||
@@ -127,30 +127,11 @@
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<version>3.1.0</version>
|
|
||||||
</plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
- <version>2.8.2</version>
|
|
||||||
- </plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.codehaus.mojo</groupId>
|
|
||||||
- <artifactId>findbugs-maven-plugin</artifactId>
|
|
||||||
- <version>3.0.5</version>
|
|
||||||
- </plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.glassfish.copyright</groupId>
|
|
||||||
- <artifactId>glassfish-copyright-maven-plugin</artifactId>
|
|
||||||
- <version>1.49</version>
|
|
||||||
- </plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>cobertura-maven-plugin</artifactId>
|
|
||||||
<version>2.7</version>
|
|
||||||
</plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.codehaus.mojo</groupId>
|
|
||||||
- <artifactId>buildnumber-maven-plugin</artifactId>
|
|
||||||
- <version>1.4</version>
|
|
||||||
- </plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
@@ -190,7 +171,9 @@
|
|
||||||
<!--compile all as JPMS module-->
|
|
||||||
<id>default-compile</id>
|
|
||||||
<configuration>
|
|
||||||
- <release>9</release>
|
|
||||||
+ <source>1.7</source>
|
|
||||||
+ <target>1.7</target>
|
|
||||||
+ <encoding>UTF-8</encoding>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
@@ -200,60 +183,33 @@
|
|
||||||
<goal>compile</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
- <release>7</release>
|
|
||||||
- <excludes>
|
|
||||||
- <exclude>module-info.java</exclude>
|
|
||||||
- </excludes>
|
|
||||||
+ <source>1.7</source>
|
|
||||||
+ <target>1.7</target>
|
|
||||||
+ <encoding>UTF-8</encoding>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
- <release>7</release>
|
|
||||||
+ <source>1.7</source>
|
|
||||||
+ <target>1.7</target>
|
|
||||||
+ <encoding>UTF-8</encoding>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
- <configuration>
|
|
||||||
- <additionalparam>-Xdoclint:none</additionalparam>
|
|
||||||
- </configuration>
|
|
||||||
- </plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.codehaus.mojo</groupId>
|
|
||||||
- <artifactId>findbugs-maven-plugin</artifactId>
|
|
||||||
- <configuration>
|
|
||||||
- <skip>${findbugs.skip}</skip>
|
|
||||||
- <threshold>${findbugs.threshold}</threshold>
|
|
||||||
- <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
|
|
||||||
- <excludeFilterFile>
|
|
||||||
- exclude-common.xml,${findbugs.exclude}
|
|
||||||
- </excludeFilterFile>
|
|
||||||
- <fork>true</fork>
|
|
||||||
- <jvmArgs>-Xms64m -Xmx256m</jvmArgs>
|
|
||||||
- </configuration>
|
|
||||||
- <dependencies>
|
|
||||||
- <dependency>
|
|
||||||
- <groupId>org.glassfish.findbugs</groupId>
|
|
||||||
- <artifactId>findbugs</artifactId>
|
|
||||||
- <version>1.7</version>
|
|
||||||
- </dependency>
|
|
||||||
- </dependencies>
|
|
||||||
- </plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.glassfish.copyright</groupId>
|
|
||||||
- <artifactId>glassfish-copyright-maven-plugin</artifactId>
|
|
||||||
- <configuration>
|
|
||||||
- <templateFile>${project.basedir}/copyright.txt</templateFile>
|
|
||||||
- <excludeFile>${project.basedir}/copyright-exclude</excludeFile>
|
|
||||||
- <!-- skip files not under SCM-->
|
|
||||||
- <scmOnly>true</scmOnly>
|
|
||||||
- <!-- turn off warnings -->
|
|
||||||
- <warn>true</warn>
|
|
||||||
- <!-- for use with repair -->
|
|
||||||
- <update>false</update>
|
|
||||||
- <!-- check that year is correct -->
|
|
||||||
- <ignoreYear>false</ignoreYear>
|
|
||||||
- </configuration>
|
|
||||||
+ <executions>
|
|
||||||
+ <execution>
|
|
||||||
+ <id>attach-javadocs</id>
|
|
||||||
+ <phase>package</phase>
|
|
||||||
+ <goals>
|
|
||||||
+ <goal>jar</goal>
|
|
||||||
+ </goals>
|
|
||||||
+ <configuration>
|
|
||||||
+ <additionalJOption>-Xdoclint:none</additionalJOption>
|
|
||||||
+ </configuration>
|
|
||||||
+ </execution>
|
|
||||||
+ </executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
@@ -269,34 +225,6 @@
|
|
||||||
</check>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.codehaus.mojo</groupId>
|
|
||||||
- <artifactId>buildnumber-maven-plugin</artifactId>
|
|
||||||
- <configuration>
|
|
||||||
- <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
|
|
||||||
- <timestampFormat>{0,date,yyyy-MM-dd'T'HH:mm:ssZ}</timestampFormat>
|
|
||||||
- <providerImplementations>
|
|
||||||
- <svn>javasvn</svn>
|
|
||||||
- </providerImplementations>
|
|
||||||
- <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
|
|
||||||
- <revisionOnScmFailure>false</revisionOnScmFailure>
|
|
||||||
- </configuration>
|
|
||||||
- <executions>
|
|
||||||
- <execution>
|
|
||||||
- <phase>validate</phase>
|
|
||||||
- <goals>
|
|
||||||
- <goal>create</goal>
|
|
||||||
- </goals>
|
|
||||||
- </execution>
|
|
||||||
- </executions>
|
|
||||||
- <dependencies>
|
|
||||||
- <dependency>
|
|
||||||
- <groupId>org.tmatesoft.svnkit</groupId>
|
|
||||||
- <artifactId>svnkit</artifactId>
|
|
||||||
- <version>1.7.4-v1</version>
|
|
||||||
- </dependency>
|
|
||||||
- </dependencies>
|
|
||||||
- </plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
@@ -324,13 +252,6 @@
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
- <plugin>
|
|
||||||
- <groupId>org.apache.maven.plugins</groupId>
|
|
||||||
- <artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
- <configuration>
|
|
||||||
- <retryFailedDeploymentCount>10</retryFailedDeploymentCount>
|
|
||||||
- </configuration>
|
|
||||||
- </plugin>
|
|
||||||
</plugins>
|
|
||||||
|
|
||||||
</build>
|
|
||||||
--
|
|
||||||
2.30.0
|
|
||||||
|
|
||||||
BIN
1.8.tar.gz
BIN
1.8.tar.gz
Binary file not shown.
BIN
stax-ex-1.7.7.tar.gz
Normal file
BIN
stax-ex-1.7.7.tar.gz
Normal file
Binary file not shown.
61
stax-ex.spec
61
stax-ex.spec
@ -1,14 +1,13 @@
|
|||||||
Name: stax-ex
|
Name: stax-ex
|
||||||
Version: 1.8
|
Version: 1.7.7
|
||||||
Release: 2
|
Release: 10
|
||||||
Summary: StAX API extensions
|
Summary: StAX API extensions
|
||||||
License: CDDL-1.1 or GPLv2
|
License: CDDL or GPLv2
|
||||||
Url: https://stax-ex.dev.java.net
|
Url: https://stax-ex.dev.java.net
|
||||||
Source0: https://github.com/javaee/metro-stax-ex/archive/%{version}.tar.gz
|
Source0: https://github.com/javaee/metro-stax-ex/archive/stax-ex-%{version}.tar.gz
|
||||||
Source1: xmvn-reactor
|
BuildRequires: dos2unix maven-local mvn(javax.xml.stream:stax-api) mvn(junit:junit)
|
||||||
Patch0: 0001-fix-maven-compiler-plugin-release-flag.patch
|
BuildRequires: mvn(net.java:jvnet-parent:pom:) mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
BuildRequires: maven java-1.8.0-openjdk-devel dos2unix maven-local
|
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
||||||
Requires: javapackages-tools java-1.8.0-openjdk
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -26,53 +25,29 @@ Obsoletes: stax-ex-javadoc < %{version}-%{release}
|
|||||||
The package provides javadoc for stax-ex.
|
The package provides javadoc for stax-ex.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n metro-stax-ex-%{version} -p1
|
%autosetup -n metro-stax-ex-stax-ex-%{version} -p1 -S git
|
||||||
find . -name '*.jar' -print -delete
|
%pom_remove_dep javax.activation:activation
|
||||||
find . -name '*.class' -print -delete
|
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
|
||||||
pushd %{name}
|
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
|
||||||
cp %{SOURCE1} ./.xmvn-reactor
|
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
|
||||||
echo `pwd` > absolute_prefix.log
|
%pom_remove_plugin org.apache.maven.plugins:maven-deploy-plugin
|
||||||
sed -i 's/\//\\\//g' absolute_prefix.log
|
|
||||||
absolute_prefix=`head -n 1 absolute_prefix.log`
|
|
||||||
sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor
|
|
||||||
rm -rf src/java/module-info.java
|
|
||||||
mv LICENSE.txt LICENSE.txt.tmp
|
mv LICENSE.txt LICENSE.txt.tmp
|
||||||
iconv -f ISO-8859-1 -t UTF-8 LICENSE.txt.tmp > LICENSE.txt
|
iconv -f ISO-8859-1 -t UTF-8 LICENSE.txt.tmp > LICENSE.txt
|
||||||
dos2unix LICENSE.txt
|
dos2unix LICENSE.txt
|
||||||
%mvn_file :stax-ex stax-ex
|
%mvn_file :stax-ex stax-ex
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd %{name}
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
||||||
mvn -Dproject.build.sourceEncoding=UTF-8 -DskipTests -DskipIT package
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd %{name}
|
|
||||||
%mvn_install
|
%mvn_install
|
||||||
popd
|
|
||||||
install -d -m 0755 %{buildroot}/%{_javadocdir}/%{name}
|
|
||||||
install -m 0755 %{name}/target/stax-ex-1.8-javadoc.jar %{buildroot}/%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%files -f %{name}/.mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE
|
%license LICENSE.txt
|
||||||
|
|
||||||
%files help
|
%files help -f .mfiles-javadoc
|
||||||
%license LICENSE
|
%license LICENSE.txt
|
||||||
%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jul 5 2022 Chenyx <chenyixiong3@huawei.com> - 1.8-2
|
|
||||||
- License compliance rectification
|
|
||||||
|
|
||||||
* Tue Apr 19 2022 wangkai <wangkai385@h-partners.com> - 1.8-1
|
|
||||||
- Update to version 1.8
|
|
||||||
|
|
||||||
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.7.7-12
|
|
||||||
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
||||||
|
|
||||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.7.7-11
|
|
||||||
- Completing build dependencies to fix git commands missing error
|
|
||||||
|
|
||||||
* Thu Apr 30 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.7.7-10
|
* Thu Apr 30 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.7.7-10
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: github
|
version-control: github
|
||||||
src_repo: javaee/metro-stax-ex
|
src_repo: javaee/metro-stax-ex
|
||||||
tag_prefix: ^stax-ex-
|
tag_prefix: stax-ex-
|
||||||
seperator: .
|
seperator: .
|
||||||
|
|||||||
26
xmvn-reactor
26
xmvn-reactor
@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<metadata xmlns="http://fedorahosted.org/xmvn/METADATA/3.0.0">
|
|
||||||
<artifacts>
|
|
||||||
<artifact>
|
|
||||||
<groupId>org.jvnet.staxex</groupId>
|
|
||||||
<artifactId>stax-ex</artifactId>
|
|
||||||
<version>1.8</version>
|
|
||||||
<path>absolute-prefix/target/stax-ex-1.8.jar</path>
|
|
||||||
<properties>
|
|
||||||
<type>jar</type>
|
|
||||||
<requiresJava>1.6</requiresJava>
|
|
||||||
</properties>
|
|
||||||
</artifact>
|
|
||||||
<artifact>
|
|
||||||
<groupId>org.jvnet.staxex</groupId>
|
|
||||||
<artifactId>stax-ex</artifactId>
|
|
||||||
<extension>pom</extension>
|
|
||||||
<version>1.8</version>
|
|
||||||
<path>absolute-prefix/pom.xml</path>
|
|
||||||
<properties>
|
|
||||||
<type>jar</type>
|
|
||||||
<requiresJava>1.6</requiresJava>
|
|
||||||
</properties>
|
|
||||||
</artifact>
|
|
||||||
</artifacts>
|
|
||||||
</metadata>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user