How To Use Pom Plugin To Mkdir Directory
這篇介紹How To Use Pom Plugin To Mkdir Directory。
Pom example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>createROOT</id> <phase>process-resources</phase> <configuration> <target> <echo message="Creating target/ROOT directory" /> <mkdir dir="./target/ROOT" /> <mkdir dir="./target/test-classes" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
|