Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6090

Move exercise code to separate packages to avoid build warnings

    XMLWordPrintableJSON

Details

    Description

      building the oak-exercise module generates warnings due to occupation of same package space:

      [WARNING] Bundle org.apache.jackrabbit:oak-exercise:bundle:1.8-SNAPSHOT : Split package, multiple jars provide the same package:org/apache/jackrabbit/oak/security/authentication
      Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning
      Package found in [Jar:., Jar:oak-core, Jar:oak-core]
      Class path [Jar:., Jar:jcr, Jar:oak-jcr, Jar:oak-core-spi, Jar:oak-store-spi, Jar:oak-api, Jar:oak-core, Jar:oak-blob, Jar:jackrabbit-data, Jar:jcl-over-slf4j, Jar:oak-blob-plugins, Jar:commons-codec, Jar:commons-io, Jar:oak-commons, Jar:oak-auth-external, Jar:jackrabbit-api, Jar:jackrabbit-jcr-commons, Jar:jsr305, Jar:org.apache.felix.scr.annotations, Jar:org.apache.felix.jaas, Jar:org.osgi.core, Jar:org.osgi.compendium, Jar:guava, Jar:slf4j-api, Jar:junit, Jar:hamcrest-core, Jar:mongo-java-driver, Jar:logback-classic, Jar:logback-core, Jar:jul-to-slf4j, Jar:h2, Jar:jackrabbit-jcr-tests, Jar:concurrent, Jar:oak-commons, Jar:oak-jcr, Jar:oak-core, Jar:geronimo-jta_1.0.1B_spec]
      [WARNING] Bundle org.apache.jackrabbit:oak-exercise:bundle:1.8-SNAPSHOT : Split package, multiple jars provide the same package:org/apache/jackrabbit/oak/security/authorization/restriction
      Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning
      Package found in [Jar:., Jar:oak-core, Jar:oak-core]
      Class path [Jar:., Jar:jcr, Jar:oak-jcr, Jar:oak-core-spi, Jar:oak-store-spi, Jar:oak-api, Jar:oak-core, Jar:oak-blob, Jar:jackrabbit-data, Jar:jcl-over-slf4j, Jar:oak-blob-plugins, Jar:commons-codec, Jar:commons-io, Jar:oak-commons, Jar:oak-auth-external, Jar:jackrabbit-api, Jar:jackrabbit-jcr-commons, Jar:jsr305, Jar:org.apache.felix.scr.annotations, Jar:org.apache.felix.jaas, Jar:org.osgi.core, Jar:org.osgi.compendium, Jar:guava, Jar:slf4j-api, Jar:junit, Jar:hamcrest-core, Jar:mongo-java-driver, Jar:logback-classic, Jar:logback-core, Jar:jul-to-slf4j, Jar:h2, Jar:jackrabbit-jcr-tests, Jar:concurrent, Jar:oak-commons, Jar:oak-jcr, Jar:oak-core, Jar:geronimo-jta_1.0.1B_spec]
      [WARNING] Bundle org.apache.jackrabbit:oak-exercise:bundle:1.8-SNAPSHOT : Split package, multiple jars provide the same package:org/apache/jackrabbit/oak/security/principal
      Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning
      Package found in [Jar:., Jar:oak-core, Jar:oak-core]
      Class path [Jar:., Jar:jcr, Jar:oak-jcr, Jar:oak-core-spi, Jar:oak-store-spi, Jar:oak-api, Jar:oak-core, Jar:oak-blob, Jar:jackrabbit-data, Jar:jcl-over-slf4j, Jar:oak-blob-plugins, Jar:commons-codec, Jar:commons-io, Jar:oak-commons, Jar:oak-auth-external, Jar:jackrabbit-api, Jar:jackrabbit-jcr-commons, Jar:jsr305, Jar:org.apache.felix.scr.annotations, Jar:org.apache.felix.jaas, Jar:org.osgi.core, Jar:org.osgi.compendium, Jar:guava, Jar:slf4j-api, Jar:junit, Jar:hamcrest-core, Jar:mongo-java-driver, Jar:logback-classic, Jar:logback-core, Jar:jul-to-slf4j, Jar:h2, Jar:jackrabbit-jcr-tests, Jar:concurrent, Jar:oak-commons, Jar:oak-jcr, Jar:oak-core, Jar:geronimo-jta_1.0.1B_spec]

      Moving the exercises and the sample code to an execise package space would also make it really obvious that this is not part of the productive code base.

      Attachments

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: