version number of spring--also need to understand this very not intuitive fact, spring Security 3.1.x also does not rely on the spring 3.1.x version number ! This is because spring Security 3.1.x was announced prior to spring 3.1. Spring plans to keep these dependencies as consistent as possible in a future version number, and want to know a lot of other information to take a look at their Jira plan, but this is certainly not the case now, and we'll look at the details below.2.2. Spring-securit
Label:In the Java Web project, the inevitable use of the database, the following is the idea of adding MySQL dependency method. If you see this, it means you understand idea,maven and Tomcat, so ... Just add the dependencies in the Pom.xml, and here's my config file. XML version= "1.0" encoding= "UTF-8"?>
Projectxmlns= "http://maven.apache.org/POM/4.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
one, the dependence principle analysis
Jar Dependency Analysis: Maven's dependency management, using the nearest priority, order priority principle,
Maven dependency can be likened to a dependency tree, and the project itself can be considered a root node, as shown below
1,
Original address: http://uule.iteye.com/blog/2087485Official API DescriptionDependency scope is used to limit the scope of Dependency, affecting the status of the package that the MAVEN project imports during each life cycle.Since 2.0.9, 1 new types have been added, and now there are 6 types of scopes:
CompileThe default scope, which means that dependency can
the source code you just downloaded.Detailed Engineering Structure:One of the simplest standard MAVEN projects, where the source code is placed under the Src/main/java directory, the test code is placed in the Src/test/java directory;MAVEN also created a pom.xml that manages the jar packages that the project relies on for you.The upper Isn't it convenient?4. Check if the environment is ready to completeIn
The program that has been developed Hadoop2.2.0 with Maven before. Environment changed to CDH5.2 after the error, found that Maven relies on the library problem. have been using http://mvnrepository.com/to find Maven dependencies before. But such sites can only find generic maven dependencies, not including CDH depende
Before I said a kind of square test to build selenium RC environment, that article is based on the Selenium RC 1.0 way, the current official website has not provided 1.0 download, I provide the download link is csdn on.
In fact, if you are familiar with MAVEN, selenium RC will become easy and easy, of course, my opera
IDEA cited MAVEN project jar package dependency import problem solution, mavenjar
IDEA has a built-in Maven environment. Maven is used by default to solve the project dependency problem. After a new project is created, the pom. xml file and the project name. iml file are ge
one. Maven repository dependency mechanism MAVEN's library dependencies can help us automatically download dependent library files and update versions. Consider a situation to understand how the mechanism works, assuming that we want to use the LOG4J library as a log record of the project. Here's what we're going to do. 1. The traditional way 1) Visit log4j website http://logging.apache.org/log4j/2.x/ 2) Do
this dependency transfer feature directly in dependency, that is, if other project references set up the dependent project, the commons-longging will not be relied upon. For example, if you configure commons-logging dependency in Project A, and if Project B relies on project A, then Project B will not rely on commons-logging at this time.Exclude dependenciesIf a
Problem descriptionDependencies are configured in Pom.xml, but the dependency is not successful, or the dependency is not found in the local warehouse The approximate error is as follows:Artifactdescriptorexception:failed to read artifact descriptor for Commons-beanutils:commons-beanutils-core:jar : 1.8.0:artifactresolutionexception:could not transfer artifact commons-beanutils:commons-beanutils-core:pom:1.
1.Maven Local Resource Library2.Maven Central Repository3.Maven Remote StorageThe Dependency library query order for MAVEN changes to:
Search in Maven local repository, if not found, enter 2nd step, otherwise exit.
In
Quoted http://my.oschina.net/boonya/blog/141276* Compile, default, applies to all stages and will be published along with the project.* provided, similar to compile, expects the JDK, container or user to provide this dependency. such as Servlet.jar.* Runtime, used only at runtime, such as JDBC driver, for run and test phases.* Test, used only during testing, to compile and run the test code. Will not be published with the project.* System, similar to
The problem that bothered the night, generally increased dependency in pom.xml, idea would automatically add the dependent jar package to the MAVEN project, but increased dependency in pom.xml, and there was noAccidentally open Idea's sidebar maven toolbar and find that Kk-manager-service's color is not the same as oth
example. First look at setting this project I will configure the jar to be used. Pom.xml as follows: Module is about what you want to provide to other projects using the 2 projects that I have provided to service client on this side. Dependency this everyone knows is to use the other framework of the Internet to provide if you do not know how to write can be directly in http://mvnrepository.com/Direct search on this site. The full wording of
SOURCE downloadCoordinate
GroupId: Define the actual project that the current MAVEN project belongs to
Artifactid: Defines a MAVEN project (module) in the actual project, and recommends that the actual project project be prefixed with the artifactid, such as: Nexus-indexer
Current version of the Version:maven project
How to Package a Packaging:maven project
Depend on
Print dependency tree
Command: MVN dependency: Tree
Execution result:
$ MVN dependency: Tree
[Info] scanning for projects...
[Info]
[Info] using the builder org. Apache. Maven. lifecycle. Internal. Builder. singlethreaded. singlethreadedbuilder with a thread count of 1
[Info]
[Info] --------------------
the action to get the page element, click the button, and enter the form.the Selenium offers 8 positioning methods:
Id
Name
Class name
Tag name
Link text
Partial link text
Xpath
CSS Selector
here are the 8 ways to locate in the code:
Findelement (By.id ())
Findelement (By.name ())
Findelement (By.classname ())
Findelement (By.tagname ())
Findelement (By.linktext ())
Findelement (B
compiling, and only the JDBC driver implementation is required when running. (4) test (when testing)Test range dependencies are not required for general compilation and runtime, and they are available only during the test compilation and test run phases. (5) System (systems)A jar,maven that contains dependencies needs to be explicitly provided does not look for it in repository. System-wide dependencies are similar to provided, but you must explicitl
Maven hits two ways to run a jar packageMaven common packaging methods are divided into Pom,jar,war, as for these packaging types are not introduced.If you do not make a special configuration, the packaged jar package is not operational. Can only be used as a normal dependency package.Here are two ways maven can run a jar package:Mode one: built-in packing method
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.