You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Matt Raible (JIRA)" <ji...@apache.org> on 2006/09/03 01:18:31 UTC
[jira] Created: (WW-1431) xwork 2.0's pom.xml has junit listed as a
compile-time dependency, should be test (?)
xwork 2.0's pom.xml has junit listed as a compile-time dependency, should be test (?)
-------------------------------------------------------------------------------------
Key: WW-1431
URL: http://issues.apache.org/struts/browse/WW-1431
Project: Struts 2
Issue Type: Bug
Components: Configuration
Affects Versions: 2.0.0
Reporter: Matt Raible
When I run mvn in my project, I see:
[WARNING]
Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the local scope.
This seems to be caused by XWork:
opensymphony:xwork:jar:2.0-SNAPSHOT:compile (selected for compile)
[DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
[DEBUG] opensymphony:oscore:jar:2.2.4:compile (selected for compile)
[DEBUG] ognl:ognl:jar:2.6.7:compile (selected for compile)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (WW-1431) xwork 2.0's pom.xml has junit listed as
a compile-time dependency, should be test (?)
Posted by "Wendy Smoak (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1431?page=comments#action_38194 ]
Wendy Smoak commented on WW-1431:
---------------------------------
Then I think it should be marked 'optional'. You don't want to bring JUnit into every project that uses XWork. In most cases people will already have JUnit declared in test scope and Maven will do the right thing, but if someone is using some other test framework, they will have to use an exclusion to get rid of junit.
>From the Struts 1 struts-core (which also includes test classes) pom:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<optional>true</optional>
</dependency>
> xwork 2.0's pom.xml has junit listed as a compile-time dependency, should be test (?)
> -------------------------------------------------------------------------------------
>
> Key: WW-1431
> URL: http://issues.apache.org/struts/browse/WW-1431
> Project: Struts 2
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 2.0.0
> Reporter: Matt Raible
> Assigned To: Don Brown
>
> When I run mvn in my project, I see:
> [WARNING]
> Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile'
> given by a dependency. If this is not intended, modify or remove the local scope.
> This seems to be caused by XWork:
> opensymphony:xwork:jar:2.0-SNAPSHOT:compile (selected for compile)
> [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
> [DEBUG] opensymphony:oscore:jar:2.2.4:compile (selected for compile)
> [DEBUG] ognl:ognl:jar:2.6.7:compile (selected for compile)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (WW-1431) xwork 2.0's pom.xml has junit listed as
a compile-time dependency, should be test (?)
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1431?page=all ]
Don Brown resolved WW-1431.
---------------------------
Resolution: Not A Problem
Assignee: Don Brown
Actually, in this case, compile is what we want. This is because the xwork jar contains the XWorkTest base test class.
> xwork 2.0's pom.xml has junit listed as a compile-time dependency, should be test (?)
> -------------------------------------------------------------------------------------
>
> Key: WW-1431
> URL: http://issues.apache.org/struts/browse/WW-1431
> Project: Struts 2
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 2.0.0
> Reporter: Matt Raible
> Assigned To: Don Brown
>
> When I run mvn in my project, I see:
> [WARNING]
> Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile'
> given by a dependency. If this is not intended, modify or remove the local scope.
> This seems to be caused by XWork:
> opensymphony:xwork:jar:2.0-SNAPSHOT:compile (selected for compile)
> [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
> [DEBUG] opensymphony:oscore:jar:2.2.4:compile (selected for compile)
> [DEBUG] ognl:ognl:jar:2.6.7:compile (selected for compile)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (WW-1431) xwork 2.0's pom.xml has junit listed as
a compile-time dependency, should be test (?)
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1431?page=comments#action_38196 ]
Don Brown commented on WW-1431:
-------------------------------
Good point, fixed.
> xwork 2.0's pom.xml has junit listed as a compile-time dependency, should be test (?)
> -------------------------------------------------------------------------------------
>
> Key: WW-1431
> URL: http://issues.apache.org/struts/browse/WW-1431
> Project: Struts 2
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 2.0.0
> Reporter: Matt Raible
> Assigned To: Don Brown
>
> When I run mvn in my project, I see:
> [WARNING]
> Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile'
> given by a dependency. If this is not intended, modify or remove the local scope.
> This seems to be caused by XWork:
> opensymphony:xwork:jar:2.0-SNAPSHOT:compile (selected for compile)
> [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
> [DEBUG] opensymphony:oscore:jar:2.2.4:compile (selected for compile)
> [DEBUG] ognl:ognl:jar:2.6.7:compile (selected for compile)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira