|
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> |
48 | 47 | <maven.gpg.pluign>1.6</maven.gpg.pluign> |
49 | 48 | <flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version> |
50 | 49 | </properties> |
|
91 | 90 | <build> |
92 | 91 | <plugins> |
93 | 92 | <plugin> |
94 | | - <groupId>org.sonatype.central</groupId> |
95 | | - <artifactId>central-publishing-maven-plugin</artifactId> |
96 | | - <version>${central-publishing-maven-plugin.version}</version> |
| 93 | + <groupId>org.sonatype.plugins</groupId> |
| 94 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 95 | + <version>${maven.staging.plugin}</version> |
97 | 96 | <extensions>true</extensions> |
98 | 97 | <configuration> |
99 | | - <publishingServerId>central</publishingServerId> |
100 | | - <autoPublish>false</autoPublish> |
| 98 | + <serverId>ossrh</serverId> |
| 99 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 100 | + <autoReleaseAfterClose>false</autoReleaseAfterClose> |
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> |
125 | 135 | </profile> |
126 | 136 | </profiles> |
127 | 137 |
|
128 | 138 | <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> |
129 | 146 | <repository> |
130 | 147 | <snapshots> |
131 | 148 | <enabled>true</enabled> |
132 | 149 | </snapshots> |
133 | 150 | <id>snapshot</id> |
134 | | - <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 151 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
135 | 152 | </repository> |
136 | 153 | </repositories> |
137 | 154 | <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> |
138 | 162 | <pluginRepository> |
139 | 163 | <snapshots> |
140 | 164 | <enabled>true</enabled> |
141 | 165 | </snapshots> |
142 | 166 | <id>snapshot</id> |
143 | | - <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 167 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
144 | 168 | </pluginRepository> |
145 | 169 | </pluginRepositories> |
146 | 170 | </project> |
0 commit comments