Maven build engine throws a NPE
Spencer Murata (2.3k●11●59●71)
| asked May 24 '12, 2:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jun 04 '12, 9:38 a.m.
Build started from an RTC maven build engine produces a null pointer exception using maven 2.2.1 when activityIdProperty is used in the pom file
Note: The last "caused by" is from our code org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: java.lang.NullPointerException at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) ...... Caused by: java.lang.NullPointerException at com.ibm.team.build.ant.task.StartBuildActivityTask.updateBuildResult(StartBuildActivityTask.java:159) at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105) at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:655) |
Accepted answer
Do not update your maven m2.conf file with the buildtool kit jar files. The wiki had said to put the following in the m2.conf:
load C:\Program Files (x86)\Ant\1.8.3\lib\ant.jar load C:\Program Files (x86)\IBM\Build Toolkits\3.0.1.2\buildsystem\buildtoolkit\*.jar Rather use the Ant script to load the jar files, not the Maven m2.conf file. Build started from an RTC maven build engine produces a null pointer exception using maven 2.2.1 when activityIdProperty is used in the pom file Spencer Murata selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.