Uploaded image for project: 'XWork'
  1. XWork
  2. XW-1093

Spring explicit dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Linux Maven2

    Description

      XWork core pom
      http://repo1.maven.org/maven2/com/opensymphony/xwork-core/2.1.6/xwork-core-2.1.6.pom

      defines an explicit non-optional dependency on Spring

      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      </dependency>

      which is not right - why would I need to get Spring jar just to use XWork?

      That results in Struts2 being dependent on Spring:

      mvn dependency:tree
      ....
      [INFO] +- org.apache.struts:struts2-core:jar:2.1.8.1:compile
      [INFO] | +- com.opensymphony:xwork-core:jar:2.1.6:compile
      [INFO] | | - org.springframework:spring-test:jar:2.5.6:compile
      ....

      This is not right too because Struts2 application is supposed to be runnable/deployable without any Spring jars.
      Which causes issue https://issues.apache.org/jira/browse/WW-3412

      Can we make Spring dependency optional?

      Thanks!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bornmw Oleg Mikheev
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: