Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6418

Add flag to mark transitive dependencies with dependency="true"

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.6
    • 4.3.0, 4.2.7
    • karaf
    • None

    Description

      The karaf-maven-plugin doesn't allow to specify whether bundle is dependency or not solely via pom dependencies. Maintaining a manual feature file with all the current dependencies seems troublesome.

      Adding a flag markTransitiveAsDependency indicating whether the plugin should mark transitive dependencies' bundle elements as a dependency would solve the problem. It should defaults to false to keep the current behaviour and also only have an effect when includeTransitiveDependency is true.

      For consistency we should also add a markRuntimeScopeAsDependency flag, similarly indicating whether the plugin should also mark dependencies' with the runtime scope, despite the fact that behaviour doesn't seem to be working (#KARAF-4537).

       


      Side notes:

      Isn't the DependencyHelper31 effectively filtering-out dependencies with the scope "provided", rendering the ignoreScopeProvided flag useless? (Dependency31Helper.java#L231)

      Also, isn't it making the simplifyBundleDependencies flag useless, by always removing feature transitive dependencies regardless? (Dependency31Helper.java#L225)

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              nantunes Nelson Antunes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: