[Project Construction]babasport Project Environment construction. [Practiced hand project]

Source: Internet
Author: User
Tags solr

Objective:
Recently decided to change jobs, so I picked up the Java to learn. Find a project from the Internet to practice and record the process of building the project here.
The name of this project is called Babasport, built on the SSM (Spring, SPRINGMVC, Mybatis) framework, where the techniques used are outlined in blog post, and the blog post will be divided into several points to record the knowledge involved.

1, Project structure
The project is divided into 11 pieces.
Jar Package File:
Babasport-common
Babasport-dao
Babasport-javabean
Babasport-service-interface
War Package File:
Babasport-console (Backstage)
Babasport-login (Single sign-on)
Babasport-portal (front desk)
Babasport-service-buyer (Shopping Cart)
BABASPORT-SERVICE-CMS (page static)
Babasport-service-product (Commodity management)
BABASPORT-SERVICE-SOLR (search)

Note: The difference between a jar package and a war package in Java

Jar: Java Archive,java package, Java compiled after the generation of class files, but if directly published these class files will be very inconvenient, so the many class files packaged into a jar, In addition to the class file in the jar can include some resources and configuration files, usually a jar package is a Java program or a Java library.

War:web application Archive, which is basically the same as a jar, but it usually means that this is a Java WEB application package, and Tomcat is a servlet container that recognizes the war package and deploys it automatically.

The concrete structure diagram is as follows:


Diagram since structure:



2. Create a MAVEN project
We've already analyzed the project structure and the list of projects that we created, so we'll be specific about how this MAVEN project was created.

2.1 Creating a parent Project



2.2, create a sub-project in Parentproject (Jar/war)
Note: This is taken from the video material, the second figure I created my own parent project is Parentproject.
Here's a sample of Babasport-common's creation, and others should be created in the same way:
Babasport-dao
Babasport-javabean
Babasport-service-interface

Babasport-console (Backstage)
Babasport-login (Single sign-on)
Babasport-portal (front desk)
Babasport-service-buyer (Shopping Cart)
BABASPORT-SERVICE-CMS (page static)
Babasport-service-product (Commodity management)
BABASPORT-SERVICE-SOLR (search)


Here's a special note: Packaging selection, four jar files, and a war file.

Basic operation of the 3,maven instruction

MVN Clean Cleanup
MVN compile compilation
MVN Test
MVN Package Packaging
MVN Install the local repository
MVN Deploy released to the entire company

Installation of the 4,SVN server

Note: Host name cannot be Chinese




To create a warehouse:





5, use of SVN in eclipse
Because I installed the SVN plugin in eclipse, so it can be used directly, if not installed can Baidu under how to install.







Submit Code:

Requirements: Submit Source: Local configuration file do not submit


Ignore the code you don't want to commit:




Well, once the build is complete, the project structure should be:


Here the project is completed, post pictures more. Later on I will slowly send the contents of this project.
I'm going to find a job in a few weeks, come on!!!

[Project Construction]babasport Project Environment construction. [Practiced hand project]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.