File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 <properties >
6161 <project .java.version>1.8</project .java.version>
6262 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
63+ <mavenCentralAutoReleaseAfterClose >false</mavenCentralAutoReleaseAfterClose >
6364 </properties >
6465
6566 <build >
141142 </executions >
142143 </plugin >
143144 <plugin >
145+ <!-- deploy jar in maven central or stagging only : mvn clean deploy
146+ if autoReleaseAfterClose == true then release in maven central;
147+ if autoReleaseAfterClose == false then release in stagging only not maven central
148+ -->
144149 <groupId >org.sonatype.plugins</groupId >
145150 <artifactId >nexus-staging-maven-plugin</artifactId >
146151 <version >1.7.0</version >
147152 <extensions >true</extensions >
148153 <configuration >
149154 <serverId >ossrh</serverId >
150155 <nexusUrl >https://s01.oss.sonatype.org/</nexusUrl >
151- <autoReleaseAfterClose >true </autoReleaseAfterClose >
156+ <autoReleaseAfterClose >${mavenCentralAutoReleaseAfterClose} </autoReleaseAfterClose >
152157 </configuration >
153158 </plugin >
154159 </plugins >
You can’t perform that action at this time.
0 commit comments