Skip to content

Commit 6cdfa9c

Browse files
cicd: FIX mvn repository profile #TASK-7783
1 parent ecef6b6 commit 6cdfa9c

6 files changed

Lines changed: 70 additions & 8 deletions

File tree

commons-datastore/commons-datastore-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.opencb.commons</groupId>
88
<artifactId>commons-datastore</artifactId>
9-
<version>5.7.0-SNAPSHOT</version>
9+
<version>5.6.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

commons-datastore/commons-datastore-mongodb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.opencb.commons</groupId>
88
<artifactId>commons-datastore</artifactId>
9-
<version>5.7.0-SNAPSHOT</version>
9+
<version>5.6.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

commons-datastore/commons-datastore-solr/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.opencb.commons</groupId>
2424
<artifactId>commons-datastore</artifactId>
25-
<version>5.7.0-SNAPSHOT</version>
25+
<version>5.6.0-SNAPSHOT</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828

commons-datastore/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.opencb.commons</groupId>
88
<artifactId>commons</artifactId>
9-
<version>5.7.0-SNAPSHOT</version>
9+
<version>5.6.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

commons-lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.opencb.commons</groupId>
88
<artifactId>commons</artifactId>
9-
<version>5.7.0-SNAPSHOT</version>
9+
<version>5.6.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

pom.xml

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.opencb.commons</groupId>
88
<artifactId>commons</artifactId>
9-
<version>5.7.0-SNAPSHOT</version>
9+
<version>5.6.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<name>OpenCB commons project</name>
@@ -303,13 +303,14 @@
303303
<profile>
304304
<id>deploy-maven</id>
305305
<distributionManagement>
306-
<!-- Releases → compatibilidad OSSRH Staging API -->
306+
<!-- Releases repository using the Sonatype OSSRH Staging API for staging and deployment -->
307307
<repository>
308308
<id>ossrh</id>
309309
<name>OSSRH Staging API Releases</name>
310310
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
311311
</repository>
312-
<!-- Snapshots → Portal Central -->
312+
313+
<!-- Snapshots repository pointing to Maven Central’s snapshot feed for ongoing development versions -->
313314
<snapshotRepository>
314315
<id>ossrh</id>
315316
<name>Central Portal Snapshots</name>
@@ -318,18 +319,79 @@
318319
</distributionManagement>
319320
<build>
320321
<plugins>
322+
<!-- Central Publishing Plugin: handles both snapshots and releases via the Sonatype Central API -->
321323
<plugin>
322324
<groupId>org.sonatype.central</groupId>
323325
<artifactId>central-publishing-maven-plugin</artifactId>
324326
<version>0.8.0</version>
327+
<!-- extensions=true allows this plugin to hook into the build lifecycle -->
325328
<extensions>true</extensions>
326329
<configuration>
330+
<!-- ID of the <server> in your settings.xml containing your Sonatype credentials -->
327331
<publishingServerId>ossrh</publishingServerId>
332+
<!-- autoPublish=true will automatically close and release the staging repository after deploy -->
328333
<autoPublish>true</autoPublish>
334+
<!-- waitUntil=published makes the build wait until the artifacts are fully available in Central -->
329335
<waitUntil>published</waitUntil>
336+
<!-- ignorePublishedComponents skips already-published modules in multimodule builds -->
330337
<ignorePublishedComponents>true</ignorePublishedComponents>
331338
</configuration>
332339
</plugin>
340+
<!-- Source Plugin: generates and attaches a -sources.jar containing all your project’s source files -->
341+
<plugin>
342+
<groupId>org.apache.maven.plugins</groupId>
343+
<artifactId>maven-source-plugin</artifactId>
344+
<version>3.2.1</version>
345+
<executions>
346+
<execution>
347+
<id>attach-sources</id>
348+
<goals>
349+
<!-- jar-no-fork: create the sources jar without running the default lifecycle again -->
350+
<goal>jar-no-fork</goal>
351+
</goals>
352+
</execution>
353+
</executions>
354+
</plugin>
355+
356+
<!-- Javadoc Plugin: generates and attaches a -javadoc.jar containing your project’s API documentation -->
357+
<plugin>
358+
<groupId>org.apache.maven.plugins</groupId>
359+
<artifactId>maven-javadoc-plugin</artifactId>
360+
<version>3.3.2</version>
361+
<executions>
362+
<execution>
363+
<id>attach-javadocs</id>
364+
<goals>
365+
<!-- jar: package the generated Javadocs into a jar file -->
366+
<goal>jar</goal>
367+
</goals>
368+
</execution>
369+
</executions>
370+
</plugin>
371+
372+
<!-- GPG Plugin: signs all deployable artifacts (.jar, .pom, sources, javadoc) with your GPG key -->
373+
<plugin>
374+
<groupId>org.apache.maven.plugins</groupId>
375+
<artifactId>maven-gpg-plugin</artifactId>
376+
<version>1.6</version>
377+
<executions>
378+
<execution>
379+
<id>sign-artifacts</id>
380+
<!-- bind signing to the verify phase, so signatures are created before deploy -->
381+
<phase>verify</phase>
382+
<goals>
383+
<goal>sign</goal>
384+
</goals>
385+
<configuration>
386+
<!-- Use loopback pinentry to allow unattended signing in CI -->
387+
<gpgArguments>
388+
<arg>--pinentry-mode</arg>
389+
<arg>loopback</arg>
390+
</gpgArguments>
391+
</configuration>
392+
</execution>
393+
</executions>
394+
</plugin>
333395
</plugins>
334396
</build>
335397
</profile>

0 commit comments

Comments
 (0)