Hans Brende created ANY23-369:
---------------------------------

             Summary: Resolve overlapping classes
                 Key: ANY23-369
                 URL: https://issues.apache.org/jira/browse/ANY23-369
             Project: Apache Any23
          Issue Type: Sub-task
    Affects Versions: 2.3
            Reporter: Hans Brende
             Fix For: 2.3


When I use the {{maven-shade-plugin}} on the Any23 project, it warns me of the 
following overlapping classes: 

[WARNING] xml-apis-1.4.01.jar, stax-api-1.0.1.jar define 37 overlapping classes:
[WARNING]   - javax.xml.stream.XMLEventReader
[WARNING]   - javax.xml.stream.StreamFilter
[WARNING]   - javax.xml.namespace.NamespaceContext
[WARNING]   - javax.xml.stream.util.StreamReaderDelegate
[WARNING]   - javax.xml.stream.EventFilter
[WARNING]   - javax.xml.stream.events.StartDocument
[WARNING]   - javax.xml.stream.XMLEventWriter
[WARNING]   - javax.xml.stream.XMLStreamConstants
[WARNING]   - javax.xml.stream.events.EntityDeclaration
[WARNING]   - javax.xml.stream.events.ProcessingInstruction
[WARNING]   - 27 more...
[WARNING] httpcore-4.4.10.jar, httpcore-osgi-4.4.10.jar define 252 overlapping 
classes:
[WARNING]   - org.apache.http.protocol.HttpRequestHandler
[WARNING]   - org.apache.http.impl.io.ChunkedOutputStream
[WARNING]   - org.apache.http.protocol.ChainBuilder
[WARNING]   - org.apache.http.impl.entity.DisallowIdentityContentLengthStrategy
[WARNING]   - org.apache.http.impl.ConnSupport
[WARNING]   - org.apache.http.impl.io.DefaultHttpResponseParserFactory
[WARNING]   - org.apache.http.HttpClientConnection
[WARNING]   - org.apache.http.NameValuePair
[WARNING]   - org.apache.http.protocol.HttpExpectationVerifier
[WARNING]   - org.apache.http.impl.io.AbstractMessageWriter
[WARNING]   - 242 more...
[WARNING] httpmime-4.5.6.jar, httpclient-osgi-4.5.6.jar define 23 overlapping 
classes:
[WARNING]   - org.apache.http.entity.mime.FormBodyPart
[WARNING]   - org.apache.http.entity.mime.MultipartEntity
[WARNING]   - org.apache.http.entity.mime.content.FileBody
[WARNING]   - org.apache.http.entity.mime.MultipartFormEntity
[WARNING]   - org.apache.http.entity.mime.HttpMultipart
[WARNING]   - org.apache.http.entity.mime.content.ContentBody
[WARNING]   - org.apache.http.entity.mime.content.AbstractContentBody
[WARNING]   - org.apache.http.entity.mime.content.ByteArrayBody
[WARNING]   - org.apache.http.entity.mime.HttpRFC6532Multipart
[WARNING]   - org.apache.http.entity.mime.HttpStrictMultipart
[WARNING]   - 13 more...
[WARNING] fluent-hc-4.5.6.jar, httpclient-osgi-4.5.6.jar define 14 overlapping 
classes:
[WARNING]   - org.apache.http.client.fluent.InternalHttpRequest
[WARNING]   - org.apache.http.client.fluent.ContentResponseHandler
[WARNING]   - org.apache.http.client.fluent.InternalInputStreamEntity
[WARNING]   - org.apache.http.client.fluent.Async
[WARNING]   - org.apache.http.client.fluent.HttpHeader
[WARNING]   - org.apache.http.client.fluent.Async$ExecRunnable
[WARNING]   - org.apache.http.client.fluent.Response
[WARNING]   - org.apache.http.client.fluent.InternalEntityEnclosingHttpRequest
[WARNING]   - org.apache.http.client.fluent.Content
[WARNING]   - org.apache.http.client.fluent.Request
[WARNING]   - 4 more...
[WARNING] httpclient-4.5.6.jar, httpclient-osgi-4.5.6.jar define 467 
overlapping classes:
[WARNING]   - org.apache.http.impl.cookie.RFC2109Spec
[WARNING]   - org.apache.http.impl.execchain.MainClientExec
[WARNING]   - org.apache.http.conn.routing.RouteInfo$TunnelType
[WARNING]   - org.apache.http.client.methods.HttpGet
[WARNING]   - org.apache.http.impl.cookie.BrowserCompatSpecFactory
[WARNING]   - org.apache.http.impl.client.HttpAuthenticator
[WARNING]   - org.apache.http.conn.ManagedClientConnection
[WARNING]   - org.apache.http.client.protocol.RequestAuthCache
[WARNING]   - org.apache.http.conn.params.ConnConnectionParamBean
[WARNING]   - org.apache.http.impl.client.IdleConnectionEvictor
[WARNING]   - 457 more...
[WARNING] httpclient-osgi-4.5.6.jar, httpclient-cache-4.5.6.jar define 81 
overlapping classes:
[WARNING]   - org.apache.http.client.cache.HeaderConstants
[WARNING]   - 
org.apache.http.impl.client.cache.memcached.MemcachedSerializationException
[WARNING]   - org.apache.http.impl.client.cache.ImmediateSchedulingStrategy
[WARNING]   - org.apache.http.impl.client.cache.OptionsHttp11Response
[WARNING]   - org.apache.http.client.cache.HttpCacheContext
[WARNING]   - org.apache.http.impl.client.cache.CacheConfig$Builder
[WARNING]   - org.apache.http.impl.client.cache.FailureCache
[WARNING]   - org.apache.http.impl.client.cache.SizeLimitedResponseReader$1
[WARNING]   - org.apache.http.impl.client.cache.BasicIdGenerator
[WARNING]   - org.apache.http.client.cache.CacheResponseStatus
[WARNING]   - 71 more...
[WARNING] httpclient-osgi-4.5.6.jar, commons-codec-1.11.jar define 92 
overlapping classes:
[WARNING]   - org.apache.commons.codec.language.Nysiis
[WARNING]   - org.apache.commons.codec.language.bm.Rule$1
[WARNING]   - org.apache.commons.codec.language.bm.Rule$RPattern
[WARNING]   - 
org.apache.commons.codec.language.ColognePhonetic$CologneInputBuffer
[WARNING]   - org.apache.commons.codec.digest.HmacUtils
[WARNING]   - org.apache.commons.codec.language.bm.BeiderMorseEncoder
[WARNING]   - org.apache.commons.codec.digest.UnixCrypt
[WARNING]   - org.apache.commons.codec.language.Soundex
[WARNING]   - org.apache.commons.codec.binary.BinaryCodec
[WARNING]   - org.apache.commons.codec.language.bm.Languages$1
[WARNING]   - 82 more...
[WARNING] httpcore-osgi-4.4.10.jar, httpcore-nio-4.4.10.jar define 240 
overlapping classes:
[WARNING]   - org.apache.http.nio.reactor.IOReactor
[WARNING]   - org.apache.http.impl.nio.codecs.AbstractContentDecoder
[WARNING]   - org.apache.http.impl.nio.DefaultNHttpClientConnection
[WARNING]   - org.apache.http.nio.protocol.HttpAsyncRequestExecutionHandler
[WARNING]   - org.apache.http.nio.pool.AbstractNIOConnPool
[WARNING]   - org.apache.http.impl.nio.codecs.DefaultHttpRequestWriter
[WARNING]   - org.apache.http.impl.nio.reactor.ChannelEntry
[WARNING]   - 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker
[WARNING]   - org.apache.http.nio.entity.NByteArrayEntity
[WARNING]   - 
org.apache.http.nio.protocol.BufferingHttpServiceHandler$RequestHandlerResolverAdaptor
[WARNING]   - 230 more...
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to