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

features-maven-plugin does not work with maven 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.3, 2.2.0
    • karaf
    • 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?

      Attachments

        1. maven3.patch
          1 kB
          Andreas Pieber

        Activity

          People

            gnodet Guillaume Nodet
            rodehav Bengt Rodehav
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: