Where is the Maven built into Pleiades?

Asked 2 years ago, Updated 2 years ago, 97 views

When building mvn, JRE is not recognized correctly, so I would like to run Maven EMBEDDED by Pleiades on the command line for investigation.Where is the integrated Maven EXE located? Searching for avmaven 、 and nmvn を in the cleclipseリ directory does not find them.

eclipse maven

2022-09-29 22:51

1 Answers

It's not Pleiades, but it's equivalent to my environment, Eclipse 2019-06(4.12)

/plugins/org.eclipse.m2e.maven.runtime_1.12.0.20190628-1133

It is located in .There is no exe because it is not a native binary (and unlike the standalone Maven package, there is no boot script).

The directory and file names are named maven, so if they are in normal condition, the search will be a hit.

The main class can be found by looking at the standalone version of code, but org.apache in maven-embedder*.jar.maven.cli.MavenCli.

So, for example, in my environment, I can launch it with the following command:

$pwd
[ECLIPSE_ROOT]/Contents/Eclipse/plugins/org.eclipse.m2e.maven.runtime_1.12.0.20190628-1133

$ java-cp"../org.slf4j.api_1.7.10.v20170428-1633.jar:jars/*"org.apache.maven.cli.MavenCli

However, the system properties have not been set yet, so the error will end.
After this, if you want it to end normally, you will be looking for startup arguments to set from the boot script.


2022-09-29 22:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.