From 030cd1d8a182b6544555662c1157071520938e3b Mon Sep 17 00:00:00 2001 From: Liao Xin <93535922+liewstar@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:47:00 +0800 Subject: [PATCH] feat: fix pom.xml to fix CI for publishing to https://central.sonatype.com (#11) * fix: add junit dependency * feat: fix pom.xml to fix CI for publishing to https://central.sonatype.com * fix: update pom.xml --- pom.xml | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 134 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 9bb3765..a8ddee6 100644 --- a/pom.xml +++ b/pom.xml @@ -19,9 +19,9 @@ - org.sonatype.oss - oss-parent - 7 + org.springframework.boot + spring-boot-starter-parent + 2.7.12 @@ -46,18 +46,15 @@ ossrh - https://oss.sonatype.org/content/repositories/snapshots + https://central.sonatype.com - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - mysql mysql-connector-java + 8.0.33 org.casbin @@ -80,6 +77,135 @@ spring-boot-starter-test + + junit + junit + test + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + --pinentry-mode + loopback + + + + + org.eluder.coveralls + coveralls-maven-plugin + 4.3.0 + + + org.jacoco + jacoco-maven-plugin + 0.7.6.201602180812 + + + prepare-agent + + prepare-agent + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + 11 + false + + -Xdoclint:none + + + notnull + a + Not null + + + default + a + Default: + + + + + + + attach-javadocs + + jar + + + + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.5.0 + true + + ossrh + true + + true + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + html + xml + + + + + + + \ No newline at end of file