此内容没有您所选择的语言版本。
9.5. The CarMart Quickstart Using Tomcat
9.5.1. Build the CarMart Quickstart to Tomcat 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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.zipFor 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"/>Start Tomcat
Use the following script to start Tomcat:$CATALINA_HOME/bin/catalina.sh startBuild 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