maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MNG-6495) ModelResolver cannot be null
Date Tue, 23 Oct 2018 18:01:00 GMT

     [ https://issues.apache.org/jira/browse/MNG-6495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated MNG-6495:
--------------------------------
    Description: 
Got this exception stacktrace while writing some of my own code today:

{noformat}
Exception in thread "main" java.lang.NullPointerException: request.modelResolver cannot be
null (parent POM com.google.guava:guava-parent:26.0-jre and POM com.google.guava:guava:[unknown-version])
	at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
	at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1046)
	at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:830)
	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:332)
	at com.google.cloud.tools.opensource.dependencies.MetadataExplorer.main(MetadataExplorer.java:50)
{noformat}

No big deal except that the JavaDoc at [ModelBuildingRequest|http://maven.apache.org/ref/3.5.4/maven-model-builder/apidocs/org/apache/maven/model/building/ModelBuildingRequest.html]
says "The model resolver to use, may be null."

Not sure whether to update the docs or the code here. 



  was:
Got this exception stacktrace while writing some of my own code today:

Exception in thread "main" java.lang.NullPointerException: request.modelResolver cannot be
null (parent POM com.google.guava:guava-parent:26.0-jre and POM com.google.guava:guava:[unknown-version])
	at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
	at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1046)
	at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:830)
	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:332)
	at com.google.cloud.tools.opensource.dependencies.MetadataExplorer.main(MetadataExplorer.java:50)


No big deal except that the JavaDoc at http://maven.apache.org/ref/3.5.4/maven-model-builder/apidocs/org/apache/maven/model/building/ModelBuildingRequest.html
says "The model resolver to use, may be null."

Not sure whether to update the docs or the code here. 




> ModelResolver cannot be null
> ----------------------------
>
>                 Key: MNG-6495
>                 URL: https://issues.apache.org/jira/browse/MNG-6495
>             Project: Maven
>          Issue Type: Bug
>          Components: Bootstrap &amp; Build
>    Affects Versions: 3.5.4
>            Reporter: Elliotte Rusty Harold
>            Priority: Major
>
> Got this exception stacktrace while writing some of my own code today:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException: request.modelResolver cannot
be null (parent POM com.google.guava:guava-parent:26.0-jre and POM com.google.guava:guava:[unknown-version])
> 	at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
> 	at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1046)
> 	at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:830)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:332)
> 	at com.google.cloud.tools.opensource.dependencies.MetadataExplorer.main(MetadataExplorer.java:50)
> {noformat}
> No big deal except that the JavaDoc at [ModelBuildingRequest|http://maven.apache.org/ref/3.5.4/maven-model-builder/apidocs/org/apache/maven/model/building/ModelBuildingRequest.html]
says "The model resolver to use, may be null."
> Not sure whether to update the docs or the code here. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message