[EMAIL PROTECTED] wrote:
I've been trying to get maven to work with the tutorials but have failed with b-10. All the docs in the tutorial seem to use ant I guess from an older configuration.
Yep - that the next thing to be done - bring all of the tutorial xdocs into sync.
These really are not serious issues.
Generally speaking the xdocs descriptions are more complete in terms of describing features and function but the readme is the reference for build and execution instructions.
However the use of merlin all together perplexes me. I see things like merlin target/classes -execute but merlin the script is designed to run some deamon it seems.
I honestly have not been paying much attention to the Lunix script. Last night Alexis and I were playing around with Merlin on his Lunix portable and he was just defining the MERLIN_HOME environment variable and then invoking the java command directory (even then he was having an XML parser related problem that we'll be looking into ASAP).
Ok, basically the script documetation does not appear to reflect the fact of life. If you look at the merlin.bat file you will get a much better idea of what is going on. Basically the merlin command just invokes java with a bootstrap jar file which launches a kernel which hangs around until the session is terminated.
The windows variant look like this:
java -Dmerlin.home=%MERLIN_HOME% -Djava.ext.dirs=%MERLIN_HOME%\ext -jar %MERLIN_HOME%\bin\merlin-bootstrap-1.0.jar %1 %2 %3 %4 %5 %6
Providing your MERLIN_HOME environment variable is pointing to your merlin directory, and %MERLIN_HOME%/bin is in your path variable, you should be able to do the following:
$ merlin -version Version: Merlin SMP 3.0
Or get command line help:
$ merlin -help
usage: merlin [block] [-debug] [-config <file>] [-lang <code>] [-library
<directory>] [-system <directory>] [-execute] [-kernel <file>] [-home
<directory>] [-version] [-help]Description: The merlin command executes the deployment of one or more
component blocks. The [block] argument may be either an block descriptor
file or a jar file containing a block descriptor. If no value if
declared, Merlin will attempt to execute a file named 'block.xml' in the
current directory.
-lang <code> A two-letter language code.
-config <file> The filename of the configuration target override.
-debug Enables debug mode.
-execute If present the kernel will initiate shutdown
immediately following deployment.
-help Prints this message.
-home <directory> A relative or absolute path to a working home
directory. If not suppled, the system will default to the current
directory.
-kernel <file> The filename of a custom kernel profile.
-library <directory> A directory that serves as the anchor for relative
library references.
-system <directory> An absolute or relative path to a repository
parent directory.
-version Prints version information.
I have just updated the INSTALLATION.TXT file to include a more detailed description of instalation requirements and included this in the dist up on ibiblio. I have also attached it to this message.
Stephen.
It just gives me the following help message on linux:
$ merlin.sh target/classes -execute Using MERLIN_HOME: /opt/java/tools/merlin Using JAVA_HOME: /usr/java/j2sdk1.4.2 USing RUN_CMD: /usr/java/j2sdk1.4.2/bin/java -Djava.ext.dirs=/opt/java/tools/merlin/ext \ -Dmerlin.home=/opt/java/tools/merlin -jar /opt/java/tools/merlin/bin/merlin-bootstrap-1.0.jar -execute Usage: /opt/java/tools/merlin/bin/merlin.sh {start|stop|run|restart|check}
Could someone point me in the right direction? I'm really dying to start going with merlin but I just am a bit lost ;(.
Thanks again, ALex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Stephen J. McConnell mailto:[EMAIL PROTECTED] http://www.osm.net
Sent via James running under Merlin as an NT service. http://avalon.apache.org/sandbox/merlin
PROJECT: Merlin ====================================================================
DESCRIPTION: ------------ This directory contains the merlin system installation and related resources. * /merlin * avalon-plugin-1.0.jar * merlin-plugin-1.0.jar Installing Merlin. ------------------ To use Merlin command line support or the Merlin NT Service you will need to define the MERLIN_HOME environment variable for your system and include MERLIN_HOME/bin in your system path. The MERLIN_HOME environment variable should point to the /merlin directory. Under Lunix you can do this as follows: $ echo ' > # set location of merlin > export MERLIN_HOME=/opt/merlin > # include it in the path > export PATH=$PATH:MERLIN_HOME > ' > ~/.bash_profile $ source ~/.bash_profile Under Windows you can set environment variables by selecting the Environment Tab from the System Control Panel. To confirm that you %MERLIN_HOME% variable is correct, you should open a new command line window and invoke the Merlin CLI application. Under Lunix: $ merlin.sh -version Under DOS: $ merlin -version The installation of Merlin is now complete, however, two plugins are provided with the installation supporting merlin development under the Maven platform. These plugins should be placed in the Maven plugin directory (%MAVEN_HOME%\plugins). To complete you installation Two Maven plugins are included in the distribution. These files should be placed in the Maven plugin directory (%MAVEN_HOME%\plugins) as shown here: %MAVEN_HOME%\plugins\avalon-plugin-1.0.jar %MAVEN_HOME%\plugins\merlin-plugin-1.0.jar You now have everything in place to start using the Merlin Titorial or building you own components. If you have any problems, please subscribe to and post a message to the [EMAIL PROTECTED] list.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
