Learning notes: Maven constructs the version number to solve the browser cache problem, learning notes mavenProblems to be Solved
During WEB system development, in order to improve the performance, the browser's cache function will be used. In fact, even if the explicit declarative cache is not used, modern browsers will apply static files (js, css, images, and so on) cache. But it is also because of this problem that the cache logic of resources some
One: Build a maven project using MyEclipse1. Select Menu File, new, and other2. Select Maven Project3, the default selection, direct next4. Filter by entering WebApp in filter, then select Maven-archetype-webapp, then next5. Enter the group ID and Artifact ID. The group ID is the organization identity, the package name, the Artifact ID is the project name version
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 structure and pom.xml file of MAVEN contract.Hello| --src| -----Main| ----------Java| ----------Resources| -----Test| ----
Chen Kozhan-Welcome reprint, Reproduced Please indicate, thank you!==================In maven, we use archetype to create the project. In Ecelipse, we create the project through the New Project Wizard. The New Project Wizard in Eeclipse provides us with a large number of templates for creating projects. M2eclipse adds the following functionality to the wizard:1. Check out a MAVEN project from the SCM Wareho
maven Project automatically loads jar packs
The required tools are as follows: IntelliJ idea 13.1; Download Address: Please own Baidu search maven3.5, here is best to use apache-maven-3.2.1; Download Address link: http://maven.apache.org/download.cgi owns a maven project by default; The default is to install the JDK and configure the environment variables; becau
1 maven Installation
Before installing MAVEN, make sure that you have the JDK installed and that the environment variable JAVA_HOME is configured as well. The specific installation steps are as follows:
1. Download the package for the MAVEN project from the Apache web. The download address is: http://maven.apache.org/download.html. For example, now the latest
Modular maven project and mavenPreface
The modularization of the project facilitates the division of tasks, post-maintenance, and easy expansion. modules can also be independently deployed as services;Create a parent project with the packaging type POM
The maven plug-in I used is m2e. I believe most people installed m2e plug-ins in eclipse. If you don't talk nonsense, start directly:
Select create
When using Maven to create a project module, the directory created by default archetype template, and the default Unit test tool for JUnit 3.8.1, and some commonly used resource files directory, configuration file (for example: log4j configuration file, Web page development commonly used template file style files, etc. need to be created manually, copy, then how to customize a suitable for their own habits of the archetype?The
In the security and other reasons, some enterprise internal network is not allowed to access the external network, but the project is built within the MAVEN architecture, so that the enterprise in the internal network to build their own MAVEN warehouse services, Furthermore, some of the more distinct enterprise-developed components of large enterprises or in-house modular components will need to use the
Goal: There is a basic understanding of the build life cycle (build lifecycle), MAVEN Warehouse (repositories), dependency management (dependency management), and project object model. Currently not ready to delve into Maven so use tool Ideaj to help with learning, Create a default Maven project with idea, with the following structure: Related commands: Packagi
Importing a Maven project from Git, right-clicking the jar package that you want to update the MAVEN reference, and discovering that the right-click menu does not have a MAVEN menu item at all. What to do? Very simple, follow these steps:After importing from Git, right-click the project without the "Maven" menu item:Ju
The error is as follows in the packaging process:No compiler is provided in this environment. Perhaps running on a JRE rather than a JDK[INFO] Scanning for projects ... [INFO] [INFO] Using the builder Org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread Count of 1[info] [INFO]-------------------------- ----------------------------------------------[INFO] Building firstspringbootexample 0.0.1-snapshot[info]-------- ----------------------------------------
1. Download maven3.3.1 http://maven.apache.org/2. Unzip and put into the specified directory D:\eclipsetools\apache-maven-3.3.13. Setting the MAVEN environment variableBefore configuring the MAVEN environment, be sure to configure the JDK environmentmaven_home=d:\eclipsetools\apache-maven-3.3.1Path=%maven_home%\bin4, s
Maven command Download source code and JavadocsWhen using Maven in the IDE, if you want to see the source code and Javadoc of the classes in the referenced jar package need to download the source code through the MAVEN command and then introduce it, it is easy to achieve this with the MVN command:
mvn dependency:sources
mvn Dependency:resolve-dclass
what maven is.
A: Maven is a tool for project management and integration. MAVEN provides a complete set of build lifecycle frameworks for developers. The development team does not have to spend much time automating the infrastructure configuration of the project, because MAVEN uses a standard directory structure and a
Maven is often used for development in IDE. Currently, popular Java ides include eclipse and intellij. For Maven, we can divide the IDE into two types:
1. Eclipse and other Maven integrated IDE are not close enough.
The combination of eclipse and Maven is not good. If you want to use
(7) Best practices for Maven and best practices for maven
It is not necessary to use Maven, but some useful practices may solve your problem at critical moments.
1. Set MAVEN_OPTS Environment Variables
Generally, MAVEN_OPTS must be set to-Xms128m-Xmx512m, because the default maximum available memory of Java cannot meet the needs of running
1. Installing the M2eclipse PluginTo build a Maven project with Eclipse, we need to install the Meeclipse plugin firstClick the Eclipse menu bar Help->eclipse Marketplace to search for the plugin maven integration for Eclipse and click Install, such as:After installation, we'll click File->new->other in the Eclipse menu bar, and we'll see the following in the popup dialog box:2. Build a
reprint: http://www.iteye.com/topic/1123225? 1. Installing the m2eclipse plugin ??? to use Eclipse Build Maven project, we need to install first Meeclipse Plugins ??? Click the Eclipse menu bar help->eclipse Marketplace search for plugins Maven integration for Eclipse and click Install, such as: ??after the installation, we Eclipse in the menu bar, click File->new->other, in the popup dialog box, you wil
We have completed MAVEN installation and configuration, JDK installation and configurationNext, actually create the MAVEN type project in eclipseFirst, Eclipse "File"-"new"-"other ... "--" Mave "-" Maven Project "Group ID: Package NameArtifact Id: Project nameWhen you click DoneIi. setting up Maven vs. JDK versions1. I
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.