Converting a common Java project into a MAVEN project is not a very big task, it only takes the following steps to make the conversion successful. Here I use a simple selenium test small demon as an example.
Move all associated libraries in a project
Convert a selenium
The reason: Eclipse did not find Maven dependencies after introducing the MAVEN project. Make the code error, as shown in the following figure:
and the normal MAVEN project is this.
To solve the problem, reload, so that the Maven
can only configure TOMCAT6, Can not configure TOMCAT7 and other high version, in fact, this is also a solution, and later.If we use the MAVEN plugin to develop, some people will use the jetty plug-in or the Tomcat plugin to deploy the application, if the deployment of the application has some problems, such as: we sometimes need to find in the Web container is not successful deployment, and so on, if the use of plug-ins at this time, it may be a bit
TOMCAT7 and other high version, in fact, this is also a solution, and later.If we use the MAVEN plugin to develop, some people will use the jetty plug-in or the Tomcat plugin to deploy the application, if the deployment of the application has some problems, such as: we sometimes need to find in the Web container is not successful deployment, and so on, if the use of plug-ins at this time, it may be a bit inconvenient, It would be useful to have a mye
Recently, I wanted to build a simple framework of spring mvc+mybatis+oracle based on MAVEN management, but I was frustrated when I was working on eclipse, and then I found that we could start with the MAVEN project in the folder and then import Eclipse. To say nothing, step through it until I have the MAVEN
custom configuration, whether to download the source code, whether to download the Javadoc file, according to the need to tick the application can be.
Configuration Complete! The next step is to build the MAVEN project.
Start building a MAVEN project
1. Create a new
1. What is Maven
Apache Maven is a project management and integration tool. Based on the concept of engineering object Model (POM), through a central information management module, Maven is able to manage project builds, reports, and documentation.
The
settings to Cfon/settings.xml under the MAVEN project, OK.
Create a new Web project, tick add Maven Support,java version to be at 1.7 and above.
Then go all the way to the project structure and choose MAVEN's
-and/application/apache-tomcat-7.0.692, 3, 3 configure Tomcat environment variables[Email protected] application]# echo "Export Tomcat_home=/application/tomcat" >>/etc/profile#查看 new additions to the/etc/profile file[Email protected] application]# tail-1/etc/profileExport Tomcat_home=/application/tomcat2, 3, 4 make the environment variable effective#保存之后, execute the following command to make the configured environment variable effective[Email protected] application]# Source/etc/profileThird,
install the Eclipse Maven pluginConfigure Maven
Configuring the MAVEN installation directoryOpen window–> perferences–> maven in turn, expand MAVEN's configuration interface, such as;Then click installations–> Add to select the Maven install directory, here my
Maven Learning Summary (ii)--maven project building process ExercisesThe previous article was just a brief introduction to MAVEN's knowledge of getting started, this article is about the process of building a project with MAVEN's highly automatedI. Create a MAVEN
Step by step, we will teach you how to share an open-source project to the Maven central repository and an open-source project maven
Welcome to my Sina Weibo:Http://weibo.com/kifile
Reprinted please indicate the sourceHttp://blog.csdn.net/kifile)
I believe many programmers have written more or less some common library
Java-maven project management and maven Project Management
Maven is a software project management tool based on the project Object Model (POM). You can use a short description to mana
1. Create new module, choose Maven on the left, check create from archetype on the right, and find Maven-archetype-webapp in the middle.2. Fill in GroupId and ArtifactidGroupid:the Unique identifier of the organization or group that created the projectArtifactid:unique base name of the primary artifact being generated by this projectGroupId is similar to the project
install the Eclipse Maven pluginConfigure Maven
Configuring the MAVEN installation directoryOpen window–> perferences–> maven in turn, expand MAVEN's configuration interface, such as;Then click installations–> Add to select the Maven install directory, here my
] [INFO]------------------------------------------------------------------------[INFO] Building Maven Stub Project ( No POM) 1[info]------------------------------------------------------------------------[Info][info] >>> Maven-archetype-plugin:2.4:generate (DEFAULT-CLI) > generate-sources@ standalone-pom >>>[INFO][INFO] In the above scenario, a new Java
the pom.xml and SRC directories, such as:The full directory structure is as follows:Isn't it amazing?Magic to Magic, just that command so complex, what does it mean, what is the operation? Don't worry, we'll take a slow look.First, you have just executed a maven target of "archetype:generate" and passed different parameters to that target. "Archetype" is a plugin that contains the goal of "generate". If yo
The previous article was just a brief introduction to MAVEN's knowledge of getting started, this article is about the process of building a project with MAVEN's highly automatedI. Create a MAVEN project 1.1, build a Hello Project1. First build the Hello Project, and set up the directory
How to Use maven to build a web project and maven to build a web project
It has been registered in the blog Park for more than 20 days and has not yet written a blog. Today, I will publish an article to facilitate searching for notes later.
I have personally developed java web for several years. Since my company is a b
Tags: MoD compilation record view error click Control Lips IntroductionHow Eclipse imports MAVEN projects has been a problem for a lot of program apes and beginners, and it's a pain to use eclipse without knowing how to import Maven projects. Do not worry about the small part today brings you detailed Eclipse import Maven pro
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.