public class ProjectInfoReportUtils extends Object
| Constructor and Description |
|---|
ProjectInfoReportUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getArchiveServer(String uri)
Convenience method to return the name of a web-based mailing list archive server.
|
static String |
getArtifactIdCell(String artifactId,
String link) |
static String |
getArtifactUrl(org.apache.maven.repository.RepositorySystem repositorySystem,
org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.ProjectBuilder projectBuilder,
org.apache.maven.project.ProjectBuildingRequest buildingRequest) |
static String |
getContent(URL url,
org.apache.maven.project.MavenProject project,
org.apache.maven.settings.Settings settings,
String encoding)
Get the input stream from a URL.
|
static String |
getContent(URL url,
org.apache.maven.settings.Settings settings)
Get the input stream using UTF-8 as character encoding from a URL.
|
static String |
getContent(URL url,
org.apache.maven.settings.Settings settings,
String encoding)
Get the input stream from a URL.
|
static boolean |
isArtifactUrlValid(String url) |
public static String getContent(URL url, org.apache.maven.settings.Settings settings) throws IOException
url - not nullsettings - not null to handle proxy settingsIOException - if anygetContent(URL, Settings, String)public static String getContent(URL url, org.apache.maven.settings.Settings settings, String encoding) throws IOException
url - not nullsettings - not null to handle proxy settingsencoding - the wanted encoding for the URL input stream. If null, UTF-8 will be used.IOException - if anypublic static String getContent(URL url, org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, String encoding) throws IOException
url - not nullproject - could be nullsettings - not null to handle proxy settingsencoding - the wanted encoding for the URL input stream. If null, UTF-8 will be used.IOException - if anypublic static String getArtifactUrl(org.apache.maven.repository.RepositorySystem repositorySystem, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.ProjectBuilder projectBuilder, org.apache.maven.project.ProjectBuildingRequest buildingRequest)
repositorySystem - not nullartifact - not nullprojectBuilder - not nullbuildingRequest - not nullpublic static String getArtifactIdCell(String artifactId, String link)
artifactId - not nulllink - could be nullAbstractMavenReportRenderer.linkPatternedText(String)public static boolean isArtifactUrlValid(String url)
url - not nulltrue if the url is valid, false otherwise.public static String getArchiveServer(String uri)
http://www.mail-archive.com/dev@maven.apache.org, this
method returns www.mail-archive.comuri - the URI parseCopyright © 2005–2023 The Apache Software Foundation. All rights reserved.