JDeploy, an open-source Java automated deployment Platform

Source: Internet
Author: User

JDeploy, an open-source Java automated deployment Platform

JDeploy is an automated and visualized project deployment platform based on the Linux System Implemented by Java + Shell. It can deploy Java services and Java Web projects and simplify project deployment operations, no complicated black window SSH commands and complicated Jenkins configurations are required.

Traditional deployment method: Check the code from the SVN/GIT server-> package in IDE-> upload the package to the server-> connect to the server through SSH-> Start/stop by hitting the command

JDeploy deployment: Create a project-> one-click deployment/start/stop
* Check out code, package, start, stop, and other operations are automatically executed using Shell scripts.

 

[* If you are interested in JDeploy, click Star on Github]

Deploy JDeploy on Linux

Server Environment: Linux (Windows is not supported). The Java environment and Maven environment are required.javaAndmvnCommand.

Create a database (MySQL)

Run the SQL file to create a database: doc/SQL. SQL

Shell

JDeploy's automated deployment platform is based on Shell scripts.

Java project deployment Shell script: doc/shell/javadeploy

Java Web project deployment Shell script: doc/shell/javawebdeploy

The directory location of the Shell script needs to be configured inconfig.properties.

Jetty

JDeploy the Java Web project deployment platform is based on the Jetty server.

Download the Jetty server on your own andconfig.propertiesConfigure the start. jar path in the Jetty directory.

Configuration File

Configuration File: src/main/resources/config. properties

You need to configure the database connection information, Shell script location, Jetty location, and project deployment location.

Deployment

After the preceding configuration, deploy the project on the Jetty/Tomcat server.

Java project deployment new project

Click "CREATE" in the "Java project deployment" option to go To the creation page. Enter "project name", "finalName", and "SVN address", for example:

Project name: JDeploy test Java Project

FinalName: javadeploy

SVN address: http://code.taobao.org/svn/jdploy_java_deploy_test/

Note: finalName must be the finalName configured in the deployed project pom. xml, as shown in javadeploy

Deployment Project

Click the "deploy" button on the project details page. The latest code version is checked out from SVN and packaged for running.

Restart and stop

If the project has been deployed, click "restart" or "stop" to restart or stop the project.

View running status and display logs

You can view the program running status on the "running status" Panel and click "view logs" to view the logs entered by the Program on the console.

Requirements for Java Projects

DEMO: http://code.taobao.org/svn/jdploy_java_deploy_test/

1. Use Maven to manage projectsmvn clean packageYou can create a runable jar package. The finalName entered during project creation is consistent with the finalName in pom. xml.

2. You can usejava -jar xxx.jarRun directly (including the dependent package and configuring the Class where the main method is located ).

We recommend that you use the maven-shade-plugin plug-in:


      
   
    org.apache.maven.plugins
       maven-shade-plugin    
   
    2.3
       
           
                
     
      package
                 
                     
      
       shade
                  
                 
                     
       
        
        
         com.xxg.jdeploy.test.javadeploy.Main
         
        
        
        
         META-INF/spring.handlers
         
        
        
        
         META-INF/spring.schemas
         
        
                  
             
        
   
  
Java Web project deployment new project

Click "CREATE" in the "Java Web project deployment" option to go To the creation page. Enter "project name", "finalName", "contextPath", "port number", and "SVN address", for example:

Project name: JDeploy Java Web project

FinalName: javawebdeploy

ContextPath:/jdploytest (you can also enter '/')

Port: 8080

SVN address: http://code.taobao.org/svn/jdploy_javaweb_deploy_test/

Note: finalName must be the finalName configured in the deployed project pom. xml, as shown in javawebdeploy

Deployment Project

Click the "deploy" button on the project details page. The latest code version is checked out from SVN and packaged for running.

Restart and stop

If the project has been deployed, click "restart" or "stop" to restart or stop the project.

View running status and display logs

You can view the program running status on the "running status" Panel and click "view logs" to view the logs entered by the Program on the console. Use a browser to access http: // ip: port/contextPath.

Requirements for Java Web projects

 

Use Maven to manage projectsmvn clean packageYou can create a war package. The finalName entered during project creation is consistent with the finalName in pom. xml.

 

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.