Requirements:
When Maven compiles the project, the amount of code, that is, the number of files in the project, the number of lines of code, including the Java files and configuration files Two, where the configuration file (SQL, XML, properties) lines/4 processing.
To Create a project:
First make sure that the M2eclipse plugin is installed: http://eclipse.org/m2e/
Eclipse-new-
First, in Eclipse, right-click on the project name that needs to be packaged, and then point the mouse cursor to "run as" in the Popup box:Second, you will see a floating window appears on the right side of the popup box, as follows:Third, on the top of the second hover window mouse click "Maven clean", MAVEN will erase the previous package information on the project, after execution in the Eclipse console
Blogger's operating Environment: computer systems: Linux Mint JDK Version: Java Edition "1.8.0_171" maven version: Apache maven 3.5.31, about the generation of war packages: , this is a multi-module project, is divided into front and back end, the resulting war package will be generated in the Web Part, but the Web Pa
Original blog from: http://blog.csdn.net/liutengteng130/article/details/42879803 thanks!Prerequisites1. Why use two war package calls? because we Maven project each War package is a line, front desk with Easyui, and each line to refer to Easyui related js,CSS , and there are some other styles. In order to take out these repetitive things, I made a
Environment: Struts 2.3.16.3 + Convention Plugin 2.3.16.3 for Zero ConfigurationSymptom: When deployed as a folder on WebLogic (10.3.3), everything is fine, switch to the war package deployment, and the run-time prompt cannot find the actionWorkaround:1. Check if there is a meta-inf directory under \web-inf\classes\ in the generated war package, and if not, place
Maven and Maven plugin installationBenefits of using maven :
I feel the most important is automatic download Jar Packages and the packages it relies on to ensure that multiple people develop Jar different versions of the issue.
Then the file structure is clear, Java files, resource files, and test files a
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
maven:http://maven.apache.org/Download complete unzip to D disk directory D:\apache-maven-3.5.0\binTo configure the MAVEN environment variable:M2_home D:\apache-maven-3.5.0\Maven_home D:\apache-maven-3.5.0Path;D: \java\apache-maven-3.5.0\binConfiguration cmd Administrator ri
Hits: 739Three types of projects in Maven:1.pom Engineering: Used in parent engineering or aggregation engineering. The version control used to make the jar package.2.war Engineering: A project that will be packaged into a war and published on a server. such as websites or services.3.jar Engineering: It will be packaged as a jar for use as a jar package.Take Amoy
before using Eclipse to test MAVEN's Web project, you can automatically publish your workspace's Web project code to "F:\IWorkspace\.metadata\" by clicking on "Clean" in the Eclipse internal Tomcat right button. Plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps "This path is very convenient. If the war package deployed in Tomcat chooses the "Add External Web Module", then the test is going to cry. The MAVEN
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
Prerequisites1, why to use two War a call to a package? because weMavenitems perWarThe package is a line, the front desk withEasyui, and each line has to be referencedEasyuirelated toJS,CSS, and there are some other styles. In order to pull out these repetitive things, I hit aWarbag, put these things in. 2. Why not use Jar where's the bag? hit a common jar Package, the resources into the, but can not be quoted. Time was urgent and no other solution w
After work to learn to build MAVEN project, Export War package is a variety of errors emerge. Let's share the process of exporting the war package below.
Method One: Pure manual export
First get the project sorted out, and then go to the war package.
1, right key project name, select Maven4myeclipse, select Update
One: Maven official1, https://maven.apache.org/download.cgi2. Unzip the directory structure as followsTwo: Add MAVEN environment variables1. Add Maven_home2, add maven_home under PathThird, test whether the installation is successful1, enter mvn-version at the command line, the following prompt indicates successIv. myeclipse Add maven Plugin1. Select the preferen
Before using Eclipse to test MAVEN's Web project, you can automatically publish your workspace's Web project code to the F:\IWorkspace\.metadata\.plugins\ by clicking "Clean" on the inside of the Eclipse Tomcat right button. Org.eclipse.wst.server.core\tmp2\wtpwebapps "This path is very convenient. If the war package deployed in Tomcat chooses the "Add External Web Module", then the test is going to cry. The MAVEN
Preface:today I installed the MAVEN environment in my own environment, and installing the Eclipse plug-in, I did encounter some problems in the process of finding the plug-in, but found a problem.after the plug-in is installed, creating a MAVEN project with Eclipse has two questions, summarizing some of them and making it easier for other friends to solve the problem.one, the installation of the
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
A dependency reference between two Web projects. The Web project is referenced by the way the war package is used. For example, there are two projects, Puzzle-web and Puzzle-web-demo, and two are Web projects, and Puzzle-web-demo depends on Puzzle-web, which is configured as follows.(1) Puzzle-web Configuration of package in Project Pom.xmlA, compile the plug-in version to use 2.4, otherwise, you can appear in the
Configure Pom. XML in Maven packaged as a war package
(1) complete configuration: This is the complete configuration of servlet, similar to others.
(2) When an error is reported in the project:Web. XML is missing and You need to add the following configuration in POM. xml:
(3) In the project, specify the JDK version in POM. xml. By default, the JDK version in Maven
A dependency reference between two Web projects. The Web project is referenced by the way the war package is used. For example, there are two projects, Puzzle-web and Puzzle-web-demo, and two are Web projects, and Puzzle-web-demo depends on Puzzle-web, which is configured as follows.(1) Puzzle-web Configuration of package in Project Pom.xmlA, compile the plug-in version to use 2.4, otherwise, you can appear in the
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.