IDEMPIERE-5890:mvn validate is failed by artifacts could not be resolved (#2072)
This commit is contained in:
parent
e43b000894
commit
5379315ab3
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue