title: How to create new directory in target folder with Maven
body: <p>I am writing a library which will create a report based on the test results (imagine something like Surefire). And my problem is, I am able to create a folder in <code>target/</code> directory to hold the report and also copy there necessary files but I can do that only when I build the library project itself. </p>
  
  <p>I would like to  achieve same behavior like a Surefire plugin has, that means if I put dependency for my library to some project, let's say <code>myProject</code>, then I will get something like <code>myProject/target/myLibrary</code> after the build.</p>
  
  <p>btw, this is what I currently have</p>
  
  <pre><code>&lt;plugin&gt;
       &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
       &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
       &lt;version&gt;1.7&lt;/version&gt;
           &lt;executions&gt;
               &lt;execution&gt;
                  &lt;phase&gt;generate-test-sources&lt;/phase&gt;
                  &lt;configuration&gt;
                      &lt;tasks&gt;
                          &lt;echo message="Creating folder for the lib..." /&gt;
                          &lt;mkdir dir="${report.folder}" /&gt;
                          &lt;echo message="Copying Twitter Bootstrap libraries to the ${report.folder}" /&gt;
                          &lt;copy todir="${report.folder}"&gt;
                                  &lt;fileset dir="src/main/resources/bootstrap"&gt;
                                      &lt;include name="**/**" /&gt;
                                  &lt;/fileset&gt;
                              &lt;/copy&gt;
                          &lt;/tasks&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>And also bonus question, is there a variable for <code>src/main/resources</code>?</p>