Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7221

No way of specifying plugin versions in BOM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • jboss-fuse-6.3, fuse-7.0
    • Fuse Distribution
    • None
    • % %
    • Hide

      Create a Maven project and import jboss-fuse-parent and declare camel-salesforce-maven-plugin plugin. Notice that the version of the camel-salesforce-maven-plugin plugin does not correspond to the version of Camel declared in the jboss-fuse-parent.

      This can be reproduced by using the attached pom.xml and issuing:

      $ mvn dependency:resolve-plugins
      

      The output should include latest released version of camel-salesforce-maven-plugin:

      [INFO] Plugin Resolved: camel-salesforce-maven-plugin-2.19.2.jar
      

      Also note warning:

      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for com.mycompany:camel-blueprint:jar:1.0.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.camel.maven:camel-salesforce-maven-plugin is missing. @ line 76, column 15
      [WARNING] 
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING] 
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING] 
      
      Show
      Create a Maven project and import jboss-fuse-parent and declare camel-salesforce-maven-plugin plugin. Notice that the version of the camel-salesforce-maven-plugin plugin does not correspond to the version of Camel declared in the jboss-fuse-parent. This can be reproduced by using the attached pom.xml and issuing: $ mvn dependency:resolve-plugins The output should include latest released version of camel-salesforce-maven-plugin: [INFO] Plugin Resolved: camel-salesforce-maven-plugin-2.19.2.jar Also note warning: [WARNING] [WARNING] Some problems were encountered while building the effective model for com.mycompany:camel-blueprint:jar:1.0.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.camel.maven:camel-salesforce-maven-plugin is missing. @ line 76, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]

      This came as a support request, and when I investigated it it seems that declaring plugin version in jboss-fuse-parent does not specify the version of a plugin when imported as BOM dependency.
      Not sure if there is a legitimate way of declaring plugin versions through BOM. Should we emphasise this in documentation or quickstarts.

            Unassigned Unassigned
            zregvart@redhat.com Zoran Regvart
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: