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

96
pom.xml
View File

@ -1,57 +1,78 @@
<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>
<artifactId>sitemap-j</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.1.3-SNAPSHOT</version> <version>1.1.3-SNAPSHOT</version>
<name>SitemapGen4J</name>
<url>https://github.com/dfabulich/sitemapgen4j/</url> <name>SitemapJ</name>
<description>SitemapGen4j is an XML sitemap generator written in Java.</description> <url>https://github.com/honeymoose/sitemap-j</url>
<licenses> <description>SitemapJ is an XML sitemap generator written in Java.</description>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm> <scm>
<connection>scm:git:git://github.com:dfabulich/sitemapgen4j.git</connection> <connection>scm:git:git://github.com:dfabulich/sitemapgen4j.git</connection>
<developerConnection>scm:git:git@github.com:dfabulich/sitemapgen4j.git</developerConnection> <developerConnection>scm:git:git@github.com:dfabulich/sitemapgen4j.git</developerConnection>
<url>https://github.com/dfabulich/sitemapgen4j/</url> <url>https://github.com/dfabulich/sitemapgen4j/</url>
</scm> </scm>
<properties> <properties>
<java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<developers> <developers>
<developer> <developer>
<id>dfabulich</id> <name>YuCheng Hu</name>
<name>Dan Fabulich</name> <id>honeymoose</id>
<email>dan@fabulich.com</email> <email>huyuchengus@gmail.com</email>
<organization>Redfin</organization> <timezone>-5</timezone>
<organizationUrl>http://www.redfin.com/</organizationUrl> <organization>Open Source</organization>
<timezone>-8</timezone> <roles>
<role>Sr. Java Developer</role>
</roles>
</developer> </developer>
</developers> </developers>
<licenses>
<license>
<name>The MIT license</name>
<url>https://opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<distributionManagement> <distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository> <repository>
<id>ossrh</id> <id>ossez-repo</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> <url>https://repo.ossez.com/repository/maven-releases/</url>
</repository> </repository>
<snapshotRepository>
<id>ossez-repo</id>
<url>https://repo.ossez.com/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement> </distributionManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build> <build>
<defaultGoal>install</defaultGoal> <defaultGoal>install</defaultGoal>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.5.1</version>
<configuration> <configuration>
<source>1.5</source> <fork>true</fork>
<target>1.5</target> <compilerReuseStrategy>alwaysNew</compilerReuseStrategy>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
@ -102,25 +123,8 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project> </project>