You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2021/12/07 00:55:00 UTC
[jira] [Closed] (MRESOURCES-275) valid location for directory parameter is always required
[ https://issues.apache.org/jira/browse/MRESOURCES-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylwester Lachiewicz closed MRESOURCES-275.
-------------------------------------------
Resolution: Fixed
Done in [7cbd412b4101668567188992de7b9947af6cf237|https://gitbox.apache.org/repos/asf?p=maven-filtering.git;a=commit;h=7cbd412b4101668567188992de7b9947af6cf237]
> 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
> Assignee: Sylwester Lachiewicz
> Priority: Minor
> Fix For: 3.3.0
>
>
> 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.20.1#820001)