diff options
author | George Fraser <george@fivetran.com> | 2016-08-20 12:35:06 -0500 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2016-08-20 12:35:06 -0500 |
commit | ea0a36887374ee22e06a2009a602bcd5a479591a (patch) | |
tree | 53c91e6a6d09979961260044b1e7ad624cedb2a7 /README.md | |
parent | 4a968c78048802bd37e09a9619e7df4f2b7800d6 (diff) | |
download | java-language-server-ea0a36887374ee22e06a2009a602bcd5a479591a.zip |
Parse pom.xml automatically
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -37,6 +37,13 @@ Requires that you have Java 8 installed on your system. ## Usage +## Using Maven pom.xml + +vscode-javac will look for a file named pom.xml in a parent directory of every open .java file. +vscode-javac will invoke maven in order to get the build classpath, so you need to be sure `mvn` is on your system path. + +## Using javaconfig.json + The presence of a `javaconfig.json` file indicates that its parent directory is the root of a Java module. `javaconfig.json` looks like: @@ -53,7 +60,11 @@ This file is usually generated by a build tool like maven. ### Examples -### Maven +### Maven + +pom.xml will be read automatically. + +### Maven (using javaconfig.json) You can configure maven to output the current classpath to a file, classpath.txt, where Visual Studio Code will find it. |