Some summary of using maven in idea

1. The warehouse directory of .mvn is generally in C:\Users\Administrator\.m2\repository by default. There is no need to reset it
. 2. For multi-module projects built, try to put the dependent ones in the front, and install( Place the generated jar in the mvn repository)
3. Execute the package of the project that needs to be packaged separately, and need to configure plug-ins such as maven-jar-plugin (war).
4. The jar plugin is only configured by default, and it only packages its own content. If you need to generate all executable files, you need to add the copy action of copy. However, the package value generated by this model is in the format of many jar combinations, which is not enough. Convenience.
5. Using the maven-assembly-plugin method, you can generate packages with dependencies. Refer to http://blog.csdn.net/xiao__gui/article/details/47341385

6. If there is an unkuwon situation, the best way is to clear it All files corresponding to the warehouse, modify the pom file to trigger the re-download process.


7. You can choose to open or close the maven proj option in the view, and you can view the dependencies and perform various operations.

8. It is necessary to configure the process of copying the configuration file to the final packaging file.

9. If the common part is added and modified, it needs to be reinstalled when packaging

10. At least one kind of starter needs to be added to the spring project, otherwise there will be a problem that autoconfig cannot be found


11. Currently used directly in the netty project

spring-boot-maven-plugin
 
 
 
 
 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325954947&siteId=291194637