I'm finding it difficult to use Maven toolchains together with Jenkins. I need to specify that tests should be run with a 32-bit JVM, and doing this in by placing a suitable JDK definition in $HOME/.m2/toolchains.xml works when I am running locally on my machine, but how do I get this to work in a Jenkins environment where there are multiple slaves which need different toolchain definitions? I don't want to have to place toolchains.xml files in the $HOME directory on each Jenkins slave. I could place toolchains.xml in the root directory of my project, but then how do I specify which JVM each slave should use?
Maven toolchains.xml location under Jenkins
3.8k Views Asked by JesperE At
1
There are 1 best solutions below
Related Questions in MAVEN
- Auto reload with play2
- maven pom.xml dependencies order vs classpath/build path order
- How to ignore or fix the duplicate classes warning?
- Scala Eclipse IDE compiler giving errors until "clean" is run
- How to run multiple "mvn test"-commands from batch file?
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- javaCV Maven project
- Logging error when executing Maven SonarQube plugin
- Gradle: Override transitive dependency by version classifier
- Why we need maven if there's javac that compiles the code?
- jar file input == null while java app is working
- JPA and web app
- Test Selector Plugin Jenkins returns No tests were executed
- Eclipse OSGI unsatisfied constraint
- GlassFish 4.0 CDI deployment failure + Apache Spark
Related Questions in JENKINS
- How to export credentials from one jenkins instance to another?
- JENKINS Maven Build Failure
- Why does the Jenkins SVN plugin give error E170001 when connecting to my VisualSVN server?
- Jenkins build is stuck pending
- Some of my tests show prepended with junit.framework
- Restrict number of instances of a build in the queue
- how to generate xml report using python-green for unit testing and coverage?
- Behave test runner has no colored output on Jenkins
- Test Selector Plugin Jenkins returns No tests were executed
- jenkins with groovy postbuild .Not able to execute anything in groovy script field
- Not able to build maven project using Maven configured with Jenkins
- Sonnar runner in Jenkins error in java project
- How can I read build.xml parameters into Jenkins ?
- Cannot access file on Jenkins slave with plugin
- Excluding jobs that haven't run recently from a view in Jenkins
Related Questions in MAVEN-TOOLCHAINS-PLUGIN
- How to configure toolchains plugin in m2e / Installed maven in Eclipse
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain
- JENKINS: ERROR when I try to use an older JDK for a specific maven project
- exec-maven-plugin: Can I run exec:exec goal without first running the toolchains:toolchain goal?
- using maven deployit plugin which relies on jaxb with java 11
- What is the difference between maven compiler plugin and maven toolchains plugin?
- Maven toolchains.xml location under Jenkins
- Maven toolchain and heroku/cloud deployment
- Maven exclusion for maven-toolchains-plugin
- JDK locations in Cloudbees Jenkins (for maven toolchains.xml)
- Is it possible to specify a different JVM to run Eclipse with tycho-surefire-plugin
- Eclipse plugin cannot handle Maven toolchain plugin
- specified user toolchains file does not exist
- Maven project dependency against JDK version
- Maven. Unable to compile module with groovy-eclipse compiler
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You are SOoL.
It is one of my personal per peeves that Toolchains support is lacking a CLI or property override within Maven.
It makes integration testing of Toolchains support within Maven Plugins a right royal pain.
One of these days I will see if I can get it wired up, though you will most likely have to live with the support being only available in Maven 3.0.5 or later