Skip to content

Commit 6c24418

Browse files
committed
Add Maven Central Repository
1 parent 71337cd commit 6c24418

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

pom.xml

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>top.mryan2005</groupId>
7+
<groupId>top.mryan2005.maven</groupId>
88
<artifactId>simplifiedjava</artifactId>
99
<version>1.0.6-beta</version>
1010

@@ -20,6 +20,20 @@
2020
</developer>
2121
</developers>
2222

23+
<licenses>
24+
<license>
25+
<name>The Apache Software License, Version 2.0</name>
26+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
27+
</license>
28+
</licenses>
29+
<description>This is a Java library that can help you to write Java code more easily. I think it is just like the file bits/stdc++.h in C++, so I named it JavaPlusPlus.</description>
30+
<url>https://github.com/Mryan2005/SimplifiedJava</url>
31+
<scm>
32+
<connection>https://github.com/Mryan2005/SimplifiedJava.git</connection>
33+
<developerConnection>scm:git:ssh://[email protected]/Mryan2005/SimplifiedJava.git
34+
</developerConnection>
35+
<url>https://github.com/Mryan2005/SimplifiedJava</url>
36+
</scm>
2337
<properties>
2438
<java.version>21</java.version>
2539
<maven.compiler.source>21</maven.compiler.source>
@@ -78,6 +92,63 @@
7892
<target>${maven.compiler.target}</target>
7993
</configuration>
8094
</plugin>
95+
<!-- central发布插件 -->
96+
<plugin>
97+
<groupId>org.sonatype.central</groupId>
98+
<artifactId>central-publishing-maven-plugin</artifactId>
99+
<version>0.4.0</version>
100+
<extensions>true</extensions>
101+
<configuration>
102+
<publishingServerId>Mryan2005</publishingServerId>
103+
<tokenAuth>true</tokenAuth>
104+
</configuration>
105+
</plugin>
106+
<!-- source源码插件 -->
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>2.2.1</version>
111+
<executions>
112+
<execution>
113+
<id>attach-sources</id>
114+
<goals>
115+
<goal>jar-no-fork</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<!-- javadoc插件 -->
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-javadoc-plugin</artifactId>
124+
<version>2.9.1</version>
125+
<executions>
126+
<execution>
127+
<id>attach-javadocs</id>
128+
<goals>
129+
<goal>jar</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-gpg-plugin</artifactId>
137+
<version>1.5</version>
138+
<configuration>
139+
<executable>C:\Program Files\Git\usr\bin\gpg.exe</executable>
140+
<keyname>top.mryan2005.maven</keyname>
141+
</configuration>
142+
<executions>
143+
<execution>
144+
<id>sign-artifacts</id>
145+
<phase>verify</phase>
146+
<goals>
147+
<goal>sign</goal>
148+
</goals>
149+
</execution>
150+
</executions>
151+
</plugin>
81152
</plugins>
82153
</build>
83154

0 commit comments

Comments
 (0)