...
- Create a plan (say repo2.xml) for your repository module.
Code Block xml borderStyle solid title repo2.xml borderStyle solid xml <?xml version="1.0" encoding="UTF-8"?> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2"> <environment> <moduleId> <groupId>org.example.configs</groupId> <artifactId>myrepo</artifactId> <version>2.0.1</version> <type>car</type> </moduleId> <dependencies> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>j2ee-system</artifactId> <version>2.0.1</version> <type>car</type> </dependency> </dependencies> <hidden-classes/> <non-overridable-classes/> </environment> <!--Repository--> <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository"> <attribute name="root">repo2s/</attribute> <attribute name="resolveToServer">true</attribute> <reference name="ServerInfo"> <name>ServerInfo</name> </reference> </gbean> <!--Configuration Store service--> <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore"> <reference name="Repository"> <name>Repo2</name> </reference> </gbean> </module>
- Create the repository's root directory via
mkdir <geronimo_home>/repo2s
- The directory is specified by the
root
attribute of the Maven2Repository GBean,repo2s/
in the above example. It is a path relative to the base directory <geronimo_home>. - The
resolveToServer
attribute specifies the repository's location.true
means this path is relative to baseServer, which is useful with multiple server instances.false
means this path is relative to the base directory <geronimo_home>.
- The directory is specified by the
- Deploy the repository module by deploying
repo2.xml
viadeploy deploy repo2.xml
.Tip The
deploy
command is the script <geronimo_home>/bin/deploy.{bat,sh}, depending on your operating system. It is invoked by typing simplydeploy
either from the <geronimo_home>/bin directory, or by having that directory in your path.
...