Home > Java > javaTutorial > What are the dependencies of Java base modules?

What are the dependencies of Java base modules?

王林
Release: 2023-04-22 10:28:08
forward
1075 people have browsed it

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.

Dependency management

What are the dependencies of Java base modules?

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;

Component dependencies

What are the dependencies of Java base modules?

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.;

Dependency transfer

What are the dependencies of Java base modules?

Basic commands

  • 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

  • ##mvn site Generate site

  • mvn test-compile Compile test code

  • mvn -Dtest package Only package but not test

  • mvn jar:jar Only print jar package

  • mvn test -skipping compile -skipping test-compile only tests without compiling, nor does it test compilation

  • mvn source.jar Source code packaging

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template