public String resolvePath( final String path ) { // we need more logic here, but for now will do it ;) return getConnectionInfo().getBaseUrl() + path; }
@Override public String toString() { final StringBuilder sb = new StringBuilder( "(" ); sb.append( "url=" ).append( getBaseUrl() ); if ( getAuthenticationInfo() != null ) { sb.append( ",authc=" ).append( getAuthenticationInfo() ); } if ( !getProxyInfos().isEmpty() ) { sb.append( ",proxy=" ).append( getProxyInfos() ); } sb.append( ")" ); return sb.toString(); } }
protected BaseUrl getNexusUrl() { return getNexusClient().getConnectionInfo().getBaseUrl(); }
c -> { NodeInfo nodeInfo = new NodeInfo(); nodeInfo.baseUrl = c.getConnectionInfo().getBaseUrl(); nodeInfo.repositories = c.getSubsystem(Repositories.class); return nodeInfo;
throw new IllegalArgumentException( // same ex, but "translated" to be more meaningful String.format("Nexus instance at base URL %s does not support staging v2; reported status: %s, reason: %s", nexusClient.getConnectionInfo().getBaseUrl(), nexusClient.getNexusStatus(), e.getMessage()),
final ProxyInfo proxyInfo = connectionInfo.getProxyInfos().get( connectionInfo.getBaseUrl().getProtocol() ); if ( proxyInfo != null )
concat(remoteNexus.getConnectionInfo().getBaseUrl().toString(), "/content/repositories", stagingRepository.getRepositoryId());
throw new BuildException( String.format("Nexus instance at base URL %s does not support staging v2; reported status: %s, reason:%s", nexusClient.getConnectionInfo().getBaseUrl(), nexusClient.getNexusStatus(), e.getMessage()),
final NexusStatus nexusStatus = nexusClient.getNexusStatus(); log.info(" * Connected to Nexus at {}, is version {} and edition \"{}\"", connectionInfo.getBaseUrl(), nexusStatus.getVersion(), nexusStatus.getEditionLong()); return nexusClient;