Some jar packages are not available in the MAVEN Central Library, so how do you use them in your project? Suppose we need to use: Apache-ant-zip-2.3.jar Place the jar package in the project's Lib directory, for example: Add a reference to the jar inside the Pom.xml, for example: This will allow you to use Apache-ant-zip-2.3.jar in your project! Here's the question of how to include Apache-ant-zip-2.3.jar in a project when it's packaged into a war.
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
Create a MAVEN project with the following structure:
Among them, the contents of Pom.xml are as follows:
Application.properties File Contents:
Jdbc.driverclassname=${jdbc.driverclassname}
Jdbc.url=${jdbc.url}
Jdbc.username=${jdbc.username}
Jdbc.password=${jdbc.password}
Profile-dev.properties File Contents:
Jdbc.driverclassname=com.mysql.jdbc.driver
jdbc.url=jdbc:mysql:///db_users
jdbc.username=root
Jdbc.password=root
Start the applicati
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
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
action, use Remove-migration." , you can see that there are some more files under the project when the migration succeeds. 12. Continue to enter Update-database, the following is the prompt for successful operation, we can open the MySQL database to see if the update has been successful.13. Finally, test in the API and add the following code to the ValuesController.cs[Route ("Api/[controller]")] Public classValuescontroller:controller {Priva
extend the implementation for Idependencyresolver with an external IOC container. External IOC containers are commonly used with Unity AUTOFAC Ninject and so on. We use AUTOFAC as our implementation here. It is also the main IOC container because of its complete documentation, high efficiency and powerful functions. You can use AUTOFAC to create your own, or you can take the AUTOFAC official extension for WEBAPI. Install AUTOFAC and Autofac.extentions.webapi through NuGet. will automatically ha
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.