As work needs to begin to get familiar with Java recently, this kind of open-source things is the first touch, and there are too many things to be familiar. Maven is the most famous one. It is said that it can improve the efficiency of the project from compilation to packaging and publishing. However, it is quite troublesome to use, so you have to learn.
Some domestic blogs have descriptions of Maven, but t
Maven builds a single module in a multi-module project separately. maven builds a module project
Recently, multiple maven modules have been used in a company project. Because the project is large, it takes too long to build the entire project after each modification. You need to build a module separately. mvn has the following options:
-pl, --projects Bu
Maven Learning (2): maven Learning
The m2eclipse plug-in was installed on eclipse in the evening, and then a small project was created using maven for testing. However, several problems occurred during the test. Now, let's briefly summarize:
The project is to add hibernate support, and then use junit to test and add a piece of data.
The project structure is as fo
I. Description of the problem
When using eclipse as a Maven project, sometimes updating the project or running the pom file may cause eclipse to fail to introduce the MAVEN library, and then report many JSP or other errors.
When I was using eclipse in my Mac, I ran into this error and started looking for a lot of things that didn't work out until I knew it was because
Download jdk and maven installation from vmware to Linux, and jdk maven Installation
Preface: personal summary. If any, please point out
Operating Environment:
Operating System: Windows 7 Enterprise Edition
Processor: Intel Core i5-4200U CPU @ 1.6 GHz
Memory: 8 GB
System type: 64-bit Operating System
Files to be installed:
Ubuntu: http://mirrors.yun-idc.com/ubuntu-releases/14.10/ubuntu-14.10-desktop-amd64
In the previous section, we talked about the installation and configuration of Maven, and in this section we'll learn to create a simple MAVEN project
1. Create a simple MAVEN project with the MAVEN command
Run the following command in CMD: C code mvn archetype:generate-dgroupid=com.mycompany.app-dartifactid=my-app-sim
Build Maven private server and maven
Recently, the company's personnel revolution has resulted in the departure of a group of employees. I feel a sudden increase in pressure. I am working on android and want to work on the background interface. It's a little hard. It's already 30 minutes, there are still various kinds of hard work, but as a technical control, such happiness cannot be understood by others. I
Errors frequently encountered in maven and maven
1. eclipse cocould not resolve archetype. This occurs when you select archetype when creating a project in eclipse:
An error occurred when creating a maven project:
Cocould not resolve archetype org. apache. maven. archetypes: maven
Maven Repository Information Analysis site recommendation, maven repository information site
Maven is a dependency of java. It is a packaging and management tool. maven is required for a slightly larger java project.
As java grows, maven repositories become larger and larg
MAVEN Configuration Environment PC Environment :windows (Linux configuration is similar) JDK: Requires more than 1.5 versions ide:myeclipse (using the same as other, for example IntelliJ, here I take myeclipse for example)Maven Download Download the latest version of Maven at www.apache.org. (I'm using maven3.3.1.) After the download is complete, unzip and place
Actually in the work, I used maven for a long time, but the recent development environment without MAVEN, so again. For later convenience, write down the general steps in this.1. Download the MAVEN installation packageDownload Apache-maven-3.2.3-bin.zip and unzip to the specified installation directory2. Configuring th
First spit, I stepped on a lot of pits, tears, ah, because not familiar with Maven, there are eclipse bugs, online article information asymmetry ... Well, back to the point, we need to be like this: A project is made up of multiple projects. Because the project is complex and large, it is better to divide it into multiple subprojects (or engineering). So the question is, how do the dependencies of the parent and child engineering work? What to do wit
wrong, because testng forces you to provide the classifier to differentiate Jdk14 and jdk15, and we need to declare this dependency on testng:
You will notice that MAVEN has downloaded a file named Testng-5.7-jdk15.jar. Its naming pattern is actually
The classifier also has a very useful purpose: we can use it to declare a dependency on the test component, for example, we declare some basic classes in the Src/test/java of a core module, and then
Maven default cycle and plug-in, Maven default cycle plug-in
Run cmd
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
This archetype (Template) is a plug-in, and generate is the target command (goal)
The plug-in integrates several goal collections.
Maven Dependencies and mavendependencies cannot be found in Maven projects of eclipse.I have come back for food. Stupid birds do not have to fly first, but they must stick to it.
Record a primary error today
For example, we create a maven project in eclipse to run our web project.
After the project is built, all javax-servlet packages report errors.
I don
First, the Environment preparationTwo serversJenkins Server yum install and configure MavenTomcat Server Tomcat version apache-tomcat-8.0.33.tar.gzJDK version jdk-8u77-linux-x64.tar.gzTomcat to deploy the manager project with Tomcat rights supportTomcat Tomcat-users.xml as configured650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/02/wKiom1hBIXOTwpTqAAAMEXLlYZM251.png "title=" Tomcat Configuration "alt=" Wkiom1hbixotwptqaaamexllyzm251.png "/>The username and password here are consis
Delivery dependency is one of the most distinctive and convenient features of Maven, and can save a lot of configuration. such as a dependent b,b dependency C default A will also depend on C. But there are also pitfalls, such as version conflicts. Of course, MAVEN also considers the solution, you can use exclusions to exclude the corresponding repeat dependency.But we also have a serious problem, and that i
1: Configure MavenDownload from the official website and add the bin directory to the system variable path.In the cmd window, enter MVN, and the execution feedback is configured successfully.Configure the Conf/settings.xml file to specify the repository center to download to a local directory2: Experience maven in IntelliJCreate a new Java project and choose Maven, all the way next.Build a good root directo
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.