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,
Path localRepoDir,
boolean readonly) |
Modifier and Type | Method and Description |
---|---|
boolean |
create(URI uri,
String location)
Initialize a file resource
|
MavenLocalRepoFileInitializer.Coordinates |
getCoordinates(URI uri) |
check, copyDirectory, download, getDestination, isApplicable, isFilePresent
public MavenLocalRepoFileInitializer(BaseHome baseHome)
public boolean create(URI uri, String location) throws IOException
FileInitializer
create
in class FileInitializer
uri
- 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}) *IOException
- if there was an attempt to initialize, but an error occurred.public MavenLocalRepoFileInitializer.Coordinates getCoordinates(URI uri)
Copyright © 1995–2017 Webtide. All rights reserved.