Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-519

maven-bundle-plugin should issue a WARNING for unsupported packaging types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • maven-bundle-plugin-1.4.0
    • maven-bundle-plugin-1.4.1
    • Maven Bundle Plugin
    • None
    • JDK 1.5 on Solaris x86, but it does not matter for this issue

    Description

      My pom uses a custom packaging type called hk2-jar, which is similar to jar. I wanted to invoke maven-bundle-plugin:bundle-manifest goal. So, I configured my pom.xml like this (Pleas note the bug in specifying supportedProjectTypes options):
      <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <configuration>
      <supportedProjectType>hk2-jar</supportedProjectType>
      <supportedProjectType>jar</supportedProjectType>
      <supportedProjectType>bundle</supportedProjectType>
      </configuration>
      <executions>
      <execution>
      <id>bundle-manifest</id>
      <phase>process-classes</phase>
      <goals>
      <goal>manifest</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      Since, I did not extend the supportedProjectTypes to include hk2-jar, ideally the plugin should have issued a WARNING message. Instead, it issues a DEBUG message if the project type is not suitable. If I run with -X option, I see a debug message that says project type is not compatible.
      Please change the plugin to issue a WARNING from maven-bundle-plugin rather than a DEBUG message.

      Attachments

        Activity

          People

            mcculls Stuart McCulloch
            sahoo Sanjeeb Kumar Sahoo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: