在没有安装maven的系统中在eclipse中安装m2e

时间:2022-06-01 18:06:38

I recently try to use maven in my eclipse project. In maven official website there are several step that I must to accomplish to configure maven side by side with eclipse. But I know there is a m2eclipse plugins if I need to use maven. But I don't know if I can use this plugins with maven installed in system or not.

我最近尝试在我的eclipse项目中使用maven。在maven官方网站上,我必须完成几个步骤来配置与eclipse并排的maven。但我知道如果我需要使用maven,有一个m2eclipse插件。但我不知道我是否可以在系统中安装maven时使用这个插件。

So can I use this plugins without maven been installed in system or not ?

那么我可以使用这个插件而不用maven安装在系统中吗?

1 个解决方案

#1


The m2e plugin brings a copy of Maven 3.0.4 and installs it inside of Eclipse so the plugin can use it. This is enough to build Maven projects inside of Eclipse. No external installation is needed.

m2e插件带来了Maven 3.0.4的副本并将其安装在Eclipse中,因此插件可以使用它。这足以在Eclipse中构建Maven项目。无需外部安装。

You must start Eclipse with a JDK, though. A JRE isn't enough. If you're unsure: Look for the file lib/tools.jar. When it's there: You're good.

但是,您必须使用JDK启动Eclipse。 JRE是不够的。如果您不确定:查找文件lib / tools.jar。当它在那里时:你很好。

This copy isn't accessible from the command line. If you want to build from the command line as well or if you need a newer version of Maven than 3.0, you need to install Maven and configure the plugin accordingly.

无法从命令行访问此副本。如果您还想从命令行构建,或者如果您需要比3.0更新的Maven版本,则需要安装Maven并相应地配置插件。

#1


The m2e plugin brings a copy of Maven 3.0.4 and installs it inside of Eclipse so the plugin can use it. This is enough to build Maven projects inside of Eclipse. No external installation is needed.

m2e插件带来了Maven 3.0.4的副本并将其安装在Eclipse中,因此插件可以使用它。这足以在Eclipse中构建Maven项目。无需外部安装。

You must start Eclipse with a JDK, though. A JRE isn't enough. If you're unsure: Look for the file lib/tools.jar. When it's there: You're good.

但是,您必须使用JDK启动Eclipse。 JRE是不够的。如果您不确定:查找文件lib / tools.jar。当它在那里时:你很好。

This copy isn't accessible from the command line. If you want to build from the command line as well or if you need a newer version of Maven than 3.0, you need to install Maven and configure the plugin accordingly.

无法从命令行访问此副本。如果您还想从命令行构建,或者如果您需要比3.0更新的Maven版本,则需要安装Maven并相应地配置插件。