Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-275

valid location for directory parameter is always required

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.3.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

       

      Attachments

        Activity

          People

            slachiewicz Sylwester Lachiewicz
            delany Delany
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: