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
- is depended upon by
-
WW-3412 War generated by struts-2-blank-archetype fails to start
- Closed