select the Spring MVC Project template.
3. STS will download the corresponding template.
4. Name your top-level package (for example, org. munif. app) and click Finish.
5. Observe the structure of your project and make an inexplicable error in your project. That's right. Because we have not used
Use MAVEN to manually create a web project and mavenweb Project
Problem: for example, when using maven to create a webapp project, the archetype maven-archetype-webapp is used by default. This archetype type is old and has the fol
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 other modelRight-click Kk-manager-service module
example:hellospringmvc) and select the Spring MVC project template. 3, STS will download the corresponding template. 4. Name your top-level package (for example:org.munif.app) and click Finish. 5, observe your project structure, your project will produce inexplicable errors. That's right. Since we have not yet used
, our project has been shaped to look like: Next, we want to refine the project's directory, configuration.2. Perfecting the projectFirst, complete the directory, add the important source folder, this is not a simple floder, these folders will be involved in the compilation. Add Src/main/java,src/test/resources,src/test/java directory. Make the catalog into a standard MAVEN
directory, configuration.2. Perfecting the projectFirst, complete the directory, add the important source folder, this is not a simple floder, these folders will be involved in the compilation. Add Src/main/java,src/test/resources,src/test/java directory. Make the catalog into a standard MAVEN structure. Such as: Next, change some of the configurations:Let the JDK of the
: HELLOSPRINGMVC) and select the Spring MVC project template.3, STS will download the corresponding template.4. Name your top-level package (for example: Org.munif.app) and click Finish.5, observe your project structure, your project will produce inexplicable mistakes, that is right. Because we haven't used
warehouse, and when the local warehouse lacks the dependencies required by the MAVEN project, MAVEN will download the corresponding package from the remote repository to the local This is the relevant provisioning for maven and you can now create the first MAVEN Web
It's still good to get Maven into the project, even though those tags are a pain in the balls, but for the best, it's nice to have a biteRight-click on the project, Configure this will see convert to Maven, then click on this to give the project an IDYou can use more than on
File structure description:
Project Build lifecycle:
Clear
Compile
Test
Package
Run
Deployment
Cleaning and compilation
Hello \ pom. xml
POM: Project Object Model, Project Object Model
Pom. xml is similar to ant build. xml.
Note:
ModelVersion: Specifies the
Eclipse+maven Create WebApp project 1. Open Eclipse, right-click new--"Other, if you find Maven project2. Select Maven Project, display the window to create the MAVEN project, tick, cre
Transferred from: http://www.cnblogs.com/yuxiaoyu/p/5948535.htmlEclipse+maven Create WebApp project 1. Open Eclipse, right-click new--"Other, if you find Maven project2. Select Maven Project, display the window to create the MAVEN
Reprint please indicate the source: http://blog.csdn.net/qq_26525215This article originates from "University trip------familiar with the blog of Memory"
First, the project must be a MAVEN-configured project.
Added a publishing plug-in to implement it.Add the following code to the Pom.xml of the project:
Added a packa
1.create Project2. Select Maven Web3.groupid Artifactid Settings4. Set up mavenThe properties add a parameter archetypecatalog=internal, without this parameter, will be very slow when Maven builds the skeleton, and sometimes it will get stuck directly. Archetypecatalog represents the plug-in uses the archetype metadata, does not add this parameter when the default is Remote,local, that is, the central wareh
java and maven environments are correct.
The following shows that the configuration is correct:
3. Create an Eclipse project using Maven
1. Modify the repository location(The repository is used to store all jar packages that our project depends on)
In notepad, open the/conf/setting. xml file in the
After importing a MAVEN project, we found a following error:Project configuration is not a up-to-date with pom.xml. Run Project Configuration UpdateWorkaround 1:Older versions of Eclipse:Right--"maven"--"Update Project Configuration ..." will open a dialog box (update
Do not use the plugin that comes with springboot, because this package will be packaged in the Spring-boot directory to cause other project references to not be referencedModify the following locationInstead, use this plugin: Plugin> Artifactid>maven-compiler-pluginartifactid ; version >2.3.2 version ; configuration ; >1.8 source target >1.8 target ; configuration ; plugin ; Resolve i
introduced into the project through dependency, but too much reliance can create a series of problems, such as inconsistent versions, version conflicts, and dependencies. At this point, MAVEN provides a particularly good solution, which is to accurately locate a component through a coordinate system, In other words, using a set of coordinates to find a unique Java class library, with the help of the coordi
Original link: 52506389Eclipse Import Maven Project, right-click No build path Workaround:Because the. project file is missingIn addition, if the project does not compile automatically, you need to add the following configuration in the. Project file:Eclipse Import
local warehouse location for Maven is ". M2/repository" under the current user's working folder, which will cause more and more files in this folder during use. Occupy more and more space, so generally we will change to other disk folder. Need to do two steps. The first step. In the D-disk build folder for storing files (here I have created "D:\maven-3.3.3-bobo\repository" this path file), the second step.
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.