eclipse.jdt.ls icon indicating copy to clipboard operation
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?

Open NightMingGit opened this issue 1 year ago • 5 comments

I started it from the command line. How can I use the Maven package manager in the specified directory

NightMingGit avatar Jun 26 '23 02:06 NightMingGit

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/).

rgrunber avatar Jun 27 '23 21:06 rgrunber

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/).

image

I use this way What I want to know is can I use maven installed by myself

NightMingGit avatar Jun 28 '23 02:06 NightMingGit

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.

rgrunber avatar Jun 29 '23 04:06 rgrunber

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?

NightMingGit avatar Jun 30 '23 02:06 NightMingGit

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.

rgrunber avatar Jul 04 '23 12:07 rgrunber