Skip to content

Commit 0b4cc93

Browse files
Updated distribution management and central publishing
1 parent 85792d9 commit 0b4cc93

File tree

1 file changed

+124
-128
lines changed

1 file changed

+124
-128
lines changed

pom.xml

Lines changed: 124 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,137 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.checkmarx</groupId>
8-
<artifactId>ast-cli-maven-plugin</artifactId>
9-
<version>dev</version>
10-
<packaging>maven-plugin</packaging>
7+
<groupId>com.checkmarx</groupId>
8+
<artifactId>ast-cli-maven-plugin</artifactId>
9+
<version>dev</version>
10+
<packaging>maven-plugin</packaging>
1111

12-
<name>ast-cli-maven-plugin Maven Mojo</name>
13-
<description>Checkmarx AST ClI Maven Plugin</description>
14-
<url>https://checkmarx.com</url>
12+
<name>ast-cli-maven-plugin Maven Mojo</name>
13+
<description>Checkmarx AST ClI Maven Plugin</description>
14+
<url>https://checkmarx.com</url>
1515

16-
<properties>
17-
<maven.compiler.source>11</maven.compiler.source>
18-
<maven.compiler.target>11</maven.compiler.target>
19-
</properties>
16+
<properties>
17+
<maven.compiler.source>11</maven.compiler.source>
18+
<maven.compiler.target>11</maven.compiler.target>
19+
</properties>
2020

21-
<dependencies>
22-
<dependency>
23-
<groupId>org.apache.maven</groupId>
24-
<artifactId>maven-plugin-api</artifactId>
25-
<version>3.9.6</version>
26-
</dependency>
27-
<dependency>
28-
<groupId>org.apache.maven.plugin-tools</groupId>
29-
<artifactId>maven-plugin-annotations</artifactId>
30-
<version>3.11.0</version>
31-
<scope>provided</scope>
32-
</dependency>
33-
<dependency>
34-
<groupId>org.apache.maven</groupId>
35-
<artifactId>maven-project</artifactId>
36-
<version>2.2.1</version>
37-
</dependency>
38-
<dependency>
39-
<groupId>com.checkmarx.ast</groupId>
40-
<artifactId>ast-cli-java-wrapper</artifactId>
41-
<version>2.4.7</version>
42-
</dependency>
43-
</dependencies>
21+
<dependencies>
22+
<dependency>
23+
<groupId>org.apache.maven</groupId>
24+
<artifactId>maven-plugin-api</artifactId>
25+
<version>3.9.6</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.apache.maven.plugin-tools</groupId>
29+
<artifactId>maven-plugin-annotations</artifactId>
30+
<version>3.11.0</version>
31+
<scope>provided</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.apache.maven</groupId>
35+
<artifactId>maven-project</artifactId>
36+
<version>2.2.1</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>com.checkmarx.ast</groupId>
40+
<artifactId>ast-cli-java-wrapper</artifactId>
41+
<version>2.4.7</version>
42+
</dependency>
43+
</dependencies>
4444

