Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using the new repository is a little tricky, and is only supported from the command line currently. The essence is to use the --targets option of the deploy command to target your module to deploy in your new repository. First, use the deployer list-targets command to see the repositories.  The target names are long and cumbersome:

>java deployer.jar list-targets

{{Available Targets:
 org  org.example.configs/myrepo/2.0-SNAPSHOT/car?ServiceModule=org.example.configs/myrepo/2.0-SNAPSHOT/car,j2eeType=ConfigurationStore,name=Local2
 org  org.apache.geronimo.configs/j2ee-system/2.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0-SNAPSHOT/car,j2eeType=ConfigurationStore,name=Local}}

The use of environment variables is recommended for command-line use.  For example, set REPO2= org.example.configs/myrepo/2.0-SNAPSHOT/car?ServiceModule=org.example.configs/myrepo/2.0-SNAPSHOT/car,j2eeType=ConfigurationStore,name=Local2. To deploy to the new repository, use: deploy --targets %REPO2% sample.war deploy list-modules also gives those long target names on each module. However, deploy list-modules %REPO2% gives the accustomed short output. The syntax to undeploy from a repo is: >java deployer.jar undeploy  "%REPO2%|geronimo/jsp-examples/1.1.1/war" If no --targets are given on the deploy command, the module is deployed to all repositories.  This certainly seems undesirable.  If you only want to put the module in one repository, be sure to use the --targets option!

...