Dependency Scope* 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.* Syste
Transferred from: http://blog.csdn.net/cskgnt/article/details/8602802Workaround: Add the following pluginmanagement before plugins, both before and after the following sequence: Maven-dependency-plugin (Goals "Copy-dependencies", "unpack") is isn't supported by m2e
Solution: add the following pluginmanagement before plugins. The order of the two is as follows:
Maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e
Background:Environment problems, positioning as dependent jar missing, modify the project Pom file to supplement the dependent jar.Update Key Description:Dependency jar, Update commitBusiness jar, also need to update the commit: Maven build will reference the dependent jar, update the environment if the dependent jar package is updated separately, the new build business Jar Internal API is not consistent, the business jar also has to be updatedCases:I
When integrating Struts2+spring+hibernate with Maven today, it is reported that as long as the spring-web dependency is not declared in the Web module, it is java.lang.NoClassDefFoundError: [lorg/ Springframework/context/applicationcontextinitializer; exception, site cannot start.Compared to a half-day discovery add spring-web dependencies after packaging generated files less a Spring-asm-3.0.5.release.jar
Using multiple versions of a jar package in Maven can be a dependency problem, and the way to solve the problem is toUse the jar package version to exclude, such as Dubbo using Netty 4.0. Version 33 can exclude DubboNetty dependencies so that other jar packages are not referenced to the netty4.0.33 version.As follows:Related connectionshttp://chwshuang.iteye.com/blog/2069937Maven multiple Jar package versio
The Spring cloud project is typically a parent project with more than one child service, which is the Submodule module.Such as:problem Description: A common jar package is referenced in the parent project, for example, the spring boot dependency is introduced, then the introduction of the jar package in the subproject does not specify version, so the downloaded jar package is unknownAnalyze the problem:Because the jars used in the subproject are all s
Three kinds of JSON are commonly used to parse Jackson, Fastjson, and Gson.
Jackson Dependency Pack -- Com.fasterxml.jackson.core Jackson-databind 2.9.3 -- Com.fasterxml.jackson.core Jackson-core 2.9.3 -- Com.fasterxml.jackson.core Jackson-annotations 2.9.3
Fastjson com.alibaba fastjson 1.2.47
Gson com.google.code.gson gson
class called C1, and this C1 will import this portal-impl artifact of the class B1, then in the compilation phase, we definitely need this B1, otherwise C1 pass compilation, Because our scope is set to provided, the compile phase works, so C1 compiles correctly. Test phase is similar, so ignore.
So in the end we're going to have to PROJECTABC deployed to the Liferay server, and this time, we found under $liferay-tomcat-home\webapps\root\web-inf\lib, There is already a portal-impl.jar in it, in
Error:Artifacttransferexception:failure to transfer org.apache.hadoop:hadoop-hdfs:jar:2.6.0 from http://localhost:8081/ Nexus/content/groups/public/was cached in the local repository, resolution won't be reattempted until the update inter Val of central have elapsed or updates are forced. Original error:could not transfer artifact org.apache.hadoop:hadoop-hdfs:jar:2.6.0 from/to Central (http://localhost : 8081/nexus/content/groups/public/): No response received after 60000Cause:: hadoop-hdfs:jar
Guys. I am a Chinese. I had searched this question in search engines and some technology forums, but I cann't find the answer, so I find help here.
The following is the detail of the question:
I have three war projects (project_a, project_ B, project_c). project_c is dependent on project_ B, project_ B is dependent on project_a.
There is a file "index. jsp" in project_a, project_ B overwrite the "index. jsp" File
By my understanding, when the project_c is deployed to Web server, the file "in
Java.lang.ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceWorkaround: Add the Missing jar package: Commons-collections-3.1.jar,commons-pool-1.3.jar,commons-dbcp.jar.Note: Commons-pool and commons-dbcp have migrated to the new: Commons-pool2 and COMMONS-DBCP2, with the new can't solve the problem, so still use the old bar.java.lang.unsupportedclassversionerror:com/mysql/jdbc/driver:unsupported Major.minor version 52.0 (Unable to load Class Com.mysql.jdbc.Driver)Workaround: Add the M
Tags: nbsp Repo nap ups MAVEN Central warehouse artifact RMI info LogMAVEN Central Warehouse address (the following settings are written in the Pom.xml file): Maven Central Warehouse address (support Db2,informix, etc.)
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.