[ 
https://issues.apache.org/jira/browse/SHIRO-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17235721#comment-17235721
 ] 

Brian Demers commented on SHIRO-800:
------------------------------------

Hey Tim!

 

I don't think it was intentionally removed, but in general, I would recommend 
against depending on a `-test` jar (from external projects)

With Maven `test` jars (or any classifier jars), do not resolve the `test` 
scoped dependencies.

They are also not [usually] checked for any sort of API compatibility and could 
change with the needs of the project.

 

We _could_ create a proper "shiro-test" module, which would fix that, though 
I'm not sure how much interest there would be for this, (as everyone has 
different opinions about how to tests, mocks, testng vs junit, etc) :)

 

I'd recommend replicating this functionality in your project for now.

 

> shiro-core tests jar not in maven central for 1.7.0
> ---------------------------------------------------
>
>                 Key: SHIRO-800
>                 URL: https://issues.apache.org/jira/browse/SHIRO-800
>             Project: Shiro
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Tim Stibbs
>            Priority: Minor
>
> The shiro core tests jar 
> ([https://repo1.maven.org/maven2/org/apache/shiro/shiro-core/1.6.0/shiro-core-1.6.0-tests.jar])
>  was published to maven central for version 1.6.0, but does not appear to be 
> there for 1.7.0 
> ([https://repo1.maven.org/maven2/org/apache/shiro/shiro-core/1.7.0/shiro-core-1.7.0-tests.jar]
>  returns 404).
> We were using this jar to provide {{AbstractShiroTest}}, which appears to be 
> recommended by 
> [ExampleShiroIntegrationTest|https://github.com/apache/shiro/blob/master/core/src/test/java/org/apache/shiro/test/ExampleShiroIntegrationTest.java].
>  Is that still the right approach? Is it deliberate that this jar has been 
> missed out of this release or is it available somewhere else?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to