When Eclipse builds the SSM Framework project (Web project) through Maven, the default web.xml file version is 2.3,JRE version 1.5, and there are various issues in modifying its versionFor example:web.xml Is missing and is set to truejavaserver Faces 2.2 can not is Installed:one or more constraints There are not been satisfied. JavaServer Faces 2.2 requires dynamic Web module 2.5 or newer issues When yo
dependent jar different versions download process
Specify version
Download release or latest directly after you find it in the repository
You must first download maven-metadata.xml from the repository and then get the latest release or latest version number, and then download the corresponding jar based on this version number.
Note: If you do not specify a version number, the default is release version, here is not only applicable to dependency also
defined by profile
(1) The profile configuration for a specific project can be defined inProjectIn pom. xml. (The following is an example)
(2) for specific user profile configuration, we can define the profile in the user's settings. xml file. The file is in the. m2 directo
1, Web. XML is missing and the most frequently answered text is as follows:This is a maven error. It says that it was expecting a Web. xml file in your project because it was a, the application by indicated>warThe main idea is that this is a MAVEN error, which has become dis
Label: Maven properties Maven build clean package
Today, when packaging the war file of the project, I suddenly found that the properties file in each action package was not included. After reading the file online for a long time, I finally found a solution.
Problem: The pr
First, make sure that the package you chose to create the MAVEN project is the warThere is no web. xml file and associated folder after creation, error message: Web. xml file missingWorkaround:Right-click the MAVEN project, find p
Reference http://mianhuaman.iteye.com/blog/1105522Content of the Web. xml file for this projectDetailed Web. xml fileFirst, the outset1. Each time a Web project is launched, the Web container reads its config file, XML, and reads 2. Immediately after the container creates a
can use user input, which is true by default;Usepluginregistry: A value of True/false,true indicates that MAVEN uses the ${user.home}/.m2/plugin-registry.xml management plug-in version, which defaults to false;Offline: A value of true/false,true indicates that the build system executes in offline mode and defaults to false; plugingroups
Each Plugingroup element contains a groupid that will be used when you do not provide a plug-in GroupID on the comm
I have been writing projects these days to find that my previous projects can access, in a period of time to write this project is not able to access, did not find the logic of the code error, but is not access to JSP page, the project was released is a 404 error, and later found that it was released to Tomcat above the project did not publish index.jsp with the Web. xml file, the Lib package is not even pu
When I reinstall myeclipse7.0 and obtain the code again, the following error occurs:
11-2-10 09:57:31 A.M.: [info] user settings file does not exist C:/Documents and Settings/zhangsb/. m2/settings. xml11-2-10 09:57:41 A.M.: [info] user settings file does not exist C:/Documents and Settings/zhangsb/. m2/settings. xml11-2-10 09:57:49 A.M.: Unable to update index for the central http://repo1.maven.org/maven2/S
: The difference between releases and snapshot, release is generally a more stable version, and snapshot is basically unstable, just as a snapshot)
Properties
MAVEN's properties are used as placeholder values, such as Ant's Properties.
Includes the following 5 types of values:
Env. X, returns the current environment variable project.x: Returns the element value defined in the POM, such as project.version settings.x: Returns the element Java defin
Usually we will have multiple system environments, for which there should be different configuration files, usually in Maven we pack only jars, Pom, maven-plugins, war and ear. In order to be able to package the configuration files of different environments at the same time, we select Maven-assembly-plugin to package t
1. How to add a configuration file for Web. XML to the war project in ideaThe idea of creating a war project through Maven did not specify a folder that was WebApp caused the project to be created without webapp. In fact, the War project is under the "Project name/src/main" directory.Just create a webapp/web-inf/web.xml under this project.2, if you do not put the
Maven 's assembly plugin uses:Recently doing a small project, using Java to start running. assembly will need to use the jar Span style= "font-family: ' The song Body '; > are packaged into a jar When you specify mainClasson the configuration, you canrun the main function of java without specifying the containing main The classpath name of the function. It is very easy to run the following jar file
New MAVEN ProjectCreate a new Maven project:
The POM defines the smallest maven2 element, namely: Groupid,artifactid,version.
GroupId: A unique flag for the project or organization, and the path generated by the configuration is also generated by this, as the relative path generated by Org.codehaus.mojo is:/org/codehaus/mojo
Artifactid: The gen
Org.apache.maven.lifecycle.internal.MojoExecutor.execute (mojoexecutor. java:209) ... More[ERROR][ERROR][ERROR] For more information on the errors and possible solutions, please READ The following articles:[ERROR] [Help 1] Http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExcEption[ERROR][ERROR] After correcting the problems, you can resume the build with the command[ERROR] mvn Solution: In Maven's pom
You need to restart the server to modify information in the web environment. If you often restart the server in a large project, you can imagine the waste of time. Today we will introduce spring boot! Generally, learning begins with hello world! The following describes how to configure and use spring boot in maven!
Configure pom. xml first,
Xsi: schemaLocat
In Maven's Pom.xml file, the build-related configuration contains two parts, one is
1. In the Pom.xml document of Maven, there are two types of
Description
A
The profile build contains the basic build element, and the project build contains two special elements, the various ... Directory> and
2. The basic build element shared by profile and project build
1) Examples are as follows:
Description: Def
Search site:maven.apache.org Maven-assembly-pluginHttp://maven.apache.org/plugins/maven-assembly-plugin/usage.htmlAll goals except Assembly:single has been deprecated.The above cannot be used, the following can be.http://maven.apache.org/plugins/maven-shade-plugin/ExamplesExecutable JAR1. Pom.xmlProjectxmlns= "http://maven.apache.org/
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.