Class MavenLocalRepoFileInitializer
java.lang.Object
org.eclipse.jetty.start.FileInitializer
org.eclipse.jetty.start.fileinits.DownloadFileInitializer
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
-
Field Summary
Fields inherited from class org.eclipse.jetty.start.FileInitializer
_basehome, _scheme
-
Constructor Summary
ConstructorDescriptionMavenLocalRepoFileInitializer
(BaseHome baseHome) MavenLocalRepoFileInitializer
(BaseHome baseHome, Path localRepoDir, boolean readonly) MavenLocalRepoFileInitializer
(BaseHome baseHome, Path localRepoDir, boolean readonly, String mavenRepoUri) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Initialize a file resourceprotected void
protected only for testing purposeprotected void
download
(MavenLocalRepoFileInitializer.Coordinates coords, Path destination) getCoordinates
(URI uri) Methods inherited from class org.eclipse.jetty.start.FileInitializer
check, copyDirectory, getDestination, isApplicable, isFilePresent
-
Constructor Details
-
MavenLocalRepoFileInitializer
-
MavenLocalRepoFileInitializer
-
MavenLocalRepoFileInitializer
-
-
Method Details
-
allowInsecureHttpDownloads
protected boolean allowInsecureHttpDownloads()- Specified by:
allowInsecureHttpDownloads
in classDownloadFileInitializer
-
create
Description copied from class:FileInitializer
Initialize a file resource- Specified by:
create
in 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.
-
getRemoteUri
-
getCoordinates
-
download
protected void download(MavenLocalRepoFileInitializer.Coordinates coords, Path destination) throws IOException - Throws:
IOException
-
download
protected only for testing purpose- Overrides:
download
in classDownloadFileInitializer
- Parameters:
uri
- the the uri to downloaddestination
- the destination File- Throws:
IOException
-