title: What is the purpose of including the jersey-bom import scoped dependency in a jersey project?
body: <p>When generating a <a href="/questions/tagged/jersey" class="post-tag" title="show questions tagged &#39;jersey&#39;" rel="tag">jersey</a> based project using <code>the jersey-quickstart-grizzly2</code> artifact </p>
  
  <pre class="lang-xml prettyprint-override"><code>mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 \
  -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false \
  -DgroupId=com.example -DartifactId=simple-service -Dpackage=com.example \
  -DarchetypeVersion=2.7
  </code></pre>
  
  <p>The pom generated a <code>jersey-bom</code> dependency <strong>which can be deleted</strong>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.glassfish.jersey&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-bom&lt;/artifactId&gt;
                  &lt;version&gt;${jersey.version}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  </code></pre>
  
  <p>And this dependency:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
        &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
        &lt;artifactId&gt;jersey-container-grizzly2-http&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>this is how the maven dependency graph looks like: </p>
  
  <p><img src="https://i.stack.imgur.com/bUesD.png" alt="enter image description here"> </p>
  
  <p>What is the purpose of including the <code>jersey-bom</code> dependency in the project ?</p>