Este contenido no está disponible en el idioma seleccionado.
9.5. The CarMart Quickstart Using Tomcat
9.5.1. Build the CarMart Quickstart to Tomcat Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
The following procedure provides directions to build the CarMart quickstart to Tomcat 7.
Prerequisite
Obtain the supported JBoss Data Grid Library Mode distribution files.
Procedure 9.4. Build the CarMart Quickstart to Tomcat
Install the Maven Repository
For initial testing in a small team, extract the JBoss Data Grid Maven repository to a directory on the local system:unzip jboss-datagrid-maven-repository-6.0.0.zip
$ unzip jboss-datagrid-maven-repository-6.0.0.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow For further information about the installation methods available to install the JBoss Data Grid Maven repository, refer to Chapter 4, Install and Use the Maven Repository.Add Manager Script Information
This build assumes that the default configuration for Tomcat 7 will be used, including a default host name (localhost) and port (8080). To allow Maven's Tomcat plug-in to access the manager, add the following information to thetomcat-users.xmlfile (located atconf/tomcat-users.xml):<role rolename="manager-script"/> <user username="admin" password="" roles="manager-script"/>
<role rolename="manager-script"/> <user username="admin" password="" roles="manager-script"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Start Tomcat
Use the following script to start Tomcat:$CATALINA_HOME/bin/catalina.sh start
$CATALINA_HOME/bin/catalina.sh startCopy to Clipboard Copied! Toggle word wrap Toggle overflow Build your Application
Use the following command to build your application using Maven:mvn clean package -Plibrary-jbossas -Ddatagrid.maven.repo=file:///path/to/unpacked/jdg/maven/repository
$ mvn clean package -Plibrary-jbossas -Ddatagrid.maven.repo=file:///path/to/unpacked/jdg/maven/repositoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow