Objective
This blog record to Ali internship of the first task –WEBX framework learning, will continue to update learning experience.
Run Petstore, configure the corresponding environment through the official website to the command line method, to run Petstore
- Petstore is a classic case study of Java EE, download link
- How does it work? See the official website for guidance: WEBX official website
git clone https://github.com/webx/citrus-sample.gitcd citrus-sample/petstoremvn clean installcd webmvn jetty:run-war
MAVEN is a huge project management tool, similar to C + + makefile, looking back at Maven's usage. The following is a summary of the issues encountered in performing the above:
Download configuration maven: Download maven link, note that the Maven run requires JDK, not just the JRE, otherwise it will prompt the corresponding error;
MVN Jetty:run-war, perform the error, see the post: MVN Jetty:run-war Error Resolution method
Jetty after running, access by the following link: http://localhost:8081/?home
Use Eclipse to run Petstore
- Download Java EE Eclipse, unzip to use, this version of Eclipse comes with Maven, without configuration;
- With the previous command line operation, a war package has been obtained and the war package can be imported into eclipse. The path to the war package is: D:\code\maven\citrus-sample\petstore\web\target\petstore.war.
- Configure Tomcat to run the Petstore. First go to the official website to download a tomcat:http://tomcat.apache.org/download-80.cgi Configure the environment, you need to embed Tomcat into eclipse: Windows–preference-server Configuration in –runtime environment. See the Post: Tomcat embedded in Eclipse and running a JSP file
- At this point, you can run Petstore in Eclipse.
- Add, although the above way can run Petstore, but found through the war into the project, and can not be shorter *.java source code. Here, through the command line: MVN eclipse:eclipse, convert the MAVEN project into a project that eclipse can identify and import again in Eclipse, see post: Eclipse Import Maven Project
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
webx--Borrow Petstore Get started