feat: 修改deploy问题
All checks were successful
Redis序列化结构检查 / redis-schema-check (push) Has been skipped

This commit is contained in:
2026-07-13 16:04:13 +08:00
parent 30e530c0bf
commit 327546b127

64
pom.xml
View File

@@ -6,7 +6,7 @@
<groupId>com.codechecker</groupId>
<artifactId>redis-schema-checker</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>redis-schema-checker</name>
@@ -23,16 +23,23 @@
<picocli.version>4.7.5</picocli.version>
<junit.version>5.10.2</junit.version>
<maven.shade.version>3.5.1</maven.shade.version>
<!-- 制品库上传开关:默认关闭,发布时加 -Dnexus.deploy.enabled=true -->
<nexus.deploy.enabled>false</nexus.deploy.enabled>
<!-- server.id 必须与 settings.xml 中 <server><id> 一致 -->
<nexus.repository.id>fantaibao-fantaibao-maven-repository</nexus.repository.id>
<!-- 上传必须用 hosted 仓库group 仓库只能拉依赖不能 deploy -->
<nexus.repository.url>http://192.168.3.25:18081/nexus/repository/maven-releases/</nexus.repository.url>
<nexus.snapshots.repository.url>${nexus.repository.url}</nexus.snapshots.repository.url>
<maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version>
</properties>
<!--
发布到 Nexus与 code-checker / scheduletask 一致,写在主 POM不用 profile 包裹)
凭证:~/.m2/settings.xml 中 server.id 必须为 fantaibao-fantaibao-maven-repository
mvn clean deploy -DskipTests
-->
<distributionManagement>
<repository>
<id>fantaibao-fantaibao-maven-repository</id>
<name>maven-releases</name>
<url>http://192.168.3.25:18081/nexus/repository/maven-releases/</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.github.javaparser</groupId>
@@ -66,49 +73,14 @@
</dependency>
</dependencies>
<profiles>
<profile>
<id>deploy-nexus</id>
<activation>
<property>
<name>nexus.deploy.enabled</name>
<value>true</value>
</property>
</activation>
<distributionManagement>
<repository>
<id>${nexus.repository.id}</id>
<url>${nexus.repository.url}</url>
</repository>
<snapshotRepository>
<id>${nexus.repository.id}</id>
<url>${nexus.snapshots.repository.url}</url>
</snapshotRepository>
</distributionManagement>
<build>
<finalName>redis-schema-checker-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>deploy-to-nexus</id>
<phase>package</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<version>${maven.deploy.plugin.version}</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<finalName>redis-schema-checker-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>