mirror of https://github.com/apache/maven.git
o if we don't have a project then we don't have any pre/post goals.
this happens when we are initializing a project. maybe for the initializing mode we should send in the parent POM. not sure yet. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1e3e8c5073
commit
ebbb80139c
|
@ -163,6 +163,11 @@ public class MavenSession
|
||||||
|
|
||||||
public List getPreGoals( String goal )
|
public List getPreGoals( String goal )
|
||||||
{
|
{
|
||||||
|
if ( project == null )
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
List result = (List) preGoalMappings.get( goal );
|
List result = (List) preGoalMappings.get( goal );
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -170,6 +175,11 @@ public class MavenSession
|
||||||
|
|
||||||
public List getPostGoals( String goal )
|
public List getPostGoals( String goal )
|
||||||
{
|
{
|
||||||
|
if ( project == null )
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
List result = (List) postGoalMappings.get( goal );
|
List result = (List) postGoalMappings.get( goal );
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue