feat: 修改deploy问题
All checks were successful
Redis序列化结构检查 / redis-schema-check (push) Has been skipped
All checks were successful
Redis序列化结构检查 / redis-schema-check (push) Has been skipped
This commit is contained in:
64
pom.xml
64
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.codechecker</groupId>
|
<groupId>com.codechecker</groupId>
|
||||||
<artifactId>redis-schema-checker</artifactId>
|
<artifactId>redis-schema-checker</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>redis-schema-checker</name>
|
<name>redis-schema-checker</name>
|
||||||
@@ -23,16 +23,23 @@
|
|||||||
<picocli.version>4.7.5</picocli.version>
|
<picocli.version>4.7.5</picocli.version>
|
||||||
<junit.version>5.10.2</junit.version>
|
<junit.version>5.10.2</junit.version>
|
||||||
<maven.shade.version>3.5.1</maven.shade.version>
|
<maven.shade.version>3.5.1</maven.shade.version>
|
||||||
|
<maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.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>
|
|
||||||
</properties>
|
</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>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.javaparser</groupId>
|
<groupId>com.github.javaparser</groupId>
|
||||||
@@ -66,49 +73,14 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</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>
|
<build>
|
||||||
|
<finalName>redis-schema-checker-${project.version}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
<version>3.1.2</version>
|
<version>${maven.deploy.plugin.version}</version>
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>deploy-to-nexus</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>deploy</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<finalName>redis-schema-checker-${project.version}</finalName>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
|||||||
Reference in New Issue
Block a user