45-
<build>
46-
<pluginManagement>
47-
<plugins>
48-
<plugin>
49-
<groupId>org.apache.maven.plugins</groupId>
50-
<artifactId>maven-plugin-plugin</artifactId>
51-
<version>3.13.1</version>
52-
</plugin>
53-
</plugins>
54-
</pluginManagement>
55-
<plugins>
56-
<plugin>
57-
<groupId>org.sonatype.plugins</groupId>
58-
<artifactId>nexus-staging-maven-plugin</artifactId>
59-
<version>1.6.13</version>
60-
<extensions>true</extensions>
61-
<configuration>
62-
<serverId>ossrh</serverId>
63-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
64-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
65-
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
66-
</configuration>
67-
</plugin>
68-
<plugin>
69-
<groupId>org.apache.maven.plugins</groupId>
70-
<artifactId>maven-gpg-plugin</artifactId>
71-
<version>3.2.1</version>
72-
<executions>
73-
<execution>
74-
<id>sign-artifacts</id>
75-
<phase>verify</phase>
76-
<goals>
77-
<goal>sign</goal>
78-
</goals>
79-
</execution>
80-
</executions>
81-
<configuration>
82-
<gpgArguments>
83-
<arg>--pinentry-mode</arg>
84-
<arg>loopback</arg>
85-
</gpgArguments>
86-
</configuration>
87-
</plugin>
88-
<plugin>
89-
<groupId>org.apache.maven.plugins</groupId>
90-
<artifactId>maven-source-plugin</artifactId>
91-
<version>3.3.1</version>
92-
<executions>
93-
<execution>
94-
<id>attach-sources</id>
95-
<goals>
96-
<goal>jar-no-fork</goal>
97-
</goals>
98-
</execution>
99-
</executions>
100-
</plugin>
101-
</plugins>
102-
</build>
45+
<build>
46+
<pluginManagement>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-plugin-plugin</artifactId>
51+
<version>3.13.1</version>
52+
</plugin>
53+
</plugins>
54+
</pluginManagement>
55+
<plugins>
56+
<plugin>
57+
<groupId>org.sonatype.central</groupId>
58+
<artifactId>central-publishing-maven-plugin</artifactId>
59+
<version>0.8.0</version>
60+
<extensions>true</extensions>
61+
<configuration>
62+
<publishingServerId>central</publishingServerId>
63+
<autoPublish>true</autoPublish> <!-- Optional -->
64+
</configuration>
65+
</plugin>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-gpg-plugin</artifactId>
69+
<version>3.2.1</version>
70+
<executions>
71+
<execution>
72+
<id>sign-artifacts</id>
73+
<phase>verify</phase>
74+
<goals>
75+
<goal>sign</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
<configuration>
80+
<gpgArguments>
81+
<arg>--pinentry-mode</arg>
82+
<arg>loopback</arg>
83+
</gpgArguments>
84+
</configuration>
85+
</plugin>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-source-plugin</artifactId>
89+
<version>3.3.1</version>
90+
<executions>
91+
<execution>
92+
<id>attach-sources</id>
93+
<goals>
94+
<goal>jar-no-fork</goal>
95+
</goals>
96+
</execution>
97+
</executions>
98+
</plugin>
99+
</plugins>
100+
</build>
103101

104-
<distributionManagement>
105-
<snapshotRepository>
106-
<id>ossrh</id>
107-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
108-
</snapshotRepository>
109-
<repository>
110-
<id>ossrh</id>
111-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
112-
</repository>
113-
</distributionManagement>
102+
<distributionManagement>
103+
<repository>
104+
<id>central</id>
105+
<url>https://central.sonatype.com/api/v1/publish</url>
106+
</repository>
107+
</distributionManagement>
114108

115-
<licenses>
116-
<license>
117-
<name>Apache 2.0 License</name>
118-
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
119-
</license>
120-
</licenses>
109+
<licenses>
110+
<license>
111+
<name>Apache 2.0 License</name>
112+
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
113+
</license>
114+
</licenses>
121115

122-
<organization>
123-
<name>Checkmarx</name>
124-
<url>https://www.checkmarx.com/</url>
125-
</organization>
116+
<organization>
117+
<name>Checkmarx</name>
118+
<url>https://www.checkmarx.com/</url>
119+
</organization>
126120

127-
<scm>
128-
<connection>scm:git:git://github.com/CheckmarxDev/ast-cli-maven-plugin.git</connection>
129-
<developerConnection>scm:git:ssh://github.com/CheckmarxDev/ast-cli-maven-plugin.git</developerConnection>
130-
<url>https://github.com/CheckmarxDev/ast-cli-maven-plugin/tree/master</url>
131-
</scm>
121+
<scm>
122+
<connection>
123+
scm:git:git://github.com/CheckmarxDev/ast-cli-maven-plugin.git</connection>
124+
<developerConnection>
125+
scm:git:ssh://github.com/CheckmarxDev/ast-cli-maven-plugin.git</developerConnection>
126+
<url>https://github.com/CheckmarxDev/ast-cli-maven-plugin/tree/master</url>
127+
</scm>
132128

133-
<developers>
134-
<developer>
135-
<name>Checkmarx AST Integrations Team</name>
136-
<email>[email protected]</email>
137-
<organization>Checkmarx</organization>
138-
<organizationUrl>https://www.checkmarx.com/</organizationUrl>
139-
</developer>
140-
</developers>
129+
<developers>
130+
<developer>
131+
<name>Checkmarx AST Integrations Team</name>
132+
<email>[email protected]</email>
133+
<organization>Checkmarx</organization>
134+
<organizationUrl>https://www.checkmarx.com/</organizationUrl>
135+
</developer>
136+
</developers>
141137
</project>

0 commit comments

Comments
 (0)