The project requires the use of MAVEN's packaging tools to generate a zip archive, using a plugin that is assembly-plugin. For some special reasons, it is necessary to use some local jar to rely on, and after loading the external jar there is no problem in the encoding process, but it has been reported that "package does not exist".Think about it: MAVEN is essentially a plug-in framework, and its core does
Exclude conflict jar PackagesJar Package ConflictDependencies> Dependency> groupId>Org.springframeworkgroupId> Artifactid>Spring-coreArtifactid> version>5.0.6.RELEASEversion> Dependency> Dependencies> When you add the above dependencies in Pom.xml, the following two jar packages are added automatically:Can see Spring-core automatic
Reference: http://blog.csdn.net/xiao__gui/article/details/47341385Method: Using the assembly plugin, the generated jar package is named Xxx-jar-with-dependencies
Specifies that MainClass will write the main class to the MANIFEST.MF file.
Specifies that the jar-with-dependencies will test the dependency into the jar
Add this plugin to the pom.xml of the project"http://maven.apache.org/POM/4.0.0"Xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">4.0.00.0.1-snapshot//maven.apache.orgdefault//repo1.maven.org/maven283.8.11.2.12.2Jar-with-dependenciesNote Modify the entry class file MainClass to MainAdd this assmbly plugin to hit the jar pack. In Eclipse, right-click t
the new Maven project, in Build always pack a failure, tips less Jar package, as follows:[ERROR] Failed Toexecute goal on Project Jyypt_tool:could not resolve dependencies for Projectcom.tgb:jyypt_tool:jar:0.0.1-snaps Hot:the following artifacts could not Beresolved:jboss.web:jbossweb:jar:2.1.7.ga, Xalan:xalan:jar:2.7.1,com.oracle:o Jdbc14:jar:10.2.0.4.0:failure
How to Use the jar package under lib in the idea maven Project
In project development, maven is generally used to manage projects, but sometimes the jar package under local lib needs to be referenced.
For example, the central repository does not have a jar package. In this
; MainClass>Com.jimson.hellojava.mainMainClass> Manifest> Archive> Descriptorrefs> Descriptorref>Jar-with-dependenciesDescriptorref> Descriptorrefs> Configuration> plugin> Plugins> Build>To package a dependent package together, you need to use
Introduction:One big problem with Maven is the introduction of third-party packages, which are not available in the MAVEN main repository, such as the Springside-core-3.2.3.jar package.Installing a third-party jar to the local MAVEN repositoryUse the following command:MVN Install:install-file-dgroupid=org.springside-dartifactid=springside-core-dversion=3.2.3-dpac
Maven is really a good project management tool, and you don't need to download the dependency pack in advance, just add it to your profile and download it automatically, compared to the more traditional javaide. However, because of Maven's transitive dependency feature, Maven downloads a dependency package along with the jar package's dependency
① about Tar,jar,war FileTar is another common packaging format that is convenient for deployment to the Server.The jar is Java App Server recognized Java deployment format, in fact, is a zip file, only the internal files have Specifications.The war is a jar dedicated to Web Apps. There is also an ear suffix for enterprise apps.② What is maven?MAVEN is a tool for building projects that easily manage the life
The local MAVEN warehouse has a need jar package still error, missing .......Why do you get an error if you have this jar package?Found a local warehouse and found a _remote.repositories file inside.The problem is _remote.repositories.>nexus shows that this dependency is downloaded from the A. At this time I am not connected, so there will be lastupdate suffix fi
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 along with the Project
ProvidedSimilar to compile, but it indicates that dependency is provided by JDK or container, such as servlet AP and some java EE APIs. This scope can only be used during compilation and testing without passing.
RuntimeIt
JMeter Project maven file under this. bat tool, you can move the necessary jar packages to the JMeter response folderrem This file is placed under the JMeter script Maven project root directory, and Pom.xml under the same folder REM pre-conditions, the official website of the Apache download-jmeter-3.2.Zipput the following FilePath and unzip to the current folder set FilePath=D:\work\jmeterPerformanceTestre
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.