[ 
https://issues.apache.org/jira/browse/WICKET-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569630#action_12569630
 ] 

James Carman commented on WICKET-1348:
--------------------------------------

>From a quickstart, I changed my pom by adding:

<dependency>
  <groupId>org.apache.wicket</groupId>
  <artifactId>wicket-spring</artifactId>
  <version>${wicket.version}</version>
</dependency>

<dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring</artifactId>
  <version>2.5.1</version>
</dependency>

Then, I ran mvn dependency:list and it spit out:

[INFO] Building quickstart
[INFO]    task-segment: [dependency:list]
[INFO] -------------------------------------------------------------------------
---
[INFO] [dependency:list]
[INFO]
[INFO] The following files have been resolved:
[INFO]    asm:asm:jar:1.5.3:compile
[INFO]    cglib:cglib-nodep:jar:2.1_3:compile
[INFO]    commons-logging:commons-logging:jar:1.1:compile
[INFO]    junit:junit:jar:3.8.2:test
[INFO]    log4j:log4j:jar:1.2.14:compile
[INFO]    mx4j:mx4j:jar:3.0.1:provided
[INFO]    mx4j:mx4j-tools:jar:3.0.1:provided
[INFO]    org.apache.wicket:wicket:jar:1.3.1:compile
[INFO]    org.apache.wicket:wicket-ioc:jar:1.3.1:compile
[INFO]    org.apache.wicket:wicket-spring:jar:1.3.1:compile
[INFO]    org.mortbay.jetty:jetty:jar:6.1.4:provided
[INFO]    org.mortbay.jetty:jetty-management:jar:6.1.4:provided
[INFO]    org.mortbay.jetty:jetty-util:jar:6.1.4:provided
[INFO]    org.mortbay.jetty:servlet-api-2.5:jar:6.1.4:provided
[INFO]    org.slf4j:slf4j-api:jar:1.4.2:compile
[INFO]    org.slf4j:slf4j-log4j12:jar:1.4.2:compile
[INFO]    org.springframework:spring:jar:2.5.1:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------

> Please Change Scope of Spring Dependencies in pom.xml File
> ----------------------------------------------------------
>
>                 Key: WICKET-1348
>                 URL: https://issues.apache.org/jira/browse/WICKET-1348
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-spring
>            Reporter: James Carman
>            Priority: Minor
>
> The Spring dependencies need to be marked as "provided" or whatever so that 
> they're not picked up transitively.  Projects using the wicket-spring library 
> might want to use a different version of Spring and this can bring about some 
> pretty nasty classpath errors to track down.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to