title: How to add CometD 5x and above jars to Maven project
body: <p>I’m not a Java developer, but I find myself having to update an old Maven Java command line project that uses a cometd 4x <strong>client</strong> library. Every since version 5x, cometd libraries inside the main Maven repo contain only pom.xml files, but no jar files (for instance <a href="https://repo1.maven.org/maven2/org/cometd/java/cometd-java-client/7.0.7/" rel="nofollow noreferrer">https://repo1.maven.org/maven2/org/cometd/java/cometd-java-client/7.0.7/</a>), so I cannot simply add this entry to my pom.xml:</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.cometd.java&lt;/groupId&gt;
      &lt;artifactId&gt;cometd-java-client&lt;/artifactId&gt;
      &lt;version&gt;7.0.7&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>The cometd official site does provide a .tar.gz file with all the needed jars (<a href="https://download.cometd.org/" rel="nofollow noreferrer">https://download.cometd.org/</a>), and in a folder hierarchy that resembles a maven repo, but I could not find instructions on how to use it properly.</p>
  <p>The official documentation only focuses on server implementations which have a ton of extra dependencies (<a href="https://docs.cometd.org/current7/reference/#_deploying_your_cometd_application" rel="nofollow noreferrer">https://docs.cometd.org/current7/reference/#_deploying_your_cometd_application</a>).</p>
  <p>Can I add the contents of the .tar.gz file as a local maven repo or as a module of my current project? And how do I do that exactly? Right now I’m trying a solution form this answer (<a href="https://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them">Can I add jars to Maven 2 build classpath without installing them?</a>), but there are so many manual steps that I believe there must be a better way to do it.</p>