Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7760

Class files being overwritten during the build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • None
    • None
    • Build
    • None

    Description

      Building the maven shaded infinispan-embedded the following warnings seem critical:

      [WARNING] infinispan-core-9.1.0-SNAPSHOT.jar, infinispan-commons-9.1.0-SNAPSHOT.jar define 4 overlapping classes: 
      [WARNING]   - org.infinispan.util.AbstractDelegatingCollection
      [WARNING]   - org.infinispan.util.AbstractDelegatingConcurrentMap
      [WARNING]   - org.infinispan.util.AbstractDelegatingMap
      [WARNING]   - org.infinispan.util.AbstractDelegatingSet
      

      These seem concerning as well:

      [WARNING] infinispan-cdi-embedded-9.1.0-SNAPSHOT.jar, infinispan-cdi-common-9.1.0-SNAPSHOT.jar define 53 overlapping classes: 
      [WARNING]   - org.infinispan.cdi.common.util.ParameterValueRedefiner
      [WARNING]   - org.infinispan.cdi.common.util.annotatedtypebuilder.AnnotatedConstructorImpl
      [WARNING]   - org.infinispan.cdi.common.util.Annotateds$AnnotatedFieldComparator
      [WARNING]   - org.infinispan.cdi.common.util.annotatedtypebuilder.AnnotatedTypeImpl
      [WARNING]   - org.infinispan.cdi.common.util.Annotateds$AnnotatedConstructorComparator
      [WARNING]   - org.infinispan.cdi.common.util.annotatedtypebuilder.AnnotatedMethodImpl
      [WARNING]   - org.infinispan.cdi.common.util.ContextualReference
      [WARNING]   - org.infinispan.cdi.common.util.AbstractImmutableBean
      [WARNING]   - org.infinispan.cdi.common.util.ImmutableInjectionPoint
      [WARNING]   - org.infinispan.cdi.common.util.Annotateds$MethodComparator
      [WARNING]   - 43 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/
      

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            sgrinove Sanne Grinovero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: