mirror of https://github.com/apache/maven.git
[MNG-8296] Support creating unknown Language on the fly (#1809)
--- https://issues.apache.org/jira/browse/MNG-8296
This commit is contained in:
parent
a293822852
commit
ee29050d0f
|
@ -91,7 +91,7 @@ public class DefaultTypeRegistry extends AbstractEventSpy implements TypeRegistr
|
|||
ArtifactHandler handler = manager.getArtifactHandler(id);
|
||||
type = new DefaultType(
|
||||
id,
|
||||
languageRegistry.require(handler.getLanguage()),
|
||||
languageRegistry.lookup(handler.getLanguage()).orElseGet(() -> handler::getLanguage),
|
||||
handler.getExtension(),
|
||||
handler.getClassifier(),
|
||||
handler.isIncludesDependencies(),
|
||||
|
|
Loading…
Reference in New Issue