Karaf
  1. Karaf
  2. KARAF-1160

Unable to configure descriptors of features-maven-plugin with range of versions.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.4
    • Fix Version/s: None
    • Component/s: karaf-tooling
    • Labels:
      None

      Description

      Unable to configure descriptors of features-maven-plugin with range of versions.

      <plugin>
          <groupId>org.apache.karaf.tooling</groupId>
          <artifactId>features-maven-plugin</artifactId>
          <executions>
              <execution>
                  <id>prepare-package</id>
                  <phase>prepare-package</phase>
                  <goals>
                      <goal>add-features-to-repo</goal>
                  </goals>
                  <configuration>
                      <descriptors>
                          <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
                          <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
                      </descriptors>
                      <features>
                          <feature>${project.groupId}</feature>
                      </features>
                      <addTransitiveFeatures>true</addTransitiveFeatures>
                      <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
                      <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
                      <skipNonMavenProtocols>true</skipNonMavenProtocols>
                      <repository>${features.repo.directory}</repository>
                  </configuration>
              </execution>
          </executions>
      </plugin>
      

      With such a configuration I'm getting the following error:

      [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar: 
      Error populating repository:
      IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
      

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Sergey Zhemzhitsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development