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