Class MvnRepoLookup
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.mvnrepo.MvnRepoLookup
- All Implemented Interfaces:
ResourceProvider
Depending on the request, this provider provides two types of resources.
-
The artifacts to be resolved as
MvnRepoDependencies. The artifacts to be resolved are those added withresolve(java.lang.String...). -
The
CompilationResourcesorRuntimeResources(depending on the request) that result from resolving the artifacts to be resolved.
-
Field Summary
Fields inherited from class AbstractProvider
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoProvide(ResourceRequest<T> requested) Provide.downloadJavadoc(boolean enable) Whether to also download the javadoc.downloadSources(boolean enable) Whether to also download the sources.Add artifacts, specified by their coordinates (groupId:artifactId:version).Methods inherited from class AbstractProvider
provide, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ResourceProvider
provide
-
Constructor Details
-
MvnRepoLookup
public MvnRepoLookup()Instantiates a new mvn repo lookup.
-
-
Method Details
-
resolve
Add artifacts, specified by their coordinates (groupId:artifactId:version).- Parameters:
coordinates- the coordinates- Returns:
- the mvn repo lookup
-
downloadSources
Whether to also download the sources. Defaults totrue.- Parameters:
enable- the enable- Returns:
- the mvn repo lookup
-
downloadJavadoc
Whether to also download the javadoc. Defaults totrue.- Parameters:
enable- the enable- Returns:
- the mvn repo lookup
-
doProvide
Provide.- Specified by:
doProvidein classAbstractProvider- Type Parameters:
T- the generic type- Parameters:
requested- the requested resources- Returns:
- the stream
-