Problem Description: Just like this
I have a local warehouse, build path in the rack package is not missing, pom file does not have any red fork
Resolution process:
At the beginning of the pom file update download less than 4 rack package, I took a lot of online parlance, delete the corresponding rack package location files, let it re-download, invalid.
And then I got a guy to send me. After the pac
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 file does not match the file path ' Com/ping/adapter/commadapter/commadapte
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 directly clean, all error, is not found a jar file, in the other menu of the Pom file in Ec
Many new users do not know how to add jar packages to Maven projects.I downloaded a demo before using maven. It is a Maven project.I wrote it one by one based on his Pom. xml file !!!What many take for granted is a difficult threshold for beginners.Therefore, write down how to add a jar package to the maven project.AccordingCreate a standard Maven web project with m2eclipse. This blog creates a Maven-based Web project.How can we add a jar package afte
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. xml:
(3) In the project, specify the JDK version in POM. xml. By default, the JDK version i
description resource path location type
Failed: failed to read artifact descriptor for ognl: jar: 3.0.5: unresolvablemodelexception: failure to transfer org. sonatype. OSS: OSS-parent: pom: 7 from http://repo.maven.apache.org/maven2 was cached inThe local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. original error: cocould not transfer artifact Org. sonatype. OSS: OS
Original article: http://blog.csdn.net/lgm277531070/article/details/6922645
A. Pom. xml attributes:
Project: The XML root element of POM.
Parent: declares inheritance.
Modules: Declares aggregation. This value is the relative directory of the current pom. Aggregation of user projects.
Groupid: defines the actual project to which the current Maven project belongs.
Non-resolvable parent POM for **: cocould not find artifact **, pommissingartifact
Note:
Cocould not find artifact com. easybuy: easybuy-parent: pom: 0.0.1-SNAPSHOT and 'parent. relativepath' points at wrong local POM @ line 3, column 11->
The reason is that the local warehouse lacks easybuy-parent: pom: 0.0.1-SNAPS
1,
Parent
The location of the parent project. The location of the parent project is specified by the group Id,artifact ID and version.
Modelversion
Declaring Pom.xml File compliant versions
GroupId
A globally unique project identifier. Typically use fully qualified Baonilai and other project compartments (e.g., org.apache.maven)
Artifactid
A unique product identifier within a given gorupid. Artifact is something that is exported by
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 local warehouse is.The path of the local repository is added to the
After a JAR has changed its name recently, there is a project that relies on it to refer to the old name, causing the package to go wrong as follows:[INFO]------------------------------------------------------------------------[INFO] Building Com.ld.base.runtime 1.0.0-snapshot[INFO]------------------------------------------------------------------------[WARNING] The POM for org.jxls:jxls:jar:1.0.8 is missing, no dependency information available[WARNIN
Maven's Pom Report plugins is the solution.Reference failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from Http://repo1.maven.org/maven2 was cached in the local repository, resolution would not is reattempted until the update interval of the central have elapsed or Updates are forcedEncountered an error similar to the above.The reason is that Maven plugin is not downloaded locally.If you viewReference ~\.m2\repository\org\a
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 \ Maven \ plugins \ Maven-surefire-plugin \ 2.12.4 path to open the folder, found that only the maven-surefire-plugin-2.12.4.pom.lastUpted such as the file ending
Maven configuration Spring+springmvc+mybatis (3.2.2) POM Configuration principle:Use dependencies to load the required jar packages into project.
Rely on the main jar package firstSpring + Spring MVC + MyBatis + database
Rely on the secondary jar package againC3P0 Connection pool. Log4j,junit
Peripheral Jar PackagePOI Jfreecharts JXL
Examples:Typically only when you use spring, you will spring-context rely on the POM.For example,
Maven's Pom Report plugins is the solution.Reference failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from Http://repo1.maven.org/maven2 was cached in the local repository, resolution would not is reattempted until the update interval of the central have elapsed or Updates are forcedEncountered an error similar to the above.The reason is that Maven plugin is not downloaded locally.If you viewReference ~\.m2\repository\org\a
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-file-dfile= want to add the location of the jar package (such as E:/aaa.jar)-dgroupid= This package is placed in
Pom File Error: The matching wildcard is strict, but no declaration can be found for element ' Dubbo:service '.Workaround:Find the Dubbo jar package, unzip it and locate it under the Meta-inf folder dubbo.xsdIn Eclipse, click Windows-->preferrence-->xml-->xmlcatalogSelect Add-->catalog Entry-->file systemLocate the Dubbo.xsd file.Key:http://code.alibabatech.com/schema/dubbo/dubbo.xsdClick OK and click OK.Right-click on the
Beginners Add jar packs or Maven project Pom file dependencies always do not know where to get, waste a lot of time, below tell you a resource library:
Resource pool: http://search.maven.org
http://mvnrepository.com/
Search for the resources you need as you need to:
We select the different file types that are required on the right
Here's how the jar pack and pom dependencies are introduced
About the introd
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.