Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2.0
-
None
-
None
Description
Suppose I remove src/main/resources.
When I build, default-resources execution logs "skip non existing resourceDirectory"
But when i configure my own execution like so, it throws a null pointer exception:
<plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>readme-resources</id> <phase>process-resources</phase> <goals> <goal>resources</goal> </goals> <configuration> <resources> <resource> </resource> </resources> </configuration> </execution> </executions> </plugin>
Its a bit confusing because the documentation for the goal makes no mention of a directory parameter, and its obviously a required parameter, and it must be a valid location.
https://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html