Maven references local jar files to pom. xml and mavenpom. xml
Copy the leixin-1.1.jar to D:/MyWork/Maven/and execute the cmd operation:
D: \ MyWork \ Maven> mvn install: install-file
Ii. Explanation of pom. xml elements in Maven, mavenpom. xml
Reprinted please indicate the original address: http://www.cnblogs.com/ygj0930/p/6628201.html
A pom. xml file contains many
compilation and test run phases.System (systems-wide)System-wide dependencies are similar to provided, but you must explicitly provide a path to the jar file in the local system. This is done to allow compilation based on local objects, which are part of the System class library. Such artifacts should always be available, and MAVEN will not look for it in the warehouse. If you set a dependency scope to a s
Configure Pom. XML in Maven packaged as a war package
(1) complete configuration: This is the complete configuration of servlet, similar to others.
(2) When an error is reported in the project:Web. XML is missing and You need to add the following configuration in POM.
Build struts2 spring3 mybatis maven Project Build pom. xml, struts2maven
When building an ssm project in maven, you can leave a backup for yourself.
Environment Description:
MyEclipse10
Maven 3.2.3
Framework:
Struts2 2.3.24.1
Spring3 3.0.5.RELEASE
Mybatis 3.2.2
Database:
Fo
The basic element of POM. XML, which is used to manage project dependencies on third-party packages. Maven downloads the dependencies of some packages defined in this element to the local repository and allows the project to use them. Ensure that our project can be correctly built and deployed. Dependencies has a dependency element that specifies a package on whi
From: http://www.cnblogs.com/ericsun/archive/2011/10/17/2215311.html
Pom is the abbreviation of the Project object model. The following describes the explanation of POM in Baidu encyclopedia.Definition
Maven is a project-centered design. Pom is Maven's description of a single project.
End Bowl blowing waterMaven command: Maven can be used not only on eclipse, but also in CMD, although it is cumbersome and generally not used, but it is necessary to understand some of the possible ways to do it. 1.MVN compile command: This command is used to compile the project, use this command to compile the code in CMD, the need to first CD into the project directory, or will be error. Using the command to compile the project, the project folder c
The following error was reported when uploading the library to Bintray spaceCould not upload to ' https://api.bintray.com/content/ping/maven/comm-adapter/0.0.1/com/ping/adapter/commadapter/ Commadapter/0.0.1/commadapter-0.0.1.pom ': http/1.1 "Request [message:unable to upload Files:maven group, artifact or version defined in the Pom
Create a project using Maven today, but an error is reported in the POM file after the project is created. The error is as follows:What does the above mean? The plug-in Maven-surefire-plugin cannot be found. The solution is as follows:First open the local repository, follow the org \ apache \
My project's build path in the library has MAVEN Dependences, which has a red fork, which shows that there are two jar packages found, the path shown is the C drive. m2 file, but these two jar packages are special,
Because I put them in the project Web-inf under the LIB, is external dependence, not in the C disk;
Then I use the MAVEN command clean install, or d
To help a colleague to import a MAVEN project found that no POM files are present after import.
Said it was not possible to find the corresponding jar file from the server. Then after a long time to finally find the cause, summed up the following 1, the network has problems2. The jar library is not trusted3, the POM c
reference jdepend usage instructionsAdd Findbugz Check, detailed configuration reference Findbugz usage instructions,Add Javadoc generation, detailed configuration reference Javadoc usageWith JXR support, JXR is an HTML-formatted tool that generates Java code cross-references and source code, with detailed configuration information referenced JXR usage. Note that JXR is not necessary to run in the build phase. join Cobertura support, which is a code coverage tool that can be used to evaluate th
Now almost all development projects are used by MAVEN projects, but sometimes you can use the diff gate or the new jar may not be able to search the Web in the Pom file configuration should be how to write, so write down this blog.For example, I now want to join the Aaa.jar this package open cmd, enter the command inside MVN install:install-
Today in Eclipse import a previously run-error maven project actually found POM file error hint missing artifact .... The mistake, is very distressed, later on the Baidu searched the various methods finally solves the questionThe reason is that pom files are sometimes stupid. You have to force him to tell him where the
. XML in a directory similar to the followingFind out if the following statement is available org.springframework.web.util.log4jconfiglistener NBSP; org.springframework.web.context.contextloaderlistener If there is, first check whether the statement is complete, the monitoring and declaration order can not be reversed, otherwise it will error; second, look at the code where the address is not wrong, the addr
Method One:Locate the jar package file where the error occurred and delete the _maven.repositories fileMethod Two:The index index of the local warehouse in Maven is not updated to causeSolution:Open the menu in Eclipse window-> show view–> other–> maven--maven repositoriesAfter opening, select local Repositories–> loca
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.