Update pom file and by use JDK 11 to build

This commit is contained in:
YuCheng Hu 2022-12-14 23:23:54 -05:00
parent 619bcfce92
commit 871f58e1d5
1 changed files with 128 additions and 124 deletions

252
pom.xml
View File

@ -1,126 +1,130 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.github.dfabulich</groupId>
<artifactId>sitemapgen4j</artifactId> <groupId>com.ossez</groupId>
<packaging>jar</packaging> <artifactId>sitemap-j</artifactId>
<version>1.1.3-SNAPSHOT</version> <packaging>jar</packaging>
<name>SitemapGen4J</name> <version>1.1.3-SNAPSHOT</version>
<url>https://github.com/dfabulich/sitemapgen4j/</url>
<description>SitemapGen4j is an XML sitemap generator written in Java.</description> <name>SitemapJ</name>
<licenses> <url>https://github.com/honeymoose/sitemap-j</url>
<license> <description>SitemapJ is an XML sitemap generator written in Java.</description>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <scm>
<distribution>repo</distribution> <connection>scm:git:git://github.com:dfabulich/sitemapgen4j.git</connection>
</license> <developerConnection>scm:git:git@github.com:dfabulich/sitemapgen4j.git</developerConnection>
</licenses> <url>https://github.com/dfabulich/sitemapgen4j/</url>
<scm> </scm>
<connection>scm:git:git://github.com:dfabulich/sitemapgen4j.git</connection> <properties>
<developerConnection>scm:git:git@github.com:dfabulich/sitemapgen4j.git</developerConnection> <java.version>11</java.version>
<url>https://github.com/dfabulich/sitemapgen4j/</url> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</scm> </properties>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <developers>
</properties> <developer>
<developers> <name>YuCheng Hu</name>
<developer> <id>honeymoose</id>
<id>dfabulich</id> <email>huyuchengus@gmail.com</email>
<name>Dan Fabulich</name> <timezone>-5</timezone>
<email>dan@fabulich.com</email> <organization>Open Source</organization>
<organization>Redfin</organization> <roles>
<organizationUrl>http://www.redfin.com/</organizationUrl> <role>Sr. Java Developer</role>
<timezone>-8</timezone> </roles>
</developer> </developer>
</developers> </developers>
<distributionManagement> <licenses>
<snapshotRepository> <license>
<id>ossrh</id> <name>The MIT license</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url> <url>https://opensource.org/licenses/mit-license.php</url>
</snapshotRepository> <distribution>repo</distribution>
<repository> </license>
<id>ossrh</id> </licenses>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository> <distributionManagement>
</distributionManagement> <repository>
<build> <id>ossez-repo</id>
<defaultGoal>install</defaultGoal> <url>https://repo.ossez.com/repository/maven-releases/</url>
<plugins> </repository>
<plugin> <snapshotRepository>
<artifactId>maven-compiler-plugin</artifactId> <id>ossez-repo</id>
<version>3.1</version> <url>https://repo.ossez.com/repository/maven-snapshots/</url>
<configuration> </snapshotRepository>
<source>1.5</source> </distributionManagement>
<target>1.5</target>
</configuration> <dependencies>
</plugin> <dependency>
<plugin> <groupId>junit</groupId>
<groupId>org.apache.maven.plugins</groupId> <artifactId>junit</artifactId>
<artifactId>maven-eclipse-plugin</artifactId> <version>3.8.1</version>
<version>2.5.1</version> <scope>test</scope>
</plugin> </dependency>
<plugin> </dependencies>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <build>
<version>2.4</version> <defaultGoal>install</defaultGoal>
<executions> <plugins>
<execution> <plugin>
<id>attach-sources</id> <groupId>org.apache.maven.plugins</groupId>
<goals> <artifactId>maven-compiler-plugin</artifactId>
<goal>jar-no-fork</goal> <version>3.5.1</version>
</goals> <configuration>
</execution> <fork>true</fork>
</executions> <compilerReuseStrategy>alwaysNew</compilerReuseStrategy>
</plugin> <source>${java.version}</source>
<plugin> <target>${java.version}</target>
<groupId>org.apache.maven.plugins</groupId> </configuration>
<artifactId>maven-javadoc-plugin</artifactId> </plugin>
<version>2.10.1</version> <plugin>
<executions> <groupId>org.apache.maven.plugins</groupId>
<execution> <artifactId>maven-eclipse-plugin</artifactId>
<id>attach-javadocs</id> <version>2.5.1</version>
<goals> </plugin>
<goal>jar</goal> <plugin>
</goals> <groupId>org.apache.maven.plugins</groupId>
<configuration> <artifactId>maven-source-plugin</artifactId>
<additionalparam>-Xdoclint:none</additionalparam> <version>2.4</version>
</configuration> <executions>
</execution> <execution>
</executions> <id>attach-sources</id>
</plugin> <goals>
<plugin> <goal>jar-no-fork</goal>
<groupId>org.apache.maven.plugins</groupId> </goals>
<artifactId>maven-gpg-plugin</artifactId> </execution>
<version>1.5</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>sign-artifacts</id> <groupId>org.apache.maven.plugins</groupId>
<phase>verify</phase> <artifactId>maven-javadoc-plugin</artifactId>
<goals> <version>2.10.1</version>
<goal>sign</goal> <executions>
</goals> <execution>
</execution> <id>attach-javadocs</id>
</executions> <goals>
</plugin> <goal>jar</goal>
<plugin> </goals>
<groupId>org.sonatype.plugins</groupId> <configuration>
<artifactId>nexus-staging-maven-plugin</artifactId> <additionalparam>-Xdoclint:none</additionalparam>
<version>1.6.3</version> </configuration>
<extensions>true</extensions> </execution>
<configuration> </executions>
<serverId>ossrh</serverId> </plugin>
<nexusUrl>https://oss.sonatype.org/</nexusUrl> <plugin>
<autoReleaseAfterClose>false</autoReleaseAfterClose> <groupId>org.apache.maven.plugins</groupId>
</configuration> <artifactId>maven-gpg-plugin</artifactId>
</plugin> <version>1.5</version>
</plugins> <executions>
</build> <execution>
<dependencies> <id>sign-artifacts</id>
<dependency> <phase>verify</phase>
<groupId>junit</groupId> <goals>
<artifactId>junit</artifactId> <goal>sign</goal>
<version>3.8.1</version> </goals>
<scope>test</scope> </execution>
</dependency> </executions>
</dependencies> </plugin>
</plugins>
</build>
</project> </project>