Skip to content

Commit 541da3e

Browse files
committed
Utilizing central release config mostly from the parent
Only needs a redefined server
1 parent 47d1947 commit 541da3e

File tree

1 file changed

+6
-79
lines changed

1 file changed

+6
-79
lines changed

pom.xml

+6-79
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>in.virit.sb</groupId>
88
<artifactId>viritin-addon-project-parent</artifactId>
9-
<version>0.0.4</version>
9+
<version>0.0.5</version>
1010
</parent>
1111

1212
<groupId>org.parttio</groupId>
@@ -77,90 +77,17 @@
7777

7878
<build>
7979
<plugins>
80-
<!-- The maven-release-plugin is used to deploy this add-on to Maven Central.
81-
Plugin configs required for Vaadin add-on itself are defined in the parent pom.
82-
-->
8380
<plugin>
84-
<groupId>org.apache.maven.plugins</groupId>
85-
<artifactId>maven-release-plugin</artifactId>
86-
<version>3.1.0</version>
81+
<groupId>org.sonatype.plugins</groupId>
82+
<artifactId>nexus-staging-maven-plugin</artifactId>
8783
<configuration>
88-
<autoVersionSubmodules>true</autoVersionSubmodules>
89-
<useReleaseProfile>false</useReleaseProfile>
90-
<releaseProfiles>release</releaseProfiles>
91-
<goals>deploy</goals>
84+
<!-- Redefine the server, the parent publishes through the older OSS nexus -->
85+
<serverId>ossrh</serverId>
86+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
9287
</configuration>
9388
</plugin>
9489
</plugins>
9590
</build>
96-
97-
<profiles>
98-
<profile>
99-
<id>release</id>
100-
<build>
101-
<plugins>
102-
<plugin>
103-
<groupId>org.sonatype.plugins</groupId>
104-
<artifactId>nexus-staging-maven-plugin</artifactId>
105-
<version>1.6.13</version>
106-
<extensions>true</extensions>
107-
<configuration>
108-
<serverId>ossrh</serverId>
109-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
110-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
111-
</configuration>
112-
</plugin>
113-
<plugin>
114-
<groupId>org.apache.maven.plugins</groupId>
115-
<artifactId>maven-source-plugin</artifactId>
116-
<version>3.2.1</version>
117-
<executions>
118-
<execution>
119-
<id>attach-sources</id>
120-
<goals>
121-
<goal>jar-no-fork</goal>
122-
</goals>
123-
</execution>
124-
</executions>
125-
</plugin>
126-
<plugin>
127-
<groupId>org.apache.maven.plugins</groupId>
128-
<artifactId>maven-javadoc-plugin</artifactId>
129-
<version>3.4.1</version>
130-
<executions>
131-
<execution>
132-
<id>attach-javadocs</id>
133-
<goals>
134-
<goal>jar</goal>
135-
</goals>
136-
</execution>
137-
</executions>
138-
</plugin>
139-
<plugin>
140-
<groupId>org.apache.maven.plugins</groupId>
141-
<artifactId>maven-gpg-plugin</artifactId>
142-
<version>3.0.1</version>
143-
<executions>
144-
<execution>
145-
<id>sign-artifacts</id>
146-
<phase>verify</phase>
147-
<goals>
148-
<goal>sign</goal>
149-
</goals>
150-
</execution>
151-
</executions>
152-
<configuration>
153-
<!-- Prevent gpg from using pinentry programs -->
154-
<gpgArguments>
155-
<arg>--pinentry-mode</arg>
156-
<arg>loopback</arg>
157-
</gpgArguments>
158-
</configuration>
159-
</plugin>
160-
</plugins>
161-
</build>
162-
</profile>
163-
</profiles>
16491

16592
</project>
16693

0 commit comments

Comments
 (0)