![]() ![]() ![]() The purpose of this command is to get Maven to perform a task that is in progress. This command will print out all Java system properties and environment variables, which are useful to turn into our daily work. m2 folder and execute the following command in a cmd window: mvn help:system. ![]() OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" PS C: \Users \qw.TCENT> Java version: 1.8.0_231, vendor: Oracle Corporation, runtime: D: \Program Files \Java \jdk1.8.0_231 \jreĭefault locale: zh_CN, platform encoding: GBK Provides a set of dependency management mechanisms.Īn ordinary Java project managed with Maven has the following directory structure by default.Īpache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739 ) Maven home: D: \ProgramData \apache-maven-3.8.3.provides a standardized set of build process (compile, test, package, release ……).provides a standardized set of project structure.Maven is the management and build tool built specifically for Java projects, and its main features are. What we need is a standardized Java project management and build tool. If every project had its own set of configurations, it would be a mess. These tasks are not too difficult, but very trivial and time-consuming. Finally, in addition to using an IDE like Eclipse for compilation, we must also be able to compile via command line tools to be able to compile, test, and deploy the project on a standalone server. In addition, we also need to configure the environment, such as the version of the JDK, the compilation and packaging process, the current code version number. For example, the src directory holds the Java source code, resources directory holds the configuration files, bin directory holds the compiled. Next, we need to determine the directory structure of the project. These are the dependency packages management. if we also need log4j, we need to put all the log4j related jar packages into the classpath. For example, if we need to use commons logging, we must put the commons logging jar packages into the classpath. First, we need to determine which dependency packages to introduce. Before we get into Maven, let’s take a look at what you need for a Java project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |