Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Java integrated development environment common set of operations     - How to install Zephyr Test Management Tools on CentOS 7.x (Server)

- Using Java to build micro-services (Server)

- Java and C / C ++ data conversion when network communication (Programming)

- The security configuration of Linux (Linux)

- Ubuntu 14.04 install Sublime Text 3 plug and use SublimeClang (Linux)

- Linux, modify / retrieve the root password (Linux)

- How to Install Foreman under Ubuntu (Server)

- MySQL to NoSQL avatar (Database)

- How to enable Software Collections (SCL) on CentOS (Server)

- Xmanager Remote Desktop login CentOS 6.5 (Linux)

- MD5 and simple to use (Linux)

- Kickstart automated installation and deployment RHEL 7.0 (Linux)

- Unity Greeter Badges: the lost session icon back to the login screen Ubuntu (Linux)

- Oracle Client Dedicated and Shared connection mode (Database)

- Solaris 10 nagios monitoring system (Linux)

- Linux kernel compilation, the configuration of the motor drive (Programming)

- Oracle Incident Packaging Service (Database)

- Linux crontab (Linux)

- Bug tracking library after FastJson omitted the decimal point 0 (Programming)

- Linux system security configuration Collection (Linux)

 
         
  Java integrated development environment common set of operations
     
  Add Date : 2018-11-21      
         
         
         
  1, a simple maven build integrated development environment

One, Jetty installation

Download (bear with Windows and Linux versions, Jetty9 need JDK7): http: //download.eclipse.org/jetty/

Jetty installation is very simple, just need to extract the installation package to start the Jetty service.

JETTY_VERSION = xxx

wget http://download.eclipse.org/jetty/$JETTY_VERSION/dist/jetty-distribution-$JETTY_VERSION.tar.gz

tarxfz jetty-distribution- $ JETTY_VERSION.tar.gz

cd jetty-distribution- $ JETTY_VERSION

java-jar start.jar
Jetty simple tests (we used Jetty8):

test.war module which has a dump of Servlet, which lets you view Request / Session / Cookie information about the current request. http: // c909511: 8080 / dump / info information inside this return is very rich, follow-up can use this method to debug the current request information:

Two, Jetty and Eclipse Integration

1, download the Eclipse Tools:

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

2. Install Jetty assembly

3, configure Jetty

4 After the configuration start Jetty service

Three, Maven and Eclipse Integration

1, download Maven tools http://maven.apache.org/download.html

2, install Maven Integration for Eclipse plug-ins

3. Install Maven;

a) unpacked Maven to the local directory, set the environment variable;

-I MAVEN_HOME is: D: /tools/apache-maven-3.2.1, the bin is set to PATH, add at the end of the PATH:;% MAVEN_HOME% / bin;

-II successful test MAVEN is set in the Windows Terminal enter: mvn -v

 
b) Set Maven local repository

-I in D: \ tools \ apache-maven-3.2.1 \ conf \ settings.xml file modification localRepository node is D: \ study \ maven \ jar, to develop the local address of the warehouse;

-II. Configuring local repository nexus (optional)

Just unzip the installation configuration to run Nexus

Configuring Nexus Service

Start Nexus service (if running tips deny access, right - "Run as Administrator)

Log in Nexus

Configure Nexus central 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 are active for all builds.
   |
  < ActiveProfiles>
    < ActiveProfile> alwaysActiveProfile < / activeProfile>
    < ActiveProfile> anotherAlwaysActiveProfile < / activeProfile>
  < / ActiveProfiles>
  ->
  < ! - Activate Configuration ->
    < ActiveProfiles>
        < ActiveProfile> nexus < / activeProfile>
    < / ActiveProfiles>
4, eclipse configuration Maven;

a) Setting the Maven Installations

b) Set the Maven User Settings

5. Import Project

a) Select the import in Myeclipse in ... and then click Import Project;

b) set the start of each project Maven build

c) complete environment to build, start to see results

-------- Development environment ready end ------------------------------

 2, maven Common Operations

a, introducing the project jar package (introduced in this way will not be packaged with the JAR package during packaging, so the package can not find the JAR package)

< Dependency>
    < GroupId> org.postgresql < / groupId>
    < ArtifactId> postgresql < / artifactId>
    < Version> 0.3 < / version>
    < Scope> system < / scope>
    < SystemPath> $ {project.basedir} /lib/test.jar < / systemPath>
< / Dependency>
Packing reference packet processing method

< Dependency>
< GroupId> org.postgresql < / groupId>
< ArtifactId> postgresql < / artifactId>
< Version> 0.3 < / version>
< Scope> system < / scope>
< SystemPath> $ {project.basedir} /src/main/resources/lib/test.jar < / systemPath>
< / Dependency>
     
         
         
         
  More:      
 
- Linux network cut package is not fully defragment (Linux)
- JavaScript Advanced Programming notes event capture and event bubbling (Programming)
- Examples of Exploration Class File (Programming)
- Without Visual Studio .NET Windows application development (Programming)
- Linux smart small switch rfkill (Linux)
- Linux, modify / etc / profile file (Linux)
- AFNetworking + Nginx HTTPS communication server + (Server)
- Android Unzip the ZIP / GZIP data (based on the InflaterInputStream implementation) (Programming)
- Install Web-based monitoring tool: Linux-Dash (Server)
- Ubuntu configuration SVN and http mode access (Server)
- To use slay kill user processes (Linux)
- Linux environment to configure Apache + Django + wsgi (Server)
- Python format string (Programming)
- Ubuntu firewall installation and configuration (Linux)
- Puppet installation and testing (Server)
- Confrontation dragged Library - Web front-end encryption slow (Linux)
- Oracle for Oracle GoldenGate to achieve a one-way synchronization DDL operations (Database)
- How to install new fonts on Ubuntu 14.04 and 14.10 (Linux)
- To configure Samba to share files with Windows under CentOS (Linux)
- Linux common commands: nslookup, ls md5sum, uname, history, etc. (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.