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

myeclipse2014 create maven project :The desired archetype does not exist
Maven - Inherit parent pom's modules [duplicate]
Jboss 7.x redeploy option
Multiple Sources directories using maven-remote-resources-plugin
Skip compilation of integration test in maven project
No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
IOException issues
Run JMeter headless with maven with AMQP plug in
Can I get Maven to turn a file into properties I can use in my Maven script?
Deploy an artifact into Archiva repo using maven POM
Alternative place to specify mvn --fail-at-end command line option?
Maven - Not able to open jars it is downloading
Deploy p2 repo to Nexus
System.Diagnostics.Debug.WriteLine() Does Not Work Under NUnit Console
how to use maven with intellij 13
Automatically download missing artifacts if missing in Artifactory

Categories

HOME
xamarin
pdf
bluetooth
hashmap
gis
getelementsbytagname
react-redux
cmd
frameworks
umd
yum
fancybox
constraint-programming
autotools
communication
imacros
rascal
samoa
google-pagespeed
autoconf
java-3d
abi
errorlevel
functional-testing
xpages-ssjs
tdd
fish
virtualdub
fifo
elasticsearch-net
libssl
kendo-datasource
primitive
skia
react-chartjs
grails-3.1
caret
form-data
normal-distribution
overriding
git-merge
dartium
serve
web-mining
retina-display
xenforo
gzipstream
spring-security-kerberos
fakeiteasy
vao
netcdf4
azure-application-gateway
chain-builder
promela
setter
magma
crypt
r-forge
qtwebview
epson
deadbolt-2
intrusion-detection
ready-api
hover-over
rvest
hsv
separator
prerequisites
dukescript
varargs
inmobi
umbraco6
poller
html5-notifications
listings
eventual-consistency
padarn
venn-diagram
pendrive
punbb
whoosh
zpt
external-accessory
xdomainrequest
actionview
android-sdk-2.1
telerik-scheduler
site.master
coda-slider
.nettiers
mirah
firefox4
libs
premature-optimization
lzh
uiq3

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