Comments (12)
Workaround
before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- unzip -qq apache-maven-3.3.9-bin.zip
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$M2_HOME/bin:$PATH
from enterprise-installation.
+1
from enterprise-installation.
+1
from enterprise-installation.
I personnally switched to docker using the following (see it in action in jgitver-maven-plugin for example)
language: bash
sudo: required
services:
- docker
script:
- docker run --rm -v $(pwd):/root/sources -w /root/sources maven:3.3.9-jdk-8 mvn -Prun-its clean install
after_failure:
- find target/it -name *.log -exec echo {} \; -exec cat {} \;
branches:
except:
- gh-pages
from enterprise-installation.
@TuomasMatilainen Thanks for the suggestion with before_install!!
That is currently still working.
Note my travis.yml looks like similar (I know it might not be the most compact config but does exactly what I want to test):
language: java
sudo: false
dist: trusty
jdk:
- oraclejdk9
- oraclejdk8
- openjdk7
matrix:
include:
- jdk: openjdk7
env: CUSTOM_MVN_VERION="3.0"
- jdk: openjdk7
env: CUSTOM_MVN_VERION="3.1.1"
- jdk: openjdk7
env: CUSTOM_MVN_VERION="3.2.5"
- jdk: openjdk7
env: CUSTOM_MVN_VERION="3.3.9"
- jdk: oraclejdk9
env: CUSTOM_MVN_VERION="3.5.0"
install:
- if [[ -n "${CUSTOM_MVN_VERION}" ]]; then
echo "Download Maven ${CUSTOM_MVN_VERION}....";
if [[ "${CUSTOM_MVN_VERION}" == "3.0" ]]; then
wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
else
wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
fi;
unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION};
export PATH=$M2_HOME/bin:$PATH;
mvn -version;
fi
feel free to use it for whatever project / license
from enterprise-installation.
+1
from enterprise-installation.
+1
from enterprise-installation.
+1
from enterprise-installation.
That would be good especially for maven plugins matrix build, so +1 also for me.
Meanwhile did someone solved that differently?
from enterprise-installation.
is this supposed to be available in travis? would be really nice...
from enterprise-installation.
Is there any news about this idea?
from enterprise-installation.
Is there any news about this feature?
from enterprise-installation.
Related Issues (16)
- Ability to kick off a new build w/o pushing HOT 1
- node 0.12 binary not available yet? HOT 3
- Docs update. HOT 1
- Go support HOT 3
- Custom root certificate HOT 7
- Cloud Foundry provider not found HOT 4
- SMTP without authentication HOT 1
- Increase concurrent job HOT 1
- Zombie builds in queue HOT 1
- AWS worker configuration
- Increase Job Timeouts HOT 1
- Read-only access for database
- Update docs with new package based installation instructions HOT 1
- Docker CLI tries to connect to daemon through proxy HOT 1
- Jobs not starting on new worker HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enterprise-installation.