2 Replies Latest reply on Sep 17, 2015 1:50 PM by e965my

    Why do plugin names include "SNAPSHOT"?

    e965my Intermediate



      My company is migrating from Jive 6 to Jive 8.  As part of that effort I am rebuilding our plugins.    When the plugin is created the word "SNAPSHOT" it is included in the name, like this:



      My expectation was that the plugin be named like this:



      I am using this document as my guide: How To: Create a Custom Jive Project.  I use this maven command to generate the plugin project:

      mvn -U jive:create-plugin


      Here is the top portion of the pom for this plugin.  As you can see, the artifactId is "ehi-tac-plugin"


      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">


      Here is the plugin.xml.  You can see that the <name> node is "ehi-tac-plugin"


      <plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        <!-- you will want to change your class name here! -->


      Thanks a lot in advance,

      Scott Hopkins


      cc: Ryan Rutan, Kit Menke, Amber Orenstein, Ryan King

        • Re: Why do plugin names include "SNAPSHOT"?
          cwmenke Novice


          The reason SNAPSHOT is being added to the name of the jar is because by default maven packaging combines artifactId with version: ehi-tac-plugin + Both of these are coming from your pom.xml and the version is being pulled from the parent pom's version.


          Looks like you can change the final jar name using some config you can add to your pom.xml:


          Source: http://stackoverflow.com/a/14490656



          1 person found this helpful
            • Re: Why do plugin names include "SNAPSHOT"?
              e965my Intermediate

              The topic was touched on here too, I just never saw it:

              Jive SBS Maven Archetypes


              I modified my plugin pom like this:




              This also works:



              And problem solved.  Thanks a lot Kit!