Maven build engine throws a NPE
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)
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.
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
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)