Open source Java Automation deployment platform Jdeploy

Source: Internet
Author: User

Jdeploy is the Java + Shell implementation of Linux-based automation, visual project deployment platform, can deploy Java services, Java Web projects, can simplify project deployment operations, without cumbersome black window SSH instructions and Jenkins complex configuration.

Traditional deployment: From the SVN/GIT server checkout code, packaging in the IDE, to the server->SSH connect server--knock command start/stop

Jdeploy Deployment: Create Project--one-click deployment/Start/stop
* Checkout code, package, start, stop, etc. are performed automatically by shell scripts.

Download: http://download.csdn.net/detail/xiao__gui/9195773

SOURCE [View on Github]:https://github.com/wucao/jdeploy
"* If you are interested in Jdeploy, please click on GitHub Point Star"

Deploying Jdeploy on Linux

Server environment: Linux (does not support Windows), requires Java environment and MAVEN environment, support java and mvn commands.

Create a database (MySQL)

Run the SQL file creation database: Doc/sql.sql

Shell

The Jdeploy Automation deployment platform is based on shell scripting implementations.

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 in config.properties .

Jetty

Jdeploy Automation Deployment Platform Java Web Project deployment is based on the jetty server.

You need to download the jetty server yourself and config.properties Configure the Start.jar path in the jetty directory.

Configuration file

Configuration file: Src/main/resources/config.properties

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

Deployment

When the above configuration is complete, deploy the project on the Jetty/tomcat server.

Java Project Deployment New project

Click the "Create" button in the "Java Project Deployment" option to go to the Create page. You need to fill in the "Project name", "Finalname", "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 needs to fill in the Finalname configured in the deployed Project Pom.xml, as<finalName>javadeploy</finalName>

Deployment Project

Clicking on the "Deploy" button on the Project details page will check out the latest version code from SVN and run the package.

Restart and stop

If the project has been deployed, you can restart or stop by clicking the "restart" or "Stop" button.

Viewing the running status and displaying logs

You can view the program's running status in the Run Status panel, and click View Log to view the logs entered by the program in the console.

Requirements for Java projects

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

1, using MAVEN to manage the project, through mvn clean package can hit can run the jar package, creates the project when fills in Finalname and pom.xml in the Finalname consistent.

2, the jar package can be java -jar xxx.jar run directly (including the dependency package, and configure the main method of the class).

We recommend using the Maven-shade-plugin plugin:

<plugin>    <groupId>Org.apache.maven.plugins</groupId>    <artifactid>Maven-shade-plugin</artifactid>    <version>2.3</version>    <executions>        <execution>            <phase>Package</phase>            <goals>                <goal>Shade</goal>            </goals>            <configuration>                <transformers>                    <transformer Implementation=" Org.apache.maven.plugins.shade.resource.ManifestResourceTransformer ">                        <mainClass>Com.xxg.jdeploy.test.javadeploy.Main</mainClass>                    </transformer>                    <transformer Implementation=" Org.apache.maven.plugins.shade.resource.AppendingTransformer ">                        <resource>Meta-inf/spring.handlers</Resource>                    </transformer>                    <transformer Implementation=" Org.apache.maven.plugins.shade.resource.AppendingTransformer ">                        <resource>Meta-inf/spring.schemas</Resource>                    </transformer>                </Transformers>            </configuration>        </Execution>    </executions></plugin>
Java Web project Deployment New Project

Click the Create button in the Java Web project deployment option to go to the Create page. You need to fill in the "Project name", "Finalname", "ContextPath", "Port number", "SVN address", for example:

Project name: Jdeploy Test Java Web project

Finalname:javawebdeploy

Contextpath:/jdploytest (can also fill in '/')

Port number: 8080

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

Note: Finalname needs to fill in the Finalname configured in the deployed Project Pom.xml, as<finalName>javawebdeploy</finalName>

Deployment Project

Clicking on the "Deploy" button on the Project details page will check out the latest version code from SVN and run the package.

Restart and stop

If the project has been deployed, you can restart or stop by clicking the "restart" or "Stop" button.

Viewing the running status and displaying logs

You can view the program's running status in the Run Status panel, and click View Log to view the logs entered by the program in the console. Http://ip:port/contextPath can be accessed by a browser.

Requirements for Java Web projects

demo:http://code.taobao.org/svn/jdploy_javaweb_deploy_test/

Use MAVEN to manage projects, mvn clean package Finalname and Pom.xml in Finalname when you create a project with a war package.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Open source Java Automation deployment platform Jdeploy

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.