public class MavenLocalRepoFileInitializer extends UriFileInitializer implements 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
Constructor and Description |
---|
MavenLocalRepoFileInitializer(BaseHome baseHome) |
MavenLocalRepoFileInitializer(BaseHome baseHome,
Path localRepoDir) |
Modifier and Type | Method and Description |
---|---|
MavenLocalRepoFileInitializer.Coordinates |
getCoordinates(URI uri) |
boolean |
init(URI uri,
Path file,
String fileRef)
Initialize a file resource
|
download, isFilePresent
public MavenLocalRepoFileInitializer(BaseHome baseHome)
public boolean init(URI uri, Path file, String fileRef) throws IOException
FileInitializer
init
in interface FileInitializer
init
in class UriFileInitializer
uri
- the remote URI of the resource acting as its sourcefile
- the local file resource to initialize. (often in ${jetty.base} directory)fileRef
- the simple string reference to the output file, suitable for searching
for the file in other locations (like ${jetty.home} or ${jetty.dir})FileInitializer
did nothing.IOException
- if there was an attempt to initialize, but an error occurred.public MavenLocalRepoFileInitializer.Coordinates getCoordinates(URI uri)
Copyright © 1995-2016 Webtide. All Rights Reserved.