You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Delany (Jira)" <ji...@apache.org> on 2021/03/10 10:07:00 UTC
[jira] [Created] (MRESOURCES-275) valid location for directory
parameter is always required
Delany created MRESOURCES-275:
---------------------------------
Summary: valid location for directory parameter is always required
Key: MRESOURCES-275
URL: https://issues.apache.org/jira/browse/MRESOURCES-275
Project: Maven Resources Plugin
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Delany
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:
{code:java}
<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>
{code}
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]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)