eclipse.jdt.ls
eclipse.jdt.ls copied to clipboard
I started it from the command line. How can I use the Maven package manager in the specified directory?
I started it from the command line. How can I use the Maven package manager in the specified directory
How did you start it (I assume JDT-LS) from the command line ? Are you referring to the startup script at https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.product/scripts/jdtls.py ? To build JDT-LS you would call mvn clean verify
(use mvn clean verify -DskipTests
for a faster build, by skipping the tests) in the main folder (eclipse.jdt.ls/).
How did you start it (I assume JDT-LS) from the command line ? Are you referring to the startup script at https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.product/scripts/jdtls.py ? To build JDT-LS you would call
mvn clean verify
(usemvn clean verify -DskipTests
for a faster build, by skipping the tests) in the main folder (eclipse.jdt.ls/).
I use this way What I want to know is can I use maven installed by myself
You should be able to use a local version of Maven to build the project. You can also use the mvnw.cmd
wrapper script to automatically download a compatible version of Maven and perform the build that way.
You should be able to use a local version of Maven to build the project. You can also use the
mvnw.cmd
wrapper script to automatically download a compatible version of Maven and perform the build that way.
Can I modify the command line to specify the use of the local Maven manager I installed?
You should be able to use a local version of Maven to build the project. You can also use the
mvnw.cmd
wrapper script to automatically download a compatible version of Maven and perform the build that way.Can I modify the command line to specify the use of the local Maven manager I installed?
Yes, you should be able to use another Maven installation. I think any Maven 3.8.x should be fine, but not sure about earlier versions.