Eclipse Build Elastic-job

Source: Internet
Author: User
Tags zookeeper

1. Download eclipse----for Java EE Enterprise-level development of the Eclipse IDE for developers;
2. Download MAVEN on your website and configure the environment variable---maven_home:d:/maven to add%maven_home%/bin to path
The cmd command verifies that MAVEN is installed successfully: Mvn-version
3. Download zookeeper, modify the configuration file Zoo.cfg, see Zookeeper Installation Deployment
4.Eclipse imports Elastic-job via git
A. There is a git repositories exploring in eclipse. is the Git repository.
Click Import, select Projects from Git under Git, click Next, select Clone Url,next, copy the elastic-job git address to the URI, then press Next and follow the instructions to continue next.

5.eclipse importing elastic-job-example through maven-already existing projects
6 because there are many errors in the imported Elastic-job code, because there is no Lombok.jar, the introduction of Lombok.jar to elastic-job individual pom.xml files
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.18</version>
</dependency>
If there is still an error after injecting Lombok.jar, select Maven-update Project by right-clicking the MAVEN item
If the Red Fork still appears after updating the item,cmd runs mvn compile, and if an error occurs, the compiler is injected into each MAVEN project Pom.xml
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<fork>true</fork>
<executable>f:\program Files\java\jdk1.7.0_79\bin\javac.exe (own JDK site) </executable>
</configuration>
</plugin>
Update Project again;
7.cmd Packaging Elastic-job in Elastic-job-lite-console (console),
CD to run under the Pom.xml file that requires a package project:
mvn Clean install-dmaven.test.skip=true-dmaven.javadoc.skip=true
Get the elastic-job-lite-console-version number. tar.gz
8. Run Elastic-job-example-lite-java under Src/main/java Javamain.java (if run error, may be zookeeper not running)
9. Unzip the elastic-job-lite-console-version number. tar.gz, and execute bin under Start.bat or start.sh, open in browser http://localhost:8899/ To access the console (8899 is the default port number, you can enter the-P custom port number through the startup script.) )

Eclipse Build Elastic-job

Related Article

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.