Common operations set for the Java Integrated development environment

Source: Internet
Author: User

1. Easy to build MAVEN integrated development environment

First, Jetty installation

(for Windows and Linux versions, JETTY9 requires JDK7): http://download.eclipse.org/jetty/

Jetty installation is very simple, only need to unpack the installation package to start the jetty service.

jetty_version=xxxwget http://download.eclipse.org/jetty/$JETTY _version/dist/ jetty-distribution-$JETTY _version.tar.gzTarxfz jetty-distribution-$JETTY _VERSION.TAR.GZCD Jetty-distribution-$JETTY _versionjava-jar Start.jar

Jetty Simple Test (we use JETTY8):

The Test.war module has a dump servlet that can view the Request/session/cookie information for the current request. Http://c909511:8080/dump/info This information is very informative, and you can use this method to debug the current request information:

 

Second, Jetty Integration with Eclipse

1. Download the Eclipse tool:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR1/ Eclipse-jee-luna-sr1-win32-x86_64.zip

2. Installing Jetty Components

3, Configuration Jetty

4. Start Jetty Service after configuration is complete

Iii. maven integration with eclipse

1. Download maven Tools http://maven.apache.org/download.html

2. Installing the MAVEN integration for Eclipse plugin

3, install maven;

A) unzip maven to a local directory and set environment variables;

I. Maven_home: d:/tools/apache-maven-3.2.1, Set Bin to path, add at the end of Path:;%maven_home%/bin;

II. Test if MAVEN is set successfully in Windows terminal input: Mvn–v

b) Setting up the MAVEN local repository

I. Modify the value of the Localrepository node in the D:\tools\apache-maven-3.2.1\conf\settings.xml file to D:\study\maven\jar, make the local warehouse address;

Ii. Configuring the Local warehouse Nexus (optional)

Nexus:http://download.sonatype.com/nexus/oss/nexus-2.5.1-bundle.zip

Install Nexus just unzip configuration to run

Configure Nexus Services

Start Nexus Service

Login Nexus

Configure Nexus Center Warehouse

Nexus+maven Configuration

<Mirrors>     <Mirror>           <ID>Nexus</ID>           <mirrorof>*</mirrorof>           <name>Nexus Mirror</name>           <URL>Http://maven.oschina.net/content/groups/public</URL>       </Mirror>  </Mirrors>     <Profiles>        < Profile>      <ID>Nexus</ID>      <repositories>        <Repository>          <ID>Nexus</ID>          <name>Nexus</name>          <URL>Http://localhost:8082/nexus/content/groups/public</URL>          <releases><enabled>True</enabled></releases>          <Snapshots><enabled>True</enabled></Snapshots>        </Repository>      </repositories>      <pluginrepositories>        <pluginrepository>          <ID>Nexus</ID>          <name>Nexus</name>          <URL>Http://localhost:8082/nexus/content/groups/public</URL>          <releases><enabled>True</enabled></releases>          <Snapshots><enabled>True</enabled></Snapshots>              </pluginrepository>            </pluginrepositories>    </ Profile>  </Profiles>  <!--Activeprofiles |   List of profiles that is active for all builds.  | <activeProfiles> <activeProfile>alwaysActiveProfile</activeProfile> <activeProfile> Anotheralwaysactiveprofile</activeprofile> </activeProfiles> -  <!--activating the configuration -    <Activeprofiles>        <Activeprofile>Nexus</Activeprofile>    </Activeprofiles>

4, eclipse configuration maven;

A) setting up Maven's installations

b) Set the user Settings for Maven

5. Import Project Engineering

A) Select Import in MyEclipse ... Import project projects in turn;

b) Set up MAVEN build for each project

c) Complete the environment construction, start to see the effect

--------The development environment is ready end------------------------------

Common operations set for the Java Integrated development environment

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.