-
Notifications
You must be signed in to change notification settings - Fork 31
Replace default clean
Igor Maznitsa edited this page May 23, 2017
·
1 revision
Clean goal also uses go clean
command so that it needs loading Golang SDK (if it is not provided). if you don't want such effect for cleaning then you can make some workaround
- Disable the default clean processing by the wrapper, just add
execution
section amongexecutions
of the wrapper
<execution>
<id>default-clean</id>
<phase>none</phase>
</execution>
It will turn off default cleaning mechanism of the wrapper and Golang SDK will not be downloaded.
- You still can use standard maven cleaning plugin and remove files and folders manually, just add the plugin with list of files and folders to be removed into
build
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<followSymLinks>false</followSymLinks>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${basedir}/bin</directory>
</fileset>
</filesets>
</configuration>
</plugin>