Class MavenLocalRepoFileInitializer
java.lang.Object
org.eclipse.jetty.start.FileInitializer
org.eclipse.jetty.start.fileinits.MavenLocalRepoFileInitializer
Attempt to download a
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>- minimum requirement (type defaults to
jar, with no classifier) maven://<groupId>/<artifactId>/<version>/<type>- optional type requirement
-
maven://<groupId>/<artifactId>/<version>/<type>/<classifier> - optional type and classifier requirement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate Pathprivate Stringprivate final booleanFields inherited from class FileInitializer
_basehome, _scheme -
Constructor Summary
ConstructorsConstructorDescriptionMavenLocalRepoFileInitializer(BaseHome baseHome) MavenLocalRepoFileInitializer(BaseHome baseHome, Path localRepoDir, boolean readonly) MavenLocalRepoFileInitializer(BaseHome baseHome, Path localRepoDir, boolean readonly, String mavenRepoUri) -
Method Summary
Modifier and TypeMethodDescriptionbooleanInitialize a file resourceprotected voidprotected only for testing purposegetCoordinates(URI uri) private PathMethods inherited from class FileInitializer
check, copyDirectory, getDestination, isApplicable, isFilePresent
-
Field Details
-
DEFAULT_REMOTE_REPO
- See Also:
-
localRepositoryDir
-
readonly
private final boolean readonly -
mavenRepoUri
-
-
Constructor Details
-
MavenLocalRepoFileInitializer
-
MavenLocalRepoFileInitializer
-
MavenLocalRepoFileInitializer
-
-
Method Details
-
create
Description copied from class:FileInitializerInitialize a file resource- Specified by:
createin classFileInitializer- Parameters:
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}) *- Returns:
- true if local file system is modified.
- Throws:
IOException- if there was an attempt to initialize, but an error occurred.
-
getLocalRepoFile
- Throws:
IOException
-
getRemoteUri
-
getCoordinates
-
download
protected only for testing purpose- Overrides:
downloadin classFileInitializer- Parameters:
uri- the the uri to downloaddestination- the destination File- Throws:
IOException
-