public class MavenUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
RELEASE_PATTERN
extract release version pattern
|
| Constructor and Description |
|---|
MavenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findReleaseVersionInNexus(org.springframework.web.client.RestTemplate restTemplate,
String nexusRepositoryUrl,
String artifactId,
String groupId)
从 Nexus 仓库中获取 Maven 依赖最新的 release version
|
public static final Pattern RELEASE_PATTERN
public static String findReleaseVersionInNexus(org.springframework.web.client.RestTemplate restTemplate, String nexusRepositoryUrl, String artifactId, String groupId)
restTemplate - RestTemplatenexusRepositoryUrl - Nexus仓库地址urlartifactId - Maven artifactIdgroupId - Maven groupIdCopyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.