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
I. Creating a project
Create a project with Maven in 1.Eclipse
In the image above, next
2. Continue Next
3. After selecting Maven-archetype-webapp, next
4. Fill in the corresponding information, GroupID and Artifactid can be arbitrarily taken, groupid generally divided
1. Create a project1.1. New in Eclipse – select Maven Project1.2. Select Create a simple project1.3. Click Next to enter the nextGroup Id,artifact ID, you can write a random, select the war type in packagingNote: GroupID plus Artifactid requires globally uniqueGeneral GroupID are package namesArtifactid for Project nameMaven can manage the jar packages that the
; change JDK version: Double-click the JRE System Library in libraries to version 1.65. Turn the project into a Dynamic Web project right-click Project and select Project FacetsConfigure project Facets to change the version of the dynamic Web module to 2.3. (3.0 for Java7).I
Error in eclipse: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp-1.0.jar:release from any of the configured repositoriesIdea error: The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-webapp:1.0)Cause: The Org.apache.maven.archetypes:maven-archetype-webapp plugin in maven is too old or fundamental to exist.Workaround: 1. To http://maven.oschina.n
Step-by-step we're trying to use Eclipse J2ee+maven+tomcat (Jetty) to build a retaining web development platform for the Spring MVC approach.Tools: Eclipse J2ee,maven,tomcatEclipse J2ee+maven+tomcat (Jetty): http://www.eclipse.org/downloads/
ReproducedWhen we build a MAVEN project structure through a template (like the simplest maven-archetype-quikstart plugin), how do we convert it into Eclipse-supported Java project?1. Navigate to the Maven root directory (this dire
After eclipse installs the MAVEN plug-in, create a Maven WebApp project, and when you modify the Dynamic Web Module to 3.0 in the project facets interface of the engineering properties, Eclipse always prompts Cannot change version
, Java Build path Click on source, there are four familiar folders, double-click the first output ... Src/main/java and src/main/recources The default is Target/classesand Src/test/java and src/test/resources default is target/test-classes (if not, please select manually)Then click Apply, then click Project Facets to change java1.5 to java1.8 (your own JDK)You can run the project at this time to test whethe
I. OverviewThe projects that Maven creates are divided into three main categories: War (Web Project), Jar (Java Engineering), POM (parent project);War: Web project, including WebApp, for view layerJar:java Engineering for the provision of methods, service, DAO and other servicesPOM: Parent
Maven was recently used in the development of projects, and there was a connection between multiple MAVEN projects, so they were created separately and then managed with Maven aggregation.Project uses Git to manage code, Because the. setting files are not uploaded in the. gitignore file when uploading the code, the MAVEN
Eclipse cannot find Maven Dependencies after the introduction of MAVEN engineering. Make the code error, as shown in:The normal MAVEN project is as follows:This can be caused by changes in the project's corresponding development environment, the local
.Eclipse: Http://www.eclipse.org/downloads/version selected by itselfWhen we're done, we'll start eclipse, set up a working path, or directly default. We open window-->preference input JRE, installAt this point we can build a Java project casually and then write a HelloWorld to test it correctly.Installation of 3.TOMCAT8Tomcat I use the version is 8, you can go t
The Maven Tomcat plugin is now mostly available in two versions, Tomcat-maven-plugin and Tomcat7-maven-plugin, in the same way, please look down.Note: You first Configure the administrative users and permissions for Tomcat.Open the Tomcat-users.xml file and add it laterTomcat7-maven-plugin useConfigurationTwo plug-ins
Turn from: 46544555First, export to the default directory Targed/dependencyTo export a project-dependent jar package from a MAVEN project: Enter the directory where the project Pom.xml is located and execute the following command:
1
mvn dependency:copy-dependencies
Or in
Reference: http://blog.csdn.net/luwei42768/article/details/72268246After you create a MAVEN project in the Eclipse Project, sometimes the folder styles under the Src/main/resources directory change after you execute the command Maven update or
BackgroundTo implement a cross-database package call at work, back at the front end of the JSP, the project is only Maven, so refer to andyの notes to see what updates you need to combine your project to achieve a simple function.1. MavenAlthough Maven has been embedded in the proje
-classes, other compiled to the Target/classes directory, other general default does not need to change whatThen deploy the configuration:Once configured, by right-clicking Servers in Tomcat,add and remove ... Add Items and restart TomcatThe first one I don't have anymore, the second is for direct deployment to the test server, and the third is for local debuggingAppendix:Tomcat administrator configuration, add the following configuration in the Tomcat-users.xml of the servers
1. First confirm that your eclipse is installed in the M2ECLIPSE environment, you can refer to the two Maven learning content2. Create a new MAVEN project3. Next default configuration, use the default workspace, or you can choose a different space for yourself4. Generally we are web development, so choose Maven-archety
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.