maven


Is Surefire (Maven) able to run several executions with different versions of dependencies? If yes, how?


I wonder if it's possible to have the Maven Surefire plugin running several times (several executions) with different different versions of dependencies ?
This could be convenient for example to ensure that your code is still compatible with previous versions of project's dependencies.
I manage at least to run 2 executions of surefire :
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>test-default-deps</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
</configuration>
</execution>
<execution>
<id>test-anotherversion-deps</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<reportsDirectory>${project.build.directory}/surefire-reports-anotherversion-deps</reportsDirectory>
<dependencies>
<!-- Version different of the default for the project -->
<dependency>
<groupId>com.dep.groupid</groupId>
<artifactId>dep-artifact</artifactId>
<version>anotherversion</version>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
</plugin>
But this different version is not taken into account during the 2nd execution.
Am I trying to do something unfeasible or am I doing in the wrong way ?
Is there another plugin that could be helpful for this purpose ?

Related Links

Missing artifact org.glassfish.jersey.media:jaxrs-media-moxy:jar:2.16 in Maven project in Eclipse ,what to do?
Sonatype Nexus 3 stuck on OnLine - Ready To Connect status for proxies
Jenkins get last test result when maven building fail
How can I make a goal optional in maven?
Cucumber Rerun failed features : Inconsistent filters: [#test1, #test, 23, 36]. Only one type [line,name,tag] can be used at once
Creating an external Maven packaging POM
How to Integrate BIRT Chart Engine 4.6.0 into maven project
Maven dependency plugin downloads POM instead of tar.gz
Maven get from Wrong repository
Artifactory Dependency Declaration does not match maven-metadata.xml or pom
Jenkins is not showing all executed Tests / Test Results in Build Overview
jBCrypt dependency not working
Maven not importing External Library into project after adding to .pom file in Intellij
docker-maven-plugin build assembly fail
Maven - How to override version?
Dependencies and Repositories?

Categories

HOME
compiler-construction
openlayers
keras
hashmap
alfresco
framework7
rsync
setup-deployment
survey
add
applepay
communication
metatrader4
user-input
postgres-xl
iron-router
percona
ghc
jsdoc
dbext
java-3d
jquery-ajaxq
ehcache
dxf
underflow
bootstrap-duallistbox
fluentvalidation
subdomains
bpel
librato
gsoap
nameservers
ghost4j
html5-fullscreen
ios5
xcode-extension
swisscomdev
automake
espeak
jna
leading-zero
trim
nxlog
xml-documentation
jquery-validate
domain-model
dtexec
pearson
pdfclown
bind9
lync-client-sdk
background-service
messenger
word-vba-mac
static-ip-address
google-feed-api
mathematica-frontend
paypal-express
qpid
nsviewcontroller
php-internals
jfugue
kendonumerictextbox
lib.web.mvc
cartesian-product
iis-arr
ios9.1
system.reflection
jscript.net
gadt
gui-test-framework
winddk
javafx-webengine
client-side-templating
googlemock
htmlcleaner
meteor-velocity
cloud-connect
ivyde
easy-install
sharp-repository
lcs
dmoz
isnullorempty
cisco-jtapi
frameset
chrono
transactionscope
adk
gnustep
coercion
xdomainrequest
jquery-ui-droppable
substrings
iweb
aquaticprime
signal-handling

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App