Hi, I am new to Maven and trying to accomplish a simple task:
- build jar package and web site [DONE]
- deploy them to remote server via scp [DONE]
- the site should contain download page with links to the deployed jar files [MISSING]
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).
I tried:
- put
<item name="Downloads" href="download.html"/>
into the site.xml - mvn
commons:download-page
- mvn
deploy site:deploy
What I get: these commands copies the jar file to remote server:
{deploy-dir}/com.acme.etc/ArtifactID/0.0.2-SNAPSHOT/ArtifactID-0.0.2-SNAPSHOT.jar
the generated download page points to
{deploy-dir}/target/site/[preferred]/commons/ArtifactID/binaries/ArtifactID-bin.tar.gz
Also there are some labels in the generated download page, like [if-any logo][end]
. 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.
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.
Thank you.