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] [Commented] (MNG-6337) NPE on usage of DefaultMavenSettingsBuilder
Date Sun, 14 Jan 2018 11:34:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16325519#comment-16325519
] 

Robert Scholte commented on MNG-6337:
-------------------------------------

[~slachiewicz], a bit off-topic, but I guess you mean switching from plexus to jsr330. I can't
find a branch for it. It is a maintenance task, doesn't change the behavior of Maven, just
makes it more common to contributors. Just know that not everything can be replaced. IIRC
lifecycle mapping uses the same implementation, but different configuration. JSR330 doesn't
provide a solution for such cases.

> 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
>         Attachments: mng-6337-1.patch
>
>
> 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