title: how to generate download-site using maven
body: <p>I am new to Maven and trying to accomplish a simple task:</p>
  
  <ol>
  <li>build jar package and web site [DONE]</li>
  <li>deploy them to remote server via scp [DONE]</li>
  <li>the site should contain download page with links to the deployed jar files [MISSING]</li>
  </ol>
  
  <p>I do not want to use archiva or similar tools. I just want to have a (static, generated) page on the web site with the links to all the built jars (or only to the latest build).</p>
  
  <p>I tried:</p>
  
  <ol>
  <li>put <code>&lt;item name="Downloads" href="download.html"/&gt;</code> into the site.xml</li>
  <li>mvn <code>commons:download-page</code></li>
  <li>mvn <code>deploy site:deploy</code></li>
  </ol>
  
  <p>What I get:
  these commands copies the jar file to remote server:</p>
  
  <pre><code>{deploy-dir}/com.acme.etc/ArtifactID/0.0.2-SNAPSHOT/ArtifactID-0.0.2-SNAPSHOT.jar
  </code></pre>
  
  <p>the generated download page points to </p>
  
  <pre><code>{deploy-dir}/target/site/[preferred]/commons/ArtifactID/binaries/ArtifactID-bin.tar.gz
  </code></pre>
  
  <p>Also there are some labels in the generated download page, like <code>[if-any logo][end]</code>. I suppose server should execute the script instead of displaying html. However, I can not do this as the server does not belong to me.</p>
  
  <p>I guess there is a simple way (maybe totally different) to accomplish this task, could you please point out how to do it in the most simple, but automated way.</p>
  
  <p>Thank you.</p>