Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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)

1

0 votes


Accepted answer

Permanent link
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

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)
Spencer Murata selected this answer as the correct answer

2 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 562
× 45

Question asked: May 24 '12, 2:53 p.m.

Question was seen: 5,350 times

Last updated: Jun 04 '12, 9:38 a.m.

Confirmation Cancel Confirm