|
44 | 44 | <project.build.encoding>UTF-8</project.build.encoding> |
45 | 45 | <!--maven plugin--> |
46 | 46 | <maven.staging.plugin>1.7.0</maven.staging.plugin> |
| 47 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
47 | 48 | <maven.gpg.pluign>1.6</maven.gpg.pluign> |
48 | 49 | <flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version> |
49 | 50 | </properties> |
|
90 | 91 | <build> |
91 | 92 | <plugins> |
92 | 93 | <plugin> |
93 | | - <groupId>org.sonatype.plugins</groupId> |
94 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
95 | | - <version>${maven.staging.plugin}</version> |
| 94 | + <groupId>org.sonatype.central</groupId> |
| 95 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 96 | + <version>${central-publishing-maven-plugin.version}</version> |
96 | 97 | <extensions>true</extensions> |
97 | 98 | <configuration> |
98 | | - <serverId>ossrh</serverId> |
99 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
100 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 99 | + <publishingServerId>central</publishingServerId> |
| 100 | + <autoPublish>false</autoPublish> |
101 | 101 | </configuration> |
102 | 102 | </plugin> |
103 | 103 | <plugin> |
|
122 | 122 | </plugin> |
123 | 123 | </plugins> |
124 | 124 | </build> |
125 | | - <distributionManagement> |
126 | | - <snapshotRepository> |
127 | | - <id>ossrh</id> |
128 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
129 | | - </snapshotRepository> |
130 | | - <repository> |
131 | | - <id>ossrh</id> |
132 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
133 | | - </repository> |
134 | | - </distributionManagement> |
135 | 125 | </profile> |
136 | 126 | </profiles> |
137 | 127 |
|
138 | 128 | <repositories> |
139 | | - <repository> |
140 | | - <snapshots> |
141 | | - <enabled>false</enabled> |
142 | | - </snapshots> |
143 | | - <id>release</id> |
144 | | - <url>https://oss.sonatype.org/content/repositories/releases</url> |
145 | | - </repository> |
146 | 129 | <repository> |
147 | 130 | <snapshots> |
148 | 131 | <enabled>true</enabled> |
149 | 132 | </snapshots> |
150 | 133 | <id>snapshot</id> |
151 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 134 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
152 | 135 | </repository> |
153 | 136 | </repositories> |
154 | 137 | <pluginRepositories> |
155 | | - <pluginRepository> |
156 | | - <snapshots> |
157 | | - <enabled>false</enabled> |
158 | | - </snapshots> |
159 | | - <id>releases</id> |
160 | | - <url>https://oss.sonatype.org/content/repositories/releases</url> |
161 | | - </pluginRepository> |
162 | 138 | <pluginRepository> |
163 | 139 | <snapshots> |
164 | 140 | <enabled>true</enabled> |
165 | 141 | </snapshots> |
166 | 142 | <id>snapshot</id> |
167 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 143 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
168 | 144 | </pluginRepository> |
169 | 145 | </pluginRepositories> |
170 | 146 | </project> |
0 commit comments