Maven-Repository Manager (Nexus)-download, install, run, and upgrade maven-nexus
Chen kichao
====================================
1. Introduction
Using Nexus has two purposes:
I,It is a component of our project that uses Nexus to access a remote central repository, so that dependencies can be downloaded to the local device. The next time a developer accesses a downloaded component, the developer does not ne
-clean-plugin this plugin write too bad, wrote a plugin, how to use it? Is the next custom binding.Custom BindingsWrite a plugin first, that is necessary. Next in the Pom.xml file, the configuration plug-in for the child element of build plugins is as follows:1 plugin>2 groupId>Org.apache.maven.pluginsgroupId>3 Artifactid>Maven-source-pluginArtifactid>4
Chen Kozhan-Welcome reprint, Reproduced Please indicate, thank you!==================In maven, we use archetype to create the project. In Ecelipse, we create the project through the New Project Wizard. The New Project Wizard in Eeclipse provides us with a large number of templates for creating projects. M2eclipse adds the following functionality to the wizard:1. Check out a MAVEN project from the SCM Wareho
Reference: http://blog.csdn.net/symgdwyh/article/details/6081532Maven Assembly pluginHttp://maven.apache.org/plugins/maven-assembly-plugin/index.htmlUsageHttp://maven.apache.org/plugins/maven-assembly-plugin/usage.html
Procedure
#1 copy the following code to the Pom. xml file of the maven Project
Jar-with-dependencies
#
I. Preparation and execution of orders
Learning Plug-ins:
Learn the Apache packaging plugin maven-assembly-plugin:http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
To execute a command:
will be typed into the jar package, execute Java-jar xxx.jar, you can.
Two, main method to make Jar package, and reference third party maven jar package
Scenario
problems are caused. We need to know which dependency path the transitive dependency was introduced from. For example, project A has this dependency: a->b->c->x (1.0), A->d->x (2.0), X is the transitive dependency of a, but two X on the two dependent path, which x is used by MAVEN parsing? It is not possible to resolve two version numbers, because they can cause repeated dependencies. The first principle of Mave
introduce snapshot mechanism on its own version management mechanism. Its dependencies support 4.x,2.+ such configuration rules to enable dynamic dependency (Note: Maven also supports similar rules, see Dependency Version Requirement Specification). Dependencies between sub-projects are based on a special dependency configuration, which differs from the configuration rules for third-party libraries. It is
. no need to install MAVEN plug-ins, but for versions below 4.4 You need to install the plugin yourself at the following URL: http://marketplace.eclipse.org/content /maven-integration-eclipse-luna, to understand the installation process, after the installation is complete,1. Find the MAVEN option in Windows->preferences, as shown inEclipse configuration mavenWe f
We have completed MAVEN installation and configuration, JDK installation and configurationNext, actually create the MAVEN type project in eclipseFirst, Eclipse "File"-"new"-"other ... "--" Mave "-" Maven Project "Group ID: Package NameArtifact Id: Project nameWhen you click DoneIi. setting up Maven vs. JDK versions1. I
Maven Learning (4): maven Learning
Yesterday, I said that a simple maven project was created in eclipse. Today, I will introduce the dependency scope and dependency transmission of the deployment package.
I. package dependency Scope
When we add a JAR package, the dependency label will contain a scope label. The value in this label indicates the dependent range o
Requirement: Create a servlet version 3.0,java version is 1.7 maven Web projectCreate an environment:System: Window 7Software: Eclipse, MavenTo create a step:1. Create a MAVEN project using the Eclipse tool and specify where the project is stored2. Choose to create a Web project and set the project's group ID, Artifact ID, package information3. Click Finish to generate the
"maven combat" Win7 configurationEditThe first thing to install is Jdk1.6 and Myeclipse7.5. 1. MAVEN has an important document "Settings.xml", this file from apache-maven-2.0.8/conf/, to be placed under window, Win7 and WinXP still a little different, Win7---C:\Users\ User name \.m2, WINXP---C:\Documents and settings\ user name \.m2.
configuration is as follows (for reference only) servers> server> id>linuxhhyid> username>hhyusername> password>hhy123PASSWORD> SERVER> SERVERS> 2> Through Wagon-maven-plugin, the project's war package is uploaded to the appropriate directory. After packaging is complete, the package is located in the target directory, in order to
========================================================QiujuerBlog: Blog.csdn.net/qiujuerWebsite: www.qiujuer.netOpen Source Library: github.com/qiujuer/genius-androidReprint Please specify source: http://blog.csdn.net/qiujuer/article/details/44195131--open source of learning, for open source, beginner's mentality, with June mutual encouragement!========================================================A good library wants to share with the world's partners, so it's shared on GitHub, and someone
The life cycle of MAVEN is abstract, that is, the life cycle does not do any actual work, the actual task is done by the plug-in, similar to the template method in the design pattern.Two or three sets of life cyclesMAVEN has three separate life cycles, clean, default, and site, respectively. Each life cycle contains phases (phase), stages are sequential, and later phases depend on the previous phases.1, Clean life cycle : Cleanup project, including th
Directory:1. Jsonobject Maven Dependency Package2, Idea introduced Maven has a red line, not dependent on3, Jsonobject no Fromobject\\\\\\\\\\\\\\\\\\\\\\\1. Jsonobject Maven Dependency PackageAltogether with one, but the function is all six, I also found on the Internet.Pom.xml as follows:2, Idea introduced
Tomcat has officially provided a MAVEN plugin for deploying MAVEN-based Web applications, different versions of Tomcat use different plug-ins, different versions of the use of the plug-in is also a certain difference, the details can be consulted http://tomcat.apache.org/maven-plugin.html . The following is the configuration process for deploying a
webxml attribute is required problem
MVN install a Web project, the error is as follows:
[ERROR] Failed to execute goal Org.apache.maven.plugins:maven-war-plugin:2.1.1:war
(Default-war) on project Com.alpha.webapp:Error assembling WAR:
webxml attribute is required (or pre-existing web-inf/web.xml if executing in Update mode), [Help 1]
[ERROR]
[ERROR]-See the full stack trace of the errors, re-run Maven with The-e SW Itch.
[ERROR] Re-run
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.