1. Create a new MAVEN project in IntelliJ Give a good example, (the business logic component UserService is omitted in this example) 2. Configuring Dependencies in Pom.xml includes: Spring-contextspring-ormspring-data-jpahibernate-corehibernate -entitymanagermysql-connector-javacommons-dbcpjunitspring-testThe code is as follows:3. Resources Right-click New an XML Configuration file--spring Config profile:
maven builds Javaweb projectCreate a new MAVEN projectDefaultDefaultTo a Web project, right-click Project PropertiesAfter the turn over the folder WebContent, the webcontent under the Web-inf, Meta-inf folder copy to the Src/main/webapp directory (no directory new folder), and delete the WebContent directoryRight-click
1. If you want maven projects to depend on another maven project, the dependent project must have corresponding jar packages in the maven repository. Therefore, you must execute the mvninstall command on the dependent project. 2.
Maven (maven Summary 2 of the project management tool series), maven Project Management
What is maven?
Download and install maven
Learn about mavenWarehouse
Configure
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
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
Some recent projects need to be managed by MAVEN, one of which is to add the previous Eclipse Java Project Project and Web project to MAVEN management, and another scenario is to pull the MAVEN
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
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
One of the MAVEN series is a brief introduction to MAVEN's basic information, installation and configuration, and everyone has a general understanding of MAVEN, but not enough in MAVEN project development, to learn more about MAVEN, now we introduce the creation of
Some recent projects need to be managed by MAVEN, one of which is to add the previous Eclipse Java Project Project and Web project to MAVEN management, and another scenario is to pull the MAVEN
Development environment:Eclipse Jee Mars (current version eclipse4.5 as of December 1, 2015): http://www.eclipse.org/downloads/Because this version already integrates the M2E plug-in, the Mars version of Eclipse is also relatively stable, can save some unnecessary trouble.I. Building a MAVEN Project
Before we build a Maven
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
Tags: org establishes cin eclips audio installation pre JPG hintMyecplise New MAVEN Project filter selectionBuild a MAVEN project using MyEclipse
1
2
3
4
5
6
7
Step through ReadingMAVEN is a management project, and MyEclipse is writing c
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
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
]------------------------------------------------------------------------[Info]total time:01:00min[info]finishedat:2015-10-27t20:00:17+08:00[info]final Memory:10M/54M[INFO]------------------------------------------------------------------------It compiles, runs unit tests and packages the project into a jar file, and puts it in the Project/target folder. If there is an error:error:unable to locate the Javac
Use the Maven Archetype plug-in to build a Maven project prototype template, archetypemaven
Create a prototype Template
1. Run the command archetype: generate in an empty directory. After downloading the necessary jar package, enter the built-in Prototype number;
1 Choose archetype: 2 1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An arche
This section describes the dependency scope of Maven:
In the scope of the Pom. xml dependency label. In eclipse, there are compiling paths, Maven paths for compiling, running, and testing.
1. Scope is test, which is the test path. Most of them are JUnit jar packages.
2. the scope is compile, which is the default level and is effective during compilation and testing.
3. scope is provided, which is valid dur
This tutorial shows you how to create a generic Java/maven project from a MyEclipse Web project, or any other MAVEN project. These steps include the creation of the foundation and the use of MAVEN dependencies. You will learn to:C
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.