Снепшотные репозитории

This commit is contained in:
Struchkov Mark 2022-12-30 22:23:48 +03:00
parent fb1822a0ac
commit 02fd8a016d
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
2 changed files with 77 additions and 15 deletions

View File

@ -1,3 +1,4 @@
---
kind: pipeline kind: pipeline
type: docker type: docker
name: haiti-framework name: haiti-framework
@ -30,4 +31,9 @@ trigger:
volumes: volumes:
- name: m2 - name: m2
host: host:
path: /drone/volume/m2 path: /drone/volume/m2
---
kind: signature
hmac: 4739b3854a68e1ec849cdff113b27d0ed17a9da62ecdffd2fbc55dbd852efcdd
...

84
pom.xml
View File

@ -163,11 +163,6 @@
<artifactId>nexus-staging-maven-plugin</artifactId> <artifactId>nexus-staging-maven-plugin</artifactId>
<version>${plugin.nexus.staging.ver}</version> <version>${plugin.nexus.staging.ver}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -223,12 +218,13 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>${plugin.maven.release.ver}</version> <version>${plugin.maven.release.ver}</version>
<configuration> <configuration>
<preparationGoals>clean compile</preparationGoals> <preparationGoals>clean</preparationGoals>
<goal>install</goal> <goals>install</goals>
<tagNameFormat>v.@{project.version}</tagNameFormat> <tagNameFormat>v.@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules> <autoVersionSubmodules>true</autoVersionSubmodules>
<pushChanges>false</pushChanges> <pushChanges>false</pushChanges>
<localCheckout>true</localCheckout> <localCheckout>true</localCheckout>
<signTag>true</signTag>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
@ -262,6 +258,11 @@
<plugin> <plugin>
<groupId>org.sonatype.plugins</groupId> <groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId> <artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -278,8 +279,70 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>snapshot</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<serverId>struchkov-nexus</serverId>
<nexusUrl>http://nexus:8081/nexus/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
<repositories>
<repository>
<id>struchkov-nexus-release</id>
<url>https://nexus.struchkov.dev/repository/maven-release/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>struchkov-nexus-snapshot</id>
<url>https://nexus.struchkov.dev/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>struchkov-nexus-release</id>
<url>http://nexus:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>struchkov-nexus-snapshot</id>
<url>http://nexus:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<scm> <scm>
<connection>scm:git:ssh://git@git.struchkov.dev:222/Godfather-Bots/godfather.git</connection> <connection>scm:git:ssh://git@git.struchkov.dev:222/Godfather-Bots/godfather.git</connection>
<url>https://git.struchkov.dev/Godfather-Bots/godfather</url> <url>https://git.struchkov.dev/Godfather-Bots/godfather</url>
@ -287,13 +350,6 @@
<tag>v.0.0.33</tag> <tag>v.0.0.33</tag>
</scm> </scm>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<developers> <developers>
<developer> <developer>
<id>uPagge</id> <id>uPagge</id>