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/06 16:53:00 UTC

[jira] [Assigned] (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 reassigned MRESOURCES-275:
-----------------------------------------------

    Assignee: Sylwester Lachiewicz

> 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)