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
Tags: foreword str rod home ACL PAC console version Bubuko
Foreword: The MAVEN project needs to add Oracle dependencies to the Pom file.
If error: The report can not find the driver; java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver. Here's a solution. Solution :
Find the Oracle JDBC Driver in the Oracle installation directory; for example: D:\Oracle\product\11.2.0\dbhome_1\jdbc\lib;
Win+r start the console
It's possible that I've used Maven in Eclipse, and I've been searching in Search.maven and adding pom information.Today, when searching online, I found a solution to share here.First step, select Maven in Preferences, select "Download Repository index updates on startup"Step two, open the MAVEN repositoryThe third step, right-click on the global warehouse to sele
It's possible that I've used Maven in Eclipse, and I've been searching in Search.maven and adding pom information.Today, when searching online, I found a solution to share here.First step, select Maven in Preferences, select "Download Repository index updates on startup"Step two, open the MAVEN repositoryThe third step, right-click on the global warehouse to sele
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] --------------------
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
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
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
It is the default configuration to directly obtain dependency packages from Maven public repository over the Internet. However, for Chinese software companies, access to these public warehouses is usually slow, which is even more impossible for software companies with strict management requirements that cannot directly access the internet. Maven projects can be c
Maven introduces Hadoop dependency error: Missing artifact jdk.tools:jdk.tools:jar:1.6The reason is that the Tools.jar dependency is missing and Tools.jar is available in the JDK installation directory, so it is changed to the following form to resolve this issue:Add dependencyDependency> groupId>Org.apache.hadoopgroupId> Artifactid>Hadoop-mapreduce-cli
=ojdbc7-dversion=12.1.0.2-dpackaging=jar-dfile= Ojdbc7.jarThen it's still a mistake.Later I found the cause of the error because I was under windows and I ran this section of the program on the GIT command line that was opened.Open the Windows command-line interface, enter the ~/additional_jars/directory, and then run:MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc7-dversion=12.1.0.2-dpackaging=jar-dfile= Ojdbc7.jarShow "BUILD SUCCESS".You can then add
Problem Description: The container ' Maven Dependencies ' references non existing library ' ${groupid}/${artifactid}-${version}.jar 'Solution:The problem is often caused by network problems during the download dependency process. At this point we have started to download the dependency code, but the download failed, the native repository will be in the ${maven_r
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
In a Maven project, if a jar package is required for compilation but not required for release, you can use the scope label with the value set to provided. As follows: Other parameters of scope are as follows: CompileThe default scope indicates that dependency can be used in the lifecycle. In addition, these dependencies are passed to the dependent project. Applicable to all stages and will be released alon
1. Why conflicts of dependence ariseThe transitive dependency mechanism in Maven simplifies dependency declarations on the one hand and, on the other, may cause version conflicts if transitive dependencies occur. For example, there are dependencies such as: A->b->c->x (1.0), A->d->x (2.0), and the scenario for such a conflict
=jar-dfile= Ojdbc7.jarThen it's still a mistake.Later I found the cause of the error because I was under windows and I ran this section of the program on the GIT command line that was opened.Open the Windows command-line interface, enter the ~/additional_jars/directory, and then run:MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc7-dversion=12.1.0.2-dpackaging=jar-dfile= Ojdbc7.jarShow "BUILD SUCCESS".You can then add dependency to the
Android Maven package bulk replacement of resource files (overlay for skin) amp; AAR package dependency module overwrite Policy
1. AAR package and overwrite
The primary module (APK) overwrites resources of the same name in AAR:
The policy is as follows:
Resource file examples. layout overwrites resources. The values file, such as strings. xml, is merged.
Modules with dependencies can only be packaged
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.