This repository has been archived by the owner on Jan 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Working on the project using Eclipse
Nick Miyake edited this page Dec 6, 2016
·
5 revisions
Eclipse integration is pretty easy to get going:
- go to where you have cloned Sysmon
- Make sure Eclipse is not currently running
- Run a build using maven:
mvn
- this will ensure that all dependencies have been downloaded - Run the maven Eclipse setup task:
mvn eclipse:configure-workspace -Declipse.workspace=/path/to/your/workspace
(depending on your maven version, you may need to specify the workspace as-Declipse-workspace=/path/to/your/workspace
- consult your maven error messages to figure out which version to use) - Fire up Eclipse and confirm that the
M2_REPO
classpath variable is set properly:
Here's example output from running these commands. Note that the first time you run them, they may produce substantially more output as maven downloads its needed plugins and dependencies from the maven repos.
$ mvn
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Palantir Technologies Platform Monitoring Daemon 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ ptoss-sysmon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/regs/work/opensource/sysmon-test/sysmon/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ ptoss-sysmon ---
[INFO] Compiling 3 source files to /Users/regs/work/opensource/sysmon-test/sysmon/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ ptoss-sysmon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/regs/work/opensource/sysmon-test/sysmon/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ ptoss-sysmon ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ ptoss-sysmon ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ ptoss-sysmon ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (copy-src) @ ptoss-sysmon >>>
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (copy-src) @ ptoss-sysmon <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (copy-src) @ ptoss-sysmon ---
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy-dependencies (copy-dependencies) @ ptoss-sysmon ---
[INFO] guava-r09.jar already exists in destination.
[INFO] commons-io-1.3.2.jar already exists in destination.
[INFO] commons-lang-2.3.jar already exists in destination.
[INFO] junit-3.8.1.jar already exists in destination.
[INFO] log4j-1.2.13.jar already exists in destination.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.112s
[INFO] Finished at: Fri Sep 23 13:15:33 EDT 2011
[INFO] Final Memory: 11M/81M
[INFO] ------------------------------------------------------------------------
$ mvn eclipse:configure-workspace -Declipse-workspace=/Users/regs/work/opensource/sysmon-test/workspace
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Palantir Technologies Platform Monitoring Daemon 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-eclipse-plugin:2.8:configure-workspace (default-cli) @ ptoss-sysmon ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.512s
[INFO] Finished at: Fri Sep 23 11:49:55 EDT 2011
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
$