Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
I am trying to run a simple Shiro app in Jetty, and it's reporting multiple warnings about duplicate classes.
URL: https://github.com/flowlogix/shiro-smoketest-jetty
Relevant dependencies included:
<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.9.1</version> </dependency> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-web</artifactId> <version>1.9.1</version> </dependency>
mvn jetty:run
[WARNING] org.apache.shiro.ShiroException scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-lang/1.9.1/shiro-lang-1.9.1.jar!/org/apache/shiro/ShiroException.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/ShiroException.class [WARNING] org.apache.shiro.cache.AbstractCacheManager scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-cache/1.9.1/shiro-cache-1.9.1.jar!/org/apache/shiro/cache/AbstractCacheManager.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/cache/AbstractCacheManager.class [WARNING] org.apache.shiro.cache.Cache scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-cache/1.9.1/shiro-cache-1.9.1.jar!/org/apache/shiro/cache/Cache.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/cache/Cache.class [WARNING] org.apache.shiro.cache.CacheException scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-cache/1.9.1/shiro-cache-1.9.1.jar!/org/apache/shiro/cache/CacheException.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/cache/CacheException.class [WARNING] org.apache.shiro.cache.CacheManager scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-cache/1.9.1/shiro-cache-1.9.1.jar!/org/apache/shiro/cache/CacheManager.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/cache/CacheManager.class [WARNING] org.apache.shiro.cache.CacheManagerAware scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-cache/1.9.1/shiro-cache-1.9.1.jar!/org/apache/shiro/cache/CacheManagerAware.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/cache/CacheManagerAware.class [WARNING] org.apache.shiro.cache.MapCache scanned from multiple locations: jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-cache/1.9.1/shiro-cache-1.9.1.jar!/org/apache/shiro/cache/MapCache.class, jar:file:///Users/lprimak/.m2/repository/org/apache/shiro/shiro-core/1.9.1/shiro-core-1.9.1.jar!/org/apache/shiro/cache/MapCache.class
Attachments
Issue Links
- duplicates
-
SHIRO-744 Overlapping classes cause warnings when shading.
- Resolved