M2eclipse User Manual

Source: Internet
Author: User

This brings about the Function introduction and management of the project POM in the m2eclipse plug-in. XML, again declare the version based on maven2.2.1 and m2eclipse 0.10.00, if any version conflicts with the interface, please explore.

After installing m2eclipse, you can use window --> preferences to view a Maven option:


Offline: Run Maven offline to disable the download function from a remote repository.
Debugoutput:Enable debug output in Maven Console
Download artifact sources:Download the source code JAR file of the component from the remote Maven Repository
Download artifact javadoc:Download the javadoc JAR file of the component from the remote Maven repository.
Download repository index updates on startup:Download and update the local remote repository index at startup (selected by default)
Update Maven projects on startup:Update all Maven projects at startup
Hide folders of physically nested modules (experimental ):Whether the nested component is hidden in the current folder (in the experiment, I have not tried its function)
Support multiple Maven modules mapped to a single eclipse Workspace project: Multiple Maven modules can be mapped to a workspace in eclipse.

Goals to run on Project ImportAndGoals to run when updating project configuration
The above two Maven targets are selected when the project is introduced and the source code folder of the Project is updated. The default target name is process-resources. It copies and processes the project's resource files to the target directory so that the project can be packaged at any time. If you need to run custom targets to process resource files or generate some supporting configurations, it is very useful to customize this target list.

If you need m2eclipse to help you select a target, click Select... and you will see the "goals" dialog.



Maven has the following functions:


Archetypes (prototype): At the beginning, two templates were provided. One was the Nexus indexer index and the other was the internal index.



Add local catalog:Add a local record in XML format. For details about the new template, refer to the Apache address:
Http://maven.apache.org/archetype/maven-archetype-plugin/specification/archetype-catalog.html
Add remote catalog:Add a remote record.


Installations (installation configuration ):


This page allows you to add other Maven installations to the eclipse environment. If you want the m2eclipse plug-in to use a different version of Maven, you can configure multiple Maven installations on this page, which is very similar to configuring multiple executable Java virtual machines in eclipse. The embedded version of a Maven file called Maven inner has been specified. This is the version of Maven running in eclipse. If you have another Mave installation, and you want to use it to run Maven instead of Maven embedded, you can click Add in real time.
To add another Maven. The installation configuration page also allows you to specify the location of the global Maven settings file. If you do not specify the location of the file on this page, Maven uses CONF/settings. XML in the selected Maven installation directory as the default global configuration file. You can also customize the location of the user settings file, which is located at {user by default. dir }/. m2/settings. XML. You can also customize the location of your local Maven repository. The default value is ~ /. M2/Repository.


Problem Reporting (Error Report)


After Jira Maven plug-in is installed in POM. XML in your project, you can enter the user password of the Jira (http://jira.codehaus.org) community to report the Error Report of the current repository.


Templates (Template ):


Create and manage templates. Each plug-in and jar has a template defined by default.


User setting)


The user's settings. XML file settings. maven2 cannot be installed by default. you can create a new settings. XML, while local repository sets the path of the local repository according to settings. the local repository label defined in XML. The default value is {user. dir }/. m2/Repository










Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.