A core feature of Maven is dependency management. When we deal with multi-module projects (containing hundreds or thousands of modules or sub-projects), the dependencies between modules become very complex and management becomes difficult.
framework-dependencies is a dependency management independent of the framework. The definition is to manage third-party components. There are several main points:
We usually have an independent third-party dependency management under a project framework;
Define basic version information at the top layer to reduce the basic Module dependency conflicts;
Unified version management facilitates basic component upgrades;
framerork-parent is the parent pom file of the entire project, which mainly defines these components:
Introduces framework version management dependencies for global unified management;
Manage sub-module versions;
Define the system-level maven coordinate baseline;
Define the basis Plug-in configuration, such as compiling plug-ins, publishing information, component integration, etc.;
mvn clean Clear the generated project (in target)
mvn compile Compile the source code
mvn install Locally Install the jar in the repository (including mvn compile, mvn package, and then upload it to the local warehouse)
mvn deploy Upload to the private server (including mvn install, then upload to the private server)
mvn package Package
mvn test Run test
The above is the detailed content of What are the dependencies of Java base modules?. For more information, please follow other related articles on the PHP Chinese website!