Skip to content

Instantly share code, notes, and snippets.

@tomoyamkung
Last active December 19, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoyamkung/5995304 to your computer and use it in GitHub Desktop.
Save tomoyamkung/5995304 to your computer and use it in GitHub Desktop.
[Java]Mavenのmaven-antrun-pluginを使ってディレクトリを作成する
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>gen-dir</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<mkdir dir="${basedir}/src/main/webapp/upload" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment