187 lines
7.4 KiB
Diff
187 lines
7.4 KiB
Diff
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
|
|
|