Hi,
Will Glass-Husain schrieb:
Hi Henning,
I'm trying to rebuild the engine docs. There's a few minor things
missing from your notes which I note below. (perhaps they are all
obvious). But I'm still stuck.
(1) You need to set JAVA_HOME
JAVA_HOME=/usr/jdk/latest/
export JAVA_HOME
Yes /usr/java or /usr/j2sdk
(2) You need to have mvn in your path
/local/bin/mvn
Yes. /usr/local/bin is even better.
(3) After calling the script to build the site, you need to go to the
site directory before running maven.
cd /export/home/velocity/deploy/velocity-engine-site/
No. Normally, the script should build and deploy in one go. No more
steps needed.
HOWEVER,
I'm getting an error when I run the following. Any suggestions?
Yes. This is intentional. It means that you are not using the local repo
in ~velocity/.m2/repository. The -beta-6 is the version with patches
build locally. There is not beta-6 on the global repos.
Can you tell me exactly what commands you ran? Normally a
newgrp velocity
~velocity/bin/<script>
should work well.
Do you have a site config in your ~/.m2/settings.xml ?
*Please* do not run maven directly for these scripts. The repo is
intentionally frozen (i.e. maven runs offline) so that some 'updates'
from central will not destroy the working version (yes, sometimes they
do this).
Best regards
Henning
-bash-3.00$ mvn clean site site:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom
<http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom>
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom
<http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom>
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven-site-plugin
Version: 2.0-beta-6
Reason: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-site-plugin:pom:2.0-beta-6
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots ( http://people.apache.org/repo/m2-snapshot-repository)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Apr 19 04:54:13 GMT+00:00 2007
[INFO] Final Memory: 1M/8M
[INFO]
------------------------------------------------------------------------
--
Henning P. Schmiedehausen -- [EMAIL PROTECTED] | J2EE, Linux
91054 Buckenhof, Germany -- +49 9131 506540 | Apache person
Open Source Consulting, Development, Design | Velocity - Turbine
"Save the cheerleader. Save the world."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]