Skip to content
Permalink
Browse files
fix mvn clean to make it work with module cache
  • Loading branch information
geomacy committed Feb 27, 2021
1 parent 74799e5 commit 522ebf396329d7761e63d00efc21d3278535ba8b
Showing 2 changed files with 20 additions and 0 deletions.
@@ -22,6 +22,14 @@
</condition>
<property name="build.script" location="${basedir}/release/build${platform.extension}"/>

<target name="pre-clean">
<exec executable="chmod">
<arg value="-R"/>
<arg value="+w"/>
<arg value="target"/>
</exec>
</target>

<target name="all" >
<exec executable="${build.script}" failonerror="true">
<arg value="-A"/>
@@ -60,6 +60,18 @@
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>clean-module-cache</id>
<phase>pre-clean</phase>
<configuration>
<target>
<ant target="pre-clean"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>process-build-all</id>
<phase>compile</phase>

0 comments on commit 522ebf3

Please sign in to comment.