Idea is packaged in three ways:
1, through the idea of the function of a step-by-step construction, more cumbersome;
2, through the Maven-shade-plugin plug-in packaging;
2, through the Maven-assembly-plugin plug-in packaging;
Here's the simplest way to do this: package with the Mav
The previous article said the approximate process and the effect we want to achieve. This article is mainly about the detailed configuration.In fact, just once, it feels very simple. Only two files need to be configured.Pom.xml and ${project.artifactid}-maven.pro These two files can be. Where the Pom.xml configuration plugin is used, the true optimization option is configured in the ${project.artifactid}-maven.pro file.Let's take a look at the complet
Step One:register your account and apply for ticket. Register here: https://issues.sonatype.orgApply ticket: Create a issue, note here to choose OSSRH, and is Project rather than Task,group ID to be careful to write, can not write you do not have permission, or the service will let you rewrite(half a day or so)。After successful application, you will be prompted: The Configuration has been prepared, now you can:please comment in this ticket when you promoted your first release, ThanksStep Two:GPG
The plugin's maven dependency is:
The document address of the plugin is:http://www.mojohaus.org/wagon-maven-plugin/
Mainly provides the following several goalWagon:upload-single uploads the specified file to a remote location.Wagon:upload uploads the specified set of files to a remote location.Wagon:download-single d
An error in Eclipse's tip in its pom file is as follows:Plugin execution not covered by lifecycle Configuration:org.apache.maven.plugins:maven-compiler-plugin:3.1:compile ( Execution:default-compile, Phase:compile)This means that M2E does not define the plug-in when it executes the MAVEN lifecycle management, so there is a hint of an error, in fact M2E provides an extension mechanism, and we can eliminate t
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
The "Org.springframework.boot:spring-boot-maven-plugin" plugin was added to the OM file. After the plugin is added, when the MVN package is run, it is packaged as a JAR file that can be run directly, and can be run directly using the "Java-jar" command. This simplifies the deployment of the application to a great exten
A new set of MAVEN Web projects was recently created with IntelliJ idea, running with Tomcat7-maven-plugin (running the program directly, not the war package). The project integrates the Spring MVC framework, and the processing of JSP pages relies on the following two jar packages: Dependency>groupId>javax.servlet.jspg
, @parameter injected in this way, and now looks very primitive, but Maven3 will be migrated to Guice.
2.MOJO
MAVEN does the task by life cycle and goal, such as Maven install actually shifting a variety of goal. Each task in the plug-in is goal called a Mojo (Maven plain old Java Object). Every mojo in the project implements the Org.apache.maven.plugin.Mojo int
Here's a good article about the Maven plugin and lifecycle:
--------------------------------------------------------------------------------------------------------------- --
This is not really a complex problem, but there seems to be no information on this clear explanation, this article will be a detailed explanation of this question.Background KnowledgeThe process of building (build) is abstracted and de
In actual development, the project manager always tells the developer: what kind of conventions to follow when developing, how to name the specification ....
The agreement is superior to the configuration, it is very important! A more regulated company (or project team) will write the specification to the document and let the developer follow it.
The question is, how can we know if everyone has gone according to the standard? Someone will say, find a tool to check it on, there are many open so
embedded Apache Tomcat7.This is a supported with the TOMCAT7 plugin.Note Your project must has a packaging value of pom or war.Artifact to add to your War module:Artifact to add to your POM module:Tomcat7-maven-pluginexec-war-only PackageServerxml>src/main/tomcatconf/server.xmlGenerated executable Jar/warWith the above configuration you can execute the generated
to access the appPort is the port number of TomcatUriencoding URL by UTF-8 encoding, this solves the Chinese parameter garbled.The Server specifies the tomcat name.The configuration is so simple, basically fixed, below to see how to use.Note: After booting, Tomcat will first load the jar under its own lib, and if there are repeated errors in the project, change the scope of the corresponding dependency under Pom.xml to providedPlugin RunIf eclipse installs the
Use MAVEN to package a Web project by default, but there are times when you always want to make a zip package (or other compressed package), and the Maven-war-plugin plugin is powerless, and then you use the Maven-assembly-
An error in Eclipse's tip in its pom file is as follows:Plugin execution not covered by lifecycle Configuration:org.apache.maven.plugins:maven-compiler-plugin:3.1: Compile (Execution:default-compile, phase:compile)This means that M2E does not define the plug-in when it executes the MAVEN lifecycle management, so there is a hint of an error, in fact M2E provides an extension mechanism, and we can eliminate t
Chinese parameter garbled. The Server specifies the tomcat name. The configuration is so simple, basically fixed, below to see how to use. Plugin Run if eclipse installs the Maven plugin, select the Pom.xml file, right-click and select Run as--> maven build. If this is the first time, the following dialog box
I used Hudson to deploy my Web project to tomcat on the test server in my usual work. The Hudson itself is integrated with SVN, Git, MAVEN, and supports the addition of various plugins. But if you use Hudson, I need to configure two tasks: one to package the project into a war, and the other to deploy the packaged war package to Tomcat on the target server. Altho
integration test is finished. The default start container ends at the end of the Maven life cycle, and sometimes, for debugging convenience, you can call Cargo:run to start the container and deploy the app, and then run it through CTRL + C when needed.In order to implement container start-up and deployment automation, you also need to provide some configuration parameters to plug-ins, here is an example, c
\admcnm\.m2\repository directory,Now let's modify to assign it to our own path, for example now to assign the warehouse to the D:\Repositories\Maven directory, just open the local repository that was logged off, and then write the corresponding path value inside:
There are two of the most common ways that Eclipse installs plug-ins:Offline installation, the way to install the link, this way can be better,
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.