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

Classifier always used even if not explicitly set in the configuration

    XMLWordPrintableJSON

Details

    Description

      If I build a bundle specifying a classifier in the command line, this classifier is used even if I did not explicitly used the classifier property in the bundle configuration. This is not consistent with the jar plugin for instance, which requires the classifier property to be set in the plugin configuration in order to really use the classifier.

      This behaviour is very problematic for by builds because I use parent projets to build several child projects, some of which needing a classifier (typically bundles containing native code). With the current behaviour, if I build the parent project with classifier linux-x86, all the bundles (even pure java bundles) will be classified. This is not wanted.

      With previous versions of maven I could set a classifier property in the pom file to null when I did not want the classifier for a particular bundle, but now this workaround no longer works.

      To fix the problem replace in BundlePlugin.java:

      • @parameter expression="${classifier}"
        */
        protected String classifier;

      with

      • @parameter
        */
        protected String classifier;

      Attachments

        Activity

          People

            mcculls Stuart McCulloch
            gdurand Guillaume Durand
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: