Skip to content

Commit c0da32d

Browse files
committed
HV-1549 Use mvn install instead of mvn verify in the Travis build
'mvn verify' is theoretically the way to go, but in practice it leads to some issues. In particular, Maven plugins that need to retrieve artifacts (such as those used to add our modules to the WildFly server) usually don't know about the artifacts packaged during the current build, and they end up looking for the required artifacts in the local Maven repository. If we use 'mvn verify', the artifacts used for testing will then be retrieved from a remote repository, and we'll end up executing WildFly ITs against a nightly build... Using 'mvn install' solves the issue by populating the local repository with the version currently being built. Also, this commit adds a 'before_cache' operation to avoid dirtying the cache with the artifacts currently being built.
1 parent 2821131 commit c0da32d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ before_script:
2828
script:
2929
- ./mvnw $BUILD_OPTIONS -DskipDistro=true checkstyle:check
3030
&& BUILD_OPTIONS+=' -Dcheckstyle.skip'
31-
&& ./mvnw $BUILD_OPTIONS clean verify
31+
&& ./mvnw $BUILD_OPTIONS clean install
32+
before_cache:
33+
# Do not put Hibernate Validator artifacts into the cache
34+
- rm -r $HOME/.m2/repository/org/hibernate/validator/ $HOME/.m2/repository/org/hibernate/hibernate-validator*

0 commit comments

Comments
 (0)