Myecplise New MAVEN Project filter selection
Build a MAVEN project using MyEclipse
Step through Reading
MAVEN is a management project, and MyEclipse is writing code. The first time you write a project you have to configure a lot of things, very troublesome, now look at how to create a new MAVEN project.
Tools/Materials
Method/Step
- 1
Because the tutorials used by Maven are self-configuring, they are not using MyEclipse (the higher version of MyEclipse comes with maven). So first you have to install MAVEN. MAVEN's download installation can refer to the following experience.
Download configuration for 0maven
- 2
Open MyEclipse (used in this experience is myeclipse2014), window-->preferences.
Find Myeclipse-->maven4myeclipse and check the two boxes if you want to download the source code and help documentation.
Find installations under Maven4myeclipse and add the maven you installed.
Locate the user settings. Set the user settings to Cfon/settings.xml under the MAVEN project, OK.
Create a new Web project, tick add Maven Support,java version to be at 1.7 and above.
Then go all the way to the project structure and choose MAVEN's project structure.
If you're lucky, there's nothing wrong with the new project. If you are prompted with an error:
Failure to transfer org.apache.maven:maven-artifact:pom:2.0.6 from Http://repo.maven.apache.org/maven2 is cached in The local repository, resolution is not being reattempted until the update interval of the central have elapsed or updates are F orced. Original error:could not transfer artifact org.apache.maven:maven-artifact:pom:2.0.6 from/to Central (HTTP// REPO.MAVEN.APACHE.ORG/MAVEN2): No connector available to access repository Central (http://repo.maven.apache.org/ MAVEN2) of type default using the available factories Pom.xml/hello Line 1 Maven Configuration problem
In that case, open the window-->preferences-->myeclipse-->maven4myeclipse--->user settings copy the address inside the local repository.
If you don't have a myeclipse, you'll find:
c:\users\{your computer account}\.m2\repository (usually in this folder).
Like mine: C:\users\long\.m2\repository.
Find the repository file and search for maven*.lastupdated. Delete all the documents that have been searched out.
Restart MyEclipse, right-click Project--->maven4myeclipse--->update project ...
Tick force Update of snapshots/releases, then OK exit, if still wrong, do not worry, wait for a while. If after a while or is wrong, then ask the Niang bar. If it's settled, please vote for me.
Myecplise New MAVEN Project filter Select, use MyEclipse to build Maven project