Skip to content

Commit bbd5502

Browse files
committed
Prepare pom.xml for deployment
1 parent c75b325 commit bbd5502

File tree

1 file changed

+80
-56
lines changed

1 file changed

+80
-56
lines changed

pom.xml

Lines changed: 80 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<groupId>com.qdesrame</groupId>
1212
<artifactId>openapi-diff</artifactId>
13-
<version>1.1.0</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
<packaging>jar</packaging>
1515

1616
<name>openapi-diff</name>
@@ -26,32 +26,35 @@
2626

2727
<developers>
2828
<developer>
29-
<name>QDesrame</name>
29+
<name>qdesrame</name>
3030
<email>quen2404@gmail.com</email>
3131
</developer>
3232
</developers>
3333

3434
<scm>
35-
<connection>scm:git:git@github.com:quen2404/openapi-diff.git</connection>
36-
<developerConnection>scm:git:git@github.com:quen2404/openpi-diff.git</developerConnection>
37-
<url>git@github.com:quen2404/openapi-diff.git</url>
35+
<connection>scm:git:http://github.com/quen2404/openapi-diff.git</connection>
36+
<developerConnection>scm:git:http://github.com/quen2404/openapi-diff.git</developerConnection>
37+
<url>https://github.com/quen2404/openapi-diff</url>
3838
</scm>
3939

40-
<properties>
41-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42-
</properties>
43-
4440
<distributionManagement>
4541
<snapshotRepository>
46-
<id>oss</id>
47-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
42+
<id>sonatype-nexus-snapshots</id>
43+
<name>Sonatype Nexus snapshot repository</name>
44+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
4845
</snapshotRepository>
4946
<repository>
50-
<id>oss</id>
47+
<id>sonatype-nexus-staging</id>
48+
<name>Sonatype Nexus release repository</name>
5149
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
5250
</repository>
5351
</distributionManagement>
5452

53+
<properties>
54+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55+
<project.scm.id>github</project.scm.id>
56+
</properties>
57+
5558
<dependencies>
5659
<dependency>
5760
<groupId>io.swagger.parser.v3</groupId>
@@ -108,65 +111,39 @@
108111

109112
<profiles>
110113
<profile>
111-
<id>release</id>
114+
<id>release-sign-artifacts</id>
115+
<activation>
116+
<property>
117+
<name>performRelease</name>
118+
<value>true</value>
119+
</property>
120+
</activation>
112121
<build>
113122
<plugins>
114-
<plugin>
115-
<artifactId>maven-compiler-plugin</artifactId>
116-
<configuration>
117-
<source>1.8</source>
118-
<target>1.8</target>
119-
<encoding>UTF-8</encoding>
120-
</configuration>
121-
<version>3.2</version>
122-
</plugin>
123-
<!-- Source -->
124123
<plugin>
125124
<groupId>org.apache.maven.plugins</groupId>
126-
<artifactId>maven-source-plugin</artifactId>
127-
<version>3.0.1</version>
128-
<executions>
129-
<execution>
130-
<phase>package</phase>
131-
<goals>
132-
<goal>jar-no-fork</goal>
133-
</goals>
134-
</execution>
135-
</executions>
136-
</plugin>
137-
<!-- Javadoc -->
138-
<plugin>
139-
<groupId>org.apache.maven.plugins</groupId>
140-
<artifactId>maven-javadoc-plugin</artifactId>
141-
<version>3.0.0</version>
125+
<artifactId>maven-gpg-plugin</artifactId>
126+
<version>1.6</version>
142127
<configuration>
143-
<quiet>true</quiet>
144-
<nonavbar>true</nonavbar>
145-
<notree>true</notree>
146-
<nocomment>true</nocomment>
147-
<nohelp>true</nohelp>
128+
<configuration>
129+
<gpgArguments>
130+
<arg>--pinentry-mode</arg>
131+
<arg>loopback</arg>
132+
</gpgArguments>
133+
</configuration>
148134
</configuration>
149135
<executions>
150136
<execution>
151-
<id>attach-javadocs</id>
137+
<id>sign-artifacts</id>
138+
<phase>verify</phase>
152139
<goals>
153-
<goal>jar</goal>
140+
<goal>sign</goal>
154141
</goals>
155142
</execution>
156143
</executions>
157144
</plugin>
158145
</plugins>
159146
</build>
160-
<distributionManagement>
161-
<snapshotRepository>
162-
<id>oss</id>
163-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
164-
</snapshotRepository>
165-
<repository>
166-
<id>oss</id>
167-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
168-
</repository>
169-
</distributionManagement>
170147
</profile>
171148
</profiles>
172149
<build>
@@ -180,6 +157,53 @@
180157
</configuration>
181158
<version>3.2</version>
182159
</plugin>
160+
<plugin>
161+
<groupId>org.apache.maven.plugins</groupId>
162+
<artifactId>maven-source-plugin</artifactId>
163+
<version>3.0.1</version>
164+
<executions>
165+
<execution>
166+
<phase>package</phase>
167+
<goals>
168+
<goal>jar-no-fork</goal>
169+
</goals>
170+
</execution>
171+
</executions>
172+
</plugin>
173+
<plugin>
174+
<groupId>org.apache.maven.plugins</groupId>
175+
<artifactId>maven-release-plugin</artifactId>
176+
<version>2.5.3</version>
177+
<configuration>
178+
<!--<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>-->
179+
<tagNameFormat>@{project.version}</tagNameFormat>
180+
<autoVersionSubmodules>true</autoVersionSubmodules>
181+
<releaseProfiles>releases</releaseProfiles>
182+
<!--<localCheckout>true</localCheckout>-->
183+
<!--<pushChanges>false</pushChanges>-->
184+
</configuration>
185+
</plugin>
186+
<!-- Javadoc -->
187+
<plugin>
188+
<groupId>org.apache.maven.plugins</groupId>
189+
<artifactId>maven-javadoc-plugin</artifactId>
190+
<version>3.0.0</version>
191+
<configuration>
192+
<quiet>true</quiet>
193+
<nonavbar>true</nonavbar>
194+
<notree>true</notree>
195+
<nocomment>true</nocomment>
196+
<nohelp>true</nohelp>
197+
</configuration>
198+
<executions>
199+
<execution>
200+
<id>attach-javadocs</id>
201+
<goals>
202+
<goal>jar</goal>
203+
</goals>
204+
</execution>
205+
</executions>
206+
</plugin>
183207
<plugin>
184208
<artifactId>maven-assembly-plugin</artifactId>
185209
<configuration>

0 commit comments

Comments
 (0)