maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominic Monroe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MNG-6337) NPE on usage of DefaultMavenSettingsBuilder
Date Tue, 09 Jan 2018 21:52:00 GMT
Dominic Monroe created MNG-6337:
-----------------------------------

             Summary: NPE on usage of DefaultMavenSettingsBuilder
                 Key: MNG-6337
                 URL: https://issues.apache.org/jira/browse/MNG-6337
             Project: Maven
          Issue Type: Bug
          Components: core
    Affects Versions: 3.5.2
            Reporter: Dominic Monroe


Basic usage of the class results in an error. I am not writing java, but I have tried to translate.

{code:title=Bar.java|borderStyle=solid}
DefaultMavenSettingsBuilder x = new DefaultMavenSettingsBuilder();
x.buildSettings();
{code}

This is the stacktrace, sorry that there is frames mixed in:

{code}
java.lang.NullPointerException
        at org.apache.maven.settings.DefaultMavenSettingsBuilder.build(DefaultMavenSettingsBuilder.java:90)
        at org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultMavenSettingsBuilder.java:76)
        at org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultMavenSettingsBuilder.java:56)
        at user$eval3.invokeStatic(NO_SOURCE_FILE:2)
        at user$eval3.invoke(NO_SOURCE_FILE:2)
        at clojure.lang.Compiler.eval(Compiler.java:6927)
        at clojure.lang.Compiler.eval(Compiler.java:6890)
        at clojure.core$eval.invokeStatic(core.clj:3105)
        at clojure.core$eval.invoke(core.clj:3101)
        at clojure.main$repl$read_eval_print__7408$fn__7411.invoke(main.clj:240)
        at clojure.main$repl$read_eval_print__7408.invoke(main.clj:240)
        at clojure.main$repl$fn__7417.invoke(main.clj:258)
        at clojure.main$repl.invokeStatic(main.clj:258)
        at clojure.main$repl_opt.invokeStatic(main.clj:322)
        at clojure.main$main.invokeStatic(main.clj:421)
        at clojure.main$main.doInvoke(main.clj:384)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at clojure.lang.Var.invoke(Var.java:375)
        at clojure.lang.AFn.applyToHelper(AFn.java:152)
        at clojure.lang.Var.applyTo(Var.java:700)
        at clojure.main.main(main.java:37)
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message