. For example, if you develop a Web application, you might need the Servlet API available in the compilation Classpath to compile a servlet, but you don't want to include the Servlet API in the packaged war, and this servlet API JAR is made by your Provided by the application server or the servlet container. A dependency that has been provided for scope is available at compile classpath (not at runtime). They are not transitive and will not be packaged.Runtime (run-time range)Runtime relies on t
Label: Style Color OS use strong ar file problem code 1. enumerate the meaning of each attribute value
Compile, default value. It applies to all stages and is packaged into the project.
Provided, similar to compile, expects JDK, container, or user to provide this dependency.
Runtime, used only at runtime, such as the JDBC driver, applicable to the running and testing stages.
Test, which is only used for testing and is used to c
In pom4, the scope element is introduced into the dependency element, which is a very important attribute. In Maven projects, jar package conflicts and type conversion exceptions are caused by improper use of scope elements.The role of the scope element: controls the scope of use of the dependency element. In general, it is to control the scope in which jar packages are loaded and used.Scope contains five values, which are described as follows:Compile
Here's a summary of the many ways to package a jar with idea, and later package packages can refer to the following form:
The package form with idea comes in
Package with Maven plugin maven-shade-plugin
Package with Maven plugin maven-assembly-plugin
The way to pack with idea comes in:Open idea fi
Maven (maven Summary 2 of the project management tool series), maven Project Management
What is maven?
Download and install maven
Learn about mavenWarehouse
Configure maven in eclipse
Create a
Read Catalogue
Related books
What is maven?
How to use Maven in eclipse
What does the MAVEN project look like?
Commands used by Maven in eclipse
Objective:
As a result of recent work study, always can meet Maven source code. Alth
after reading "maven combat" this book and some other information about MAVEN construction, it is necessary to summarize several blogs, share to everyone, as soon as possible through a few blogs to learn about the build and other tools for building.What is maven?By the way, you will find that Maven has the
1 Maven Java EE Configuration problem
error 2 : Description Resource Path locatio n Type one or more constraints has not been satisfied. SHIRO_LEARN1 Line 1 Maven Java EE Configuration problem
workaround First step: Refer to the reference document below Make changes to related documents in your project Step two: ★ Right-click Project > Maven
.
Now the most popular MAVEN warehouse manager is the famous nexus (pronunciation [? n?ks?s], meaning "center, armature" in English), which greatly simplifies the maintenance of its internal warehouses and access to external warehouses. With the Nexus, you have full control over every artifact that is accessed and deployed in the warehouse you maintain in just one place. Nexus is a set of "out-of-the-box"
.
There is also an added benefit to using MAVEN, which is that MAVEN has established rules for content such as project directory structure, test case naming, and so long as these mature rules are followed, users switch between projects with extra learning costs, which can be said to be better than configuration (convention Over Configuration).
2. Contrast, maven
Installing and configuring MAVEN environment variables
Requires a Java environment already in the computer
In the console, enter: echo %JAVA_HOME% See if you can display the path information of Java home;
In the control bar input: java -version See if Java version information is displayed;
Download official website: http://maven.apache.org/download.cgi
Download the compiled version apache-maven-
is a default app class that changes slightly:public class App {public String SayHelloWorld () { return "Say Hello world!"; } public static void Main (string[] args) { System.out.println (new App (). SayHelloWorld ());} }After the code is written, and then compiled, because MAVEN uses commands to operate, so go to the console, enter the project directory, enter "MVN Clean compile":At this point the engineering chang
, remote repository, and central repository where to specify (% M2_HOME/lib/maven-model-builder-3.2.3.jar/org/apache/maven/model/pom. xml ). Understand repository configurations, how to configure remote repositories, and how to configure authentication information when authentication is required. Understand the meaning of the snapshot version and master the mecha
also an added benefit to using MAVEN, which is that MAVEN has established rules for content such as project directory structure, test case naming, and so long as these mature rules are followed, users switch between projects with extra learning costs, which can be said to be better than configuration (convention Over Configuration).2. Contrast, maven,ide,mark,an
When the search engine grasps the lifeblood of the Internet economy, the typical application of the Internet, which is created by the search behavior, will affect all the people and things related to it. For the moment, we call the economic model of the related behavior a search economy. In this section we discuss one of the most basic elements of a search economy – search keywords.
What are the key words? It can be any word in any language, mainly in the form of words. The essence of writing i
1. If you want maven projects to depend on another maven project, the dependent project must have corresponding jar packages in the maven repository. Therefore, you must execute the mvninstall command on the dependent project. 2. Create the HelloFriend directory of the second project module and the agreed directory structure vcmRlcj01cellspacing0cellpadding0Hello
Some recent projects need to be managed by MAVEN, one of which is to add the previous Eclipse Java Project Project and Web project to MAVEN management, and another scenario is to pull the MAVEN project on SVN locally, Some of the tricky issues encountered in using eclipse, the problem process, and the solution are as follows:1. When you start eclipse after instal
Add the following code under the Pom.xml File build node:123 45678 9Ten One A - -The user can bind any plug-in target to the stage of any life cycle as needed, such as binding the jar-no-fork target of Maven-source-plugin to the package stage of the default life cycle, so that later execution mvn Package command when packaging a project, source code packaging is performed after the packages phaseExecution can be configured un
MAVEN uses commands to operate, so go to the console, enter the project directory, enter "MVN Clean compile":At this point the engineering change is that there are compiled App.java corresponding app.class under target:The meaning of this command is:1. Clean tells Maven to clear the output directory target/2. Compile tells M
This article explains the use of Maven in Eclipse, which comes with a Maven plugin in some of the higher versions of Eclipse. So this is not going to explain how to install the plugin.Next we create a Mavenfirst projectFirst, create a Mavenfirst project in EclipseFirst step: Create a MAVEN project Step two: Choose to create a Java project-->next Step three:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.