Karaf
  1. Karaf
  2. KARAF-244

features-maven-plugin does not work with maven 3

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.3, 2.2.0
    • Component/s: karaf-tooling
    • Labels:
      None

      Description

      Now that maven 3 has been released, I think it is important to get the features-maven-plugin to work under maven 3. The problem is that you normally use "mvn:" url's in the features-maven-plugin, e g:

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.karaf.tooling</groupId>
      <artifactId>features-maven-plugin</artifactId>
      <executions>
      <execution>
      <id>add-features-to-repo</id>
      <phase>generate-resources</phase>
      <goals>
      <goal>add-features-to-repo</goal>
      </goals>
      <configuration>
      <descriptors>
      <descriptor>mvn:org.apache.karaf/apache-karaf/$

      {karaf-version}

      /xml/features</descriptor>
      </descriptors>
      <features>
      <feature>ssh</feature>
      <feature>management</feature>
      <feature>webconsole</feature>
      </features>
      <repository>$

      {project.build.directory}

      /features-repo</repository>
      </configuration>
      </execution>
      </executions>
      </plugin>

      But the url handler for "mvn:" does not work under maven 3 due to changes in the classpath handling. An alternative must be developed. I've noticed on the ops4j mailing list that something called pax-url-aether is in the works. Maybe that's an option for features-maven-plugin?

      1. maven3.patch
        1 kB
        Andreas Pieber

        Activity

        Bengt Rodehav created issue -
        Jean-Baptiste Onofré made changes -
        Field Original Value New Value
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Andreas Pieber made changes -
        Attachment maven3.patch [ 12465948 ]
        Guillaume Nodet made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ] Guillaume Nodet [ gnt ]
        Guillaume Nodet made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.3 [ 12315573 ]
        Fix Version/s 2.2.0 [ 12315328 ]
        Resolution Fixed [ 1 ]
        Andreas Pieber made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Bengt Rodehav
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development