Assembling a server via command line
Similarly you can use the gshell deploy/assemble command specifying the same information on the command line interactively.
Tip | ||
---|---|---|
| ||
In order to get a working server you must include the framework plugin group (org.apache.geronimo.plugingroups/framework/version/car) which includes several files used to start the server |
TODO: The groupId is not currently used but the intention is to copy the assembled server into an appropriate maven repository.
Here's an example of a gshell script to install the roller plugin into the framework assembly and extract a server that only supports roller (and does not include the admin console or any deployment capabilities)
TODO: use something like this: snippet:url=geronimo/plugins/roller/trunk/roller-jetty-commands
TODO: get gshell to accept line continuations as in the following (these DO NOT WORK IN REAL LIFE):
...
By default, target location of newly assembled server is directory /var/temp, target packge format is tar.gz and version number is 1.0. User will have to input groupId and artifactId.
No Format bgColor #000000 borderStyle solid
# run using ./bin/gsh
...
User@server:/>deploy/assemble -g org.apache.geronimo.asseblies -a testServer -v 1.0 -u system -w manager
...
Then gshell will ask you with a list of assembly modes.
No Format bgColor #000000 borderStyle solid
Available custom assembly modes:
1: Function Centric
2: Application Centric
3: Expert Users
Please select a custom assembly mode [1,2,3]
- Choose 1 or 2 to assemble a server using plugin groups. In order to get a working server you must include the framework plugin group (Geronimo Plugin Group :: Framework) which includes several plugins used to start the server.
- Choose 3 to Assembling a server using plugins as an experienced user. In order to get a working server you must include the plugin (Geronimo Assemblies :: Boilerplate) which includes several files used to start the server
Tip title Important Note
After you input your choice, you will have to select plugin or plugins group you intend to install and click Enter. A few minutes later, your assembly will be ready for use.
No Format bgColor #000000 borderStyle solid
**** Installation Complete!
Used existing: cglib/cglib-nodep/2.1_3/jar
...
Installed new: org.apache.geronimo.
...
framework/
...
jsr88-
...
cli/
...
2.
...
2-SNAPSHOT/car
Downloaded 23085 kB in 25s (923 kB/s)