The following error occurred today in a new Web project:
Failed to read artifact descriptor for Org.apache.maven.plugins:maven-resources-plugin
Eclipse's error tips are as follows:
Could not calculate builds Plan:plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies Coul D is resolved:failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies
Automatically download all required dependent libraries with the help of Maven dependency mechanism and keep the version upgrade.Case analysisLet's look at a case study to see how it works. Suppose you want to use log4j as the log for the project. What are you going to do here?1. In the traditional way
Visit http://logging.apache.org/log4j/
Download the jar library for Log4 J
Copy jar to project Classpath
To manually include it in
Maven is a cross-platform tool. It is not only a build tool, but also a tool for managing dependencies.It eliminates duplicates of components and provides a central repository, which can help us automatically download components.---------------------------------------------------------------------Any component in the world can be uniquely identified by Maven coordinates.Groudid: defines the actual project t
Error One:1.eclipse, when Maven test, error:-dmaven.multimoduleprojectdirectory= $M 2_home)2. Workaround:You can set up an environment variable m2_home point to your MAVEN installation directory m2_home=d:\apps\apache-maven-3.3.1 and then in window->preference->java->installed Jres->edit Setting the-dmaven.multimoduleprojectdirectory= $M in the default VM argumen
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 archetype which contains a sample archetype.) 3 2:
Maven repository category, maven Repository
MAVEN repository category
Maven repositories can be divided into local warehouses and remote warehouses.
Remote warehouses are divided into central warehouses, private servers, and other public remote warehouses.
1. In Maven, an
Preparation steps? 1. Install maven and download unzip. ? 2. Modify the ? 3. Modify the settings.xml ? If you use the MVN command line to create, build, and run a MAVEN project, you need to configure the environment variable, which points to maven_home/bin. Once configured, you can view the MVN command:Because of the cumbersome use of commands, I use the Maven pl
In the previous blog with their own words of saliva to say a bit of MAVEN, here will need to know what to put forward, for the back of the blog to prepare.0. InformationThe best information to learn maven is the official site, followed by the search component is the central warehouse, the actual use can be used in the OSC image can also be self-built private warehouse cache (recommended to build a private w
Maven (3)-use intellij idea to create a maven web project, intellijmaven
This article uses an example to describe how to use maven to build a web project. Development Tool: intellij idea.
1. Create a maven Project
Select Create from archetype. Create a project from an existing mav
General MAVEN needs to be integrated into the IDE instead of being used alone, and common Maven integrates ide:eclipse, IntelliJ idea. But here's a MAVEN environment configuration based on just learning about eclipse integrated maven.
Installation of the Maven plugi
Tomcat has officially provided a MAVEN plugin for deploying MAVEN-based Web applications, different versions of Tomcat use different plug-ins, different versions of the use of the plug-in is also a certain difference, the details can be consulted http://tomcat.apache.org/maven-plugin.html . The following is the configuration process for deploying a
webxml attribute is required problem
MVN install a Web project, the error is as follows:
[ERROR] Failed to execute goal Org.apache.maven.plugins:maven-war-plugin:2.1.1:war
(Default-war) on project Com.alpha.webapp:Error assembling WAR:
webxml attribute is required (or pre-existing web-inf/web.xml if executing in Update mode), [Help 1]
[ERROR]
[ERROR]-See the full stack trace of the errors, re-run Maven with The-e SW Itch.
[ERROR] Re-run
: Restart Eclipse, open the view mode, select the SVN repository study, and then you can connect to the remote SVN repository operation.Configuring the MAVEN EnvironmentStep one: Follow the steps below to get into MAVEN's configuration, which is similar to the configuration of the JDK. Window-->preferencesEnter MAVEN in the search box, then go to the following interface, select Installations, then click Add
Now the latest Eclipse Luna Release has built-in Maven plugin, which makes our work a lot more concise, as long as the project directly into the can, regardless of the plug-in problems, but after the import of the project can be deployed in Tomcat can also be deployed on the jetty server , the following is the debugging process.I. Development environmentJava:jdk7Eclipse:eclipse Java EE IDE for Web developers, Version:luna Release (4.4.0)
Intellij idea as the best Java IDE, it's easier to create a MAVEN project, but to create a MAVEN Web project or to modify some of the configurations, let's summarize them.1 PrefaceIn the project creation, IDEA provides a number of project templates, such as the Spring MVC template, which can be directly created with a MAVEN-based spring MVC demo, with all configu
IDEA import maven project step, idea import maven
Let's just start our steps.
First, you have installed IDEA, I have IDEA15, followed by your maven plug-ins. However, these basic plug-ins are basically downloaded from IDEA, you can directly configure maven. You can download it from the official website. However, tomcat
Environment Description:Window 8.1 64bitEclipse Version:luna Release (4.4.0)Maven 3.0.5Windows Maven Installation:1. Make sure the JDK is installed, my JDK is 1.7.0_602. Download Maven3, version 3.0.5, address: http://maven.apache.org/download.cgiDownload the Bin.zip file and extract it to the specified folder, my D:\Program files\maven\apache-
installationmaven, create and runWebProject
Install maven and integrate maven in Eclipse
1 download maven Baidu Cloud Disk Address: Http://pan.baidu.com/s/1i32gn9FNeed to be setting.xmlConfigured as a private address for your personal useDownload and unzip to local2 Configuring environment VariablesPath add mavenbin directory below3 test whether
Tip: Use maven to install the JDK first.Download install MavenFirst, download the latest version of maven,:http://maven.apache.org/download.cgiSecond, download maven to the E:\maven folder and unzipThird, add the environment variable maven_home and modify path:Iv. after the configuration is complete, enter mvn-v at the
When I made a war package for the MAVEN project, first it was maven clean, then there was an error in the Maven build, saying that I couldn't find the target file for the project (I don't copy it in English) and I spent a lot of time on it, and finally maven Install, I feel very puzzled, I did not have a deep understan
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.