Post

Maven Execute Script In Clean Phase

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>exec-maven-plugin</artifactId>
   <version>3.1.1</version>
   <executions>
      <execution>
         <id>setup_target</id>
         <phase>pre-clean</phase>
         <goals>
            <goal>exec</goal>
         </goals>
         <configuration>
            <executable>bash</executable>
            <commandlineArgs>setup_idea.sh</commandlineArgs>
         </configuration>
      </execution>
   </executions>
</plugin>

This post is licensed under CC BY 4.0 by the author.