i'm really confused. I wrote the following profile but after compilation and
when i tape mvn -Plegacy dependency:tree the only version of spring i can
see is 2.5.6
is there something wrong?
<profile>
<id>legacy</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.5</jdk>
</activation>
<properties>
<Spring.Version>2.0.8</Spring.Version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>${Spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${Spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${Spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${Spring.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<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>
Brian E Fox wrote:
>
> It's simply asking the core to resolve all the dependencies and then it
> enumerates them. It can be usefull when you just want to see the list of
> deps, or if you are troubleshooting resolution issues, you can quickly
> force everything to be resolved. There is also dependency:tree that will
> give you more info.
>
> -----Original Message-----
> From: aymen83 [mailto:[email protected]]
> Sent: Monday, December 22, 2008 8:04 AM
> To: [email protected]
> Subject: Re: mvn dependency:resolve what's it for?
>
>
> ok, thanks for the clarification
> cheers
>
> Brett Randall-2 wrote:
>>
>>>>my project was initially compiled with spring 2.5.6 and after that i
>> compiled it with spring 2.0.8
>>
>> How did you enact the change from 2.5.6 to 2.0.8? Did you make a
>> hard-change
>> to the dependency version, or did you activate a profile?
>>
>> If you activated a profile, then to see the same results with
>> dependency:resolve, you would also need to activate the same profile
> when
>> running that goal.
>>
>> On Mon, Dec 22, 2008 at 10:11 PM, aymen83 <[email protected]>
> wrote:
>>
>>>
>>> my question is
>>> if i compile my project with spring 2.0.8 for exemple and i tape mvn
>>> dependency:reslove the CLI will show that the project was compiled
> using
>>> it?
>>>
>>> i asked this question because my project was initially compiled with
>>> spring
>>> 2.5.6 and after that i compiled it with spring 2.0.8 so when i tape
> mvn
>>> dependency:resolve i see spring 2.5.6 so i was wondering if it was
> really
>>> compiled with version2.0.8? or is there another CLI that can be more
>>> specific?
>>>
>>> thanks
>>>
>>>
>>> Brett Randall-2 wrote:
>>> >
>>> > According to
>>> > http://maven.apache.org/plugins/maven-dependency-plugin/index.html
> ,
>>> >
>>> > dependency:resolve<
>>>
> http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.htm
> l
>>> >tells
>>> > Maven to resolve all dependencies and displays the version.
>>> >
>>> > This is what it does for my projects. Do you have a specific
> question
>>> > about
>>> > its operation?
>>> >
>>> > On Mon, Dec 22, 2008 at 9:52 PM, aymen83 <[email protected]>
> wrote:
>>> >
>>> >>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>>
> http://www.nabble.com/mvn-dependency%3Aresolve-what%27s-it-for--tp211258
> 80p21125880.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]
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>>
> http://www.nabble.com/mvn-dependency%3Aresolve-what%27s-it-for--tp211258
> 80p21126140.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]
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/mvn-dependency%3Aresolve-what%27s-it-for--tp211258
> 80p21127444.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]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/mvn-dependency%3Aresolve-what%27s-it-for--tp21125880p21128739.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]