Inside a maven project with some resources configured like this :
<webResources>
....
<resource>
<directory>${project.build.directory}/${temp.dir}</directory>
</resource>
</webResources>
the ${temp.dir} is generated conditionally by a plugin and do not exists always. When it is not there maven of course fail with an NPE, how could I fix this ?