public class MavenLocalRepoFileInitializer extends FileInitializer
maven:// URI, by first attempting to find
the resource in the maven repository system (starting with local, then
central)
Valid URI Formats:
maven://<groupId>/<artifactId>/<version>jar, with no
classifier)maven://<groupId>/<artifactId>/<version>/<type>maven://<groupId>/<artifactId>/<version>/<type>/<classifier>
| Modifier and Type | Class and Description |
|---|---|
static class |
MavenLocalRepoFileInitializer.Coordinates |
_basehome, _scheme| Constructor and Description |
|---|
MavenLocalRepoFileInitializer(BaseHome baseHome) |
MavenLocalRepoFileInitializer(BaseHome baseHome,
java.nio.file.Path localRepoDir,
boolean readonly) |
MavenLocalRepoFileInitializer(BaseHome baseHome,
java.nio.file.Path localRepoDir,
boolean readonly,
java.lang.String mavenRepoUri) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create(java.net.URI uri,
java.lang.String location)
Initialize a file resource
|
protected void |
download(java.net.URI uri,
java.nio.file.Path destination)
protected only for testing purpose
|
MavenLocalRepoFileInitializer.Coordinates |
getCoordinates(java.net.URI uri) |
check, copyDirectory, getDestination, isApplicable, isFilePresentpublic MavenLocalRepoFileInitializer(BaseHome baseHome)
public MavenLocalRepoFileInitializer(BaseHome baseHome, java.nio.file.Path localRepoDir, boolean readonly)
public MavenLocalRepoFileInitializer(BaseHome baseHome, java.nio.file.Path localRepoDir, boolean readonly, java.lang.String mavenRepoUri)
public boolean create(java.net.URI uri,
java.lang.String location)
throws java.io.IOException
FileInitializercreate in class FileInitializeruri - the URI of the resource acting as its sourcelocation - the simple string reference to the output file, suitable for searching
for the file in other locations (like ${jetty.home} or ${jetty.dir}) *java.io.IOException - if there was an attempt to initialize, but an error occurred.public MavenLocalRepoFileInitializer.Coordinates getCoordinates(java.net.URI uri)
protected void download(java.net.URI uri,
java.nio.file.Path destination)
throws java.io.IOException
download in class FileInitializeruri - the the uri to downloaddestination - the destination Filejava.io.IOExceptionCopyright © 1995–2022 Webtide. All rights reserved.