title: In Maven, how to iterate folder/directory?
body: <p>I have directory with 100 files under it. I just want to print it. Please find below the plugin I have written. I am getting following error:</p>
  
  <p>[ERROR] PluginConfigurationException:
  org.apache.maven.plugin.PluginConfigurationException: Unable to parse configuration of mojo org.apache.maven.plugins:maven-antrun-plugin:1.7:run for parameter outputDirectory: Cannot find 'outputDirectory' in class org.apache.maven.plugin.antrun.AntRunMojo
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:605)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:537)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)</p>
  
  <p>The code is as below:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;com.soebes.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;iterator-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.3&lt;/version&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;phase&gt;validate&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;iterator&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                    &lt;folder&gt;${user.home}/${dasmo.storage}&lt;/folder&gt;
                    &lt;pluginExecutors&gt;
                      &lt;pluginExecutor&gt;
                        &lt;plugin&gt;
                          &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
                          &lt;version&gt;1.7&lt;/version&gt;
                        &lt;/plugin&gt;
                        &lt;goal&gt;run&lt;/goal&gt;
                        &lt;configuration&gt;
                          &lt;tasks&gt;
                              &lt;echo message="base dir is ${item}" /&gt;
                          &lt;/tasks&gt;
                        &lt;/configuration&gt;
                      &lt;/pluginExecutor&gt;
                    &lt;/pluginExecutors&gt;
                  &lt;/configuration&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
            &lt;/plugin&gt;
  </code></pre>