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

Multiple versions of transitive dependencies aren't packaged anymore

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.4, 4.0.7
    • None
    • karaf
    • Maven 3.0.5
      > Maven 3.1.0

    Description

      We have a maven project using the karaf-maven-plugin to create a kar within all my transitive dependencies, besides others we have jackrabbit oak 1.5.12 and Swagger IO 1.5.10 both need Google's guava, but Oak needs it in version 15.0 and Swagger IO needs version 18.0 (defined in the imports section of the manifest). If I build my project with Maven 3.0.5 both versions are bundled inside the kar, but as soon as I update Maven to 3.1.0 or newer only the older version is inside the kar.

      Is there anything I'm missing in my plugin configuration?

      <plugin>
      	<groupId>org.apache.karaf.tooling</groupId>
      	<artifactId>karaf-maven-plugin</artifactId>
      	<version>4.0.4</version>
      	<extensions>true</extensions>
      	<configuration>
      		<startLevel>75</startLevel>
      		<aggregateFeatures>true</aggregateFeatures>
      	</configuration>
      </plugin>
      

      Attachments

        1. KARAF-4883.patch
          3 kB
          Guillaume Nodet
        2. pom.xml
          2 kB
          Fabian Bahle

        Activity

          People

            Unassigned Unassigned
            funfried Fabian Bahle
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: