IDEMPIERE-5890:mvn validate is failed by artifacts could not be resolved (#2072)

This commit is contained in:
hieplq 2023-10-23 12:15:25 +07:00 committed by GitHub
parent e43b000894
commit 5379315ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 9 deletions

View File

@ -15,21 +15,50 @@
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions> <executions>
<execution> <execution>
<id>auto-clean</id>
<phase>validate</phase> <phase>validate</phase>
<goals> <goals>
<goal>run</goal> <goal>clean</goal>
</goals> </goals>
<configuration> <configuration>
<target> <skip>${skipClean}</skip>
<delete file="${project.basedir}/target/local-artifacts.properties" quiet="true"/> <excludeDefaultDirectories>false</excludeDefaultDirectories>
<delete <filesets>
dir="${project.basedir}/target/repository" quiet="true"/> <fileset>
</target> <directory>${project.basedir}/lib</directory>
<includes>
<include>*.jar</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>always-clean</id>
<phase>validate</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<skip>false</skip>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.basedir}/target</directory>
<includes>
<include>local-artifacts.properties</include>
<include>repository</include>
<include>repository/**</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>