IntelliJ IDEA + What Maven iml file dependency needs are?

, Project-specific dependencies in the pom.xml file in Maven. In IntelliJ IDEA, even for a Maven project, the same information is also stored in the iml file. There are two places in what the same information needs?

 

When importing Maven project, IDEA to be appreciated and it is represented in the model dependencies format used internally. If you are a Maven dependency management, you do not need to change the dependency IntelliJ IDEA module settings.

It can also be used without changing pom.xmlthe case of the test dependencies. Please note that all changes you make will be restored the next Maven import.

In other words, IDEA does not directly understand Maven model, it converts all of your project model subsystem, and internal project information needs to be stored somewhere, so the .imlfile and .ideaproject directory. In this way, IDEA does not require analysis pom file and resolve all the dependencies again, only each time you open the project pom.xmlwill be completed during the change.

Because you can build / run / test / deploy / debug Maven project without using Maven, store the information needed to IDE task in a format understood by the IDEA. It's faster, easier to maintain than directly read Maven model, I think it is easier to achieve.

Guess you like

Origin www.cnblogs.com/yqyang/p/11818820.html
Recommended