Skip to content

Commit b4b29a2

Browse files
committed
build: 1.1 release to maven central repository
1 parent 414df18 commit b4b29a2

File tree

1 file changed

+106
-1
lines changed

1 file changed

+106
-1
lines changed

pom.xml

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,30 @@
66

77
<groupId>com.github.anilople</groupId>
88
<artifactId>javajvm</artifactId>
9-
<version>1.1-SNAPSHOT</version>
9+
<version>1.1</version>
10+
11+
<name>${project.artifactId}</name>
12+
<description>Use Java to Implement JVM</description>
13+
<url>https://github.com/anilople/javajvm</url>
14+
<licenses>
15+
<license>
16+
<name>MIT License</name>
17+
<url>https://opensource.org/licenses/MIT</url>
18+
<distribution>repo</distribution>
19+
</license>
20+
</licenses>
21+
<scm>
22+
<url>https://github.com/anilople/javajvm</url>
23+
<connection>scm:git:https://github.com/anilople/javajvm.git</connection>
24+
<developerConnection>scm:git:https://github.com/anilople/javajvm.git</developerConnection>
25+
</scm>
26+
<developers>
27+
<developer>
28+
<name>anilople</name>
29+
<email>none</email>
30+
<url>https://github.com/anilople/javajvm</url>
31+
</developer>
32+
</developers>
1033

1134
<properties>
1235
<fully.qualified.main.class>com.github.anilople.javajvm.JavaJvmApplication</fully.qualified.main.class>
@@ -122,4 +145,86 @@
122145
</plugins>
123146
</build>
124147

148+
<profiles>
149+
<profile>
150+
<id>release</id>
151+
<build>
152+
<plugins>
153+
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-source-plugin</artifactId>
157+
<version>2.2.1</version>
158+
<executions>
159+
<execution>
160+
<id>attach-sources</id>
161+
<goals>
162+
<goal>jar-no-fork</goal>
163+
</goals>
164+
</execution>
165+
</executions>
166+
</plugin>
167+
<plugin>
168+
<groupId>org.apache.maven.plugins</groupId>
169+
<artifactId>maven-javadoc-plugin</artifactId>
170+
<version>2.9.1</version>
171+
<configuration>
172+
<!--
173+
disable the strict checking
174+
Reference https://stackoverflow.com/questions/23542876/unable-to-build-maven-project-due-to-javadoc-error
175+
-->
176+
<additionalparam>-Xdoclint:none</additionalparam>
177+
</configuration>
178+
<executions>
179+
<execution>
180+
<id>attach-javadocs</id>
181+
<goals>
182+
<goal>jar</goal>
183+
</goals>
184+
</execution>
185+
</executions>
186+
</plugin>
187+
188+
<!-- deploy to maven central -->
189+
<plugin>
190+
<groupId>org.sonatype.plugins</groupId>
191+
<artifactId>nexus-staging-maven-plugin</artifactId>
192+
<version>1.6.7</version>
193+
<extensions>true</extensions>
194+
<configuration>
195+
<serverId>ossrh</serverId>
196+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
197+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
198+
</configuration>
199+
</plugin>
200+
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-gpg-plugin</artifactId>
204+
<version>1.5</version>
205+
<executions>
206+
<execution>
207+
<id>sign-artifacts</id>
208+
<phase>verify</phase>
209+
<goals>
210+
<goal>sign</goal>
211+
</goals>
212+
</execution>
213+
</executions>
214+
</plugin>
215+
</plugins>
216+
</build>
217+
</profile>
218+
</profiles>
219+
220+
<distributionManagement>
221+
<snapshotRepository>
222+
<id>ossrh</id>
223+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
224+
</snapshotRepository>
225+
<repository>
226+
<id>ossrh</id>
227+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
228+
</repository>
229+
</distributionManagement>
125230
</project>

0 commit comments

Comments
 (0)