[
https://issues.apache.org/jira/browse/SCM-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17964183#comment-17964183
]
ASF GitHub Bot commented on SCM-836:
------------------------------------
jira-importer opened a new issue, #1259:
URL: https://github.com/apache/maven-scm/issues/1259
**[Dan
Tran](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dantran)**
opened
**[SCM-836](https://issues.apache.org/jira/browse/SCM-836?redirect=false)** and
commented
This issue shows up at 1.9.5 with the following stack trace
Caused by: java.lang.NullPointerException
at org.apache.maven.scm.plugin.BootstrapMojo.runGoals(BootstrapMojo.java:123)
at org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:94)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
Looking into debug log. Looks like mavenHome is set to null which should be
"" instead ( ie defaultValue="" does not work??? )
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-scm-plugin:1.9.5:bootstrap' with basic
configurator -->
[DEBUG] (f) basedir =
/data/jenkins-work/jobs/sit/jobs/sit-master/workspace/sit/aaa
[DEBUG] (s) checkoutDirectory =
/data/jenkins-work/jobs/sit/jobs/sit-master/workspace/sit/aaa/target/checkout
[DEBUG] (f) connectionType = connection
[DEBUG] (f) developerConnectionUrl =
scm:p4://IDP/shared/main/itests/restapi/aaa
[DEBUG] (f) goals = verify,-Dsky.sshUser=admin
[DEBUG] (f) profiles = aaa
[DEBUG] (f) pushChanges = true
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@5b69d40d
[DEBUG] (f) skipCheckoutIfExists = false
[DEBUG] (f) useExport = false
[DEBUG] - end configuration --
work around is to pass in -DmavenHome=""
---
**Affects:** 1.9.5
1 votes, 2 watchers
> scm:bootstrap throws NPE
> ------------------------
>
> Key: SCM-836
> URL: https://issues.apache.org/jira/browse/SCM-836
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-plugin
> Affects Versions: 1.9.5
> Reporter: Dan Tran
> Assignee: Dan Tran
> Priority: Major
> Fix For: 1.10.0
>
>
> This issue shows up at 1.9.5 with the following stack trace
> Caused by: java.lang.NullPointerException
> at
> org.apache.maven.scm.plugin.BootstrapMojo.runGoals(BootstrapMojo.java:123)
> at
> org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:94)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> ... 21 more
> Looking into debug log. Looks like mavenHome is set to null which should be
> "" instead ( ie defaultValue="" does not work??? )
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-scm-plugin:1.9.5:bootstrap' with basic
> configurator -->
> [DEBUG] (f) basedir =
> /data/jenkins-work/jobs/sit/jobs/sit-master/workspace/sit/aaa
> [DEBUG] (s) checkoutDirectory =
> /data/jenkins-work/jobs/sit/jobs/sit-master/workspace/sit/aaa/target/checkout
> [DEBUG] (f) connectionType = connection
> [DEBUG] (f) developerConnectionUrl =
> scm:p4://IDP/shared/main/itests/restapi/aaa
> [DEBUG] (f) goals = verify,-Dsky.sshUser=admin
> [DEBUG] (f) profiles = aaa
> [DEBUG] (f) pushChanges = true
> [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@5b69d40d
> [DEBUG] (f) skipCheckoutIfExists = false
> [DEBUG] (f) useExport = false
> [DEBUG] -- end configuration --
> work around is to pass in -DmavenHome=""
--
This message was sent by Atlassian Jira
(v8.20.10#820010)