In this recipe, we will deploy the GateIn management CLI to a GateIn instance, and then verify that the deployment was successful.
To deploy the GateIn management CLI:
gatein-management-cli-1.0.1-GA.war
.standalone/deployments
folder of the GateIn installation and start the server.> ssh -p 2000 root@localhost
> mgmt connect
> ls
Step 6 connects the user to the management CLI of portal, which is the default portal container on GateIn. If you wanted to connect to a different portal deployed to GateIn, just pass the name of the portal as a -c
argument in the mgmt connect
command.
Step 8 demonstrates one of the commands available from the portal CLI. In this case, ls
will list all the management extension components
that are present in the portal. If ls
were executed from within the mop folder, the result would be a list of JCR nodes at that level.
Now we show you how to build the CLI with the latest source available.
To take advantage of the latest updates to the GateIn management component CLI, it may sometimes be necessary to build it from source.
There are two options for retrieving the source for building:
Building the source is then a matter of either going to the location where GIT cloned the repository to, or where the source ZIP was unpacked, and entering the following command on a command line:
> mvn clean install
For Maven to find any JBoss dependencies that are required to build gatein-management, follow the instructions on https://community.jboss.org/wiki/MavenSettings to add the JBoss repository.
The
WAR file required to be deployed is then located in the cli/target
folder.
13.59.107.152