I might have missed something, but where did you use this property somewhere else in your pom? And how do you run maven? What did you put after -P?
Cheers 2008/12/19 aymen83 <[email protected]> > > two profiles this is what i have done and this the profile for spring 2.0.8 > > <profile> > <id>legacy</id> > <activation> > <activeByDefault>false</activeByDefault> > <jdk>1.5</jdk> > </activation> > <properties> > <Spring.Version>2.0.8</Spring.Version> > </properties> > <build> > <resources> > <resource> > > <directory>src\main\resources\ressourcesDev</directory> > </resource> > </resources> > <plugins> > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> > <version>2.0</version> > <configuration> > <webResources> > <resource> > > <directory>WsService\ressources2</directory> > </resource> > </webResources> > </configuration> > </plugin> > </plugins> > </build> > > </profile> > > but this seems not working since when i tape mvn dependency:resolve i only > have spring2.5.6 > thanks for helping > > > aymen83 wrote: > > > > hi > > > > i've been searching for a way to override the version of an Artifact > using > > profiles, is that possible? > > the idea is to change the version of framework when compiling a project, > > for instance, the project is compiled using spring 2.5 and i want to > write > > a profile to compile it with the version 2.0 > > > > > > -- > View this message in context: > http://www.nabble.com/questions-about-profiles--tp21088457p21093168.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
