Skip to content

Commit e0d3548

Browse files
authored
feat: support deploy jar to the Maven Central repository (#155)
1 parent 35159bb commit e0d3548

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

pom.xml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
<artifactId>apisix-plugin-runner</artifactId>
2525
<version>0.2.0</version>
2626

27+
<distributionManagement>
28+
<snapshotRepository>
29+
<id>ossrh</id>
30+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
31+
</snapshotRepository>
32+
<repository>
33+
<id>ossrh</id>
34+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
35+
</repository>
36+
</distributionManagement>
37+
2738
<parent>
2839
<groupId>org.apache</groupId>
2940
<artifactId>apache</artifactId>
@@ -74,6 +85,13 @@
7485

7586
<dependencyManagement>
7687
<dependencies>
88+
<dependency>
89+
<groupId>org.sonatype.oss</groupId>
90+
<artifactId>oss-parent</artifactId>
91+
<version>9</version>
92+
<type>pom</type>
93+
<scope>import</scope>
94+
</dependency>
7795
<dependency>
7896
<groupId>org.apache.logging.log4j</groupId>
7997
<artifactId>log4j-bom</artifactId>
@@ -154,6 +172,57 @@
154172
</execution>
155173
</executions>
156174
</plugin>
175+
<plugin>
176+
<groupId>org.apache.maven.plugins</groupId>
177+
<artifactId>maven-release-plugin</artifactId>
178+
<version>3.0.0-M6</version>
179+
</plugin>
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-gpg-plugin</artifactId>
183+
<version>1.5</version>
184+
<executions>
185+
<execution>
186+
<id>sign-artifacts</id>
187+
<phase>verify</phase>
188+
<goals>
189+
<goal>sign</goal>
190+
</goals>
191+
</execution>
192+
</executions>
193+
</plugin>
194+
<plugin>
195+
<groupId>org.apache.maven.plugins</groupId>
196+
<artifactId>maven-javadoc-plugin</artifactId>
197+
<configuration>
198+
<failOnError>false</failOnError>
199+
<additionalparam>-Xdoclint:none</additionalparam>
200+
<source>8</source>
201+
</configuration>
202+
<version>2.9.1</version>
203+
<executions>
204+
<execution>
205+
<id>attach-javadocs</id>
206+
<goals>
207+
<goal>javadoc</goal>
208+
</goals>
209+
</execution>
210+
</executions>
211+
</plugin>
212+
<plugin>
213+
<groupId>org.apache.maven.plugins</groupId>
214+
<artifactId>maven-source-plugin</artifactId>
215+
<version>2.2.1</version>
216+
<executions>
217+
<execution>
218+
<id>validate</id>
219+
<phase>process-sources</phase>
220+
<goals>
221+
<goal>jar-no-fork</goal>
222+
</goals>
223+
</execution>
224+
</executions>
225+
</plugin>
157226
</plugins>
158227
</build>
159228
</project>

0 commit comments

Comments
 (0)