Skip to content

Commit

Permalink
Fix build issues after latest Travis changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Apr 17, 2021
1 parent 9a4b59a commit a4ba62b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
16 changes: 5 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
image: maven:latest
osx_image: xcode9.3
sudo: false

Expand Down Expand Up @@ -25,24 +26,17 @@ before_install:
- |
if [ "${TRAVIS_OS_NAME}" == windows ]; then
choco install -y zulu8
choco install -y maven
export PATH=/C/Program\ Files/Zulu/zulu-8/bin:/C/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/bin:$PATH
choco install -y maven --version 3.8.1
export PATH=/C/Program\ Files/Zulu/zulu-8/bin:/C/ProgramData/chocolatey/lib/maven/apache-maven-3.8.1/bin:$PATH
echo "PATH=${PATH}"
fi
install: /usr/bin/env true

script: mvn clean install -V -B -Dmaven.artifact.threads=64 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

before_cache:
- |
find $HOME/.m2/repository/ -name *SNAPSHOT | xargs rm -Rf
if [ "${TRAVIS_OS_NAME}" == osx ]; then
brew cleanup
fi
script: mvn clean install -V -B -s settings.xml -Dmaven.artifact.threads=64 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

cache:
timeout: 1000
# timeout: 5000
directories:
- "$HOME/.m2"
- $HOME/AppData/Local/Temp/chocolatey
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.9.0</version>
<version>3.9.1</version>
<executions>
<execution>
<id>attach-descriptor</id>
Expand Down
30 changes: 30 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2008 Mycila (mathieu.carbou@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>maven-central</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>

0 comments on commit a4ba62b

Please sign in to comment.