3. The first MAVEN project created by IDEA-JavaWeb, mavenjavaweb
1. What is Maven?
Maven is a Project management tool that contains a Project Object Model, a set of standard sets, and a Project Lifecycle ), A Dependency Management System and logic used to run the plug-in (goal) defined in the lifecycle phase (phase.
Next we will integrate SSI into the maven build program. First you need to select the version you want to integrate, because the maven dependency needs to specify the version, the following is the SSI version I need for integration (represented by Maven dependency ):
1 2 3 4 5 6 7 8 9 10 11 12 13 1
| From the college entrance examination to the programmer csdn daily 20170620--"Find a good job, talk about a good salary" June Newsletter | The most popular SQL starter book heavyweight upgradestart from scratch based on MAVEN build Springmvc+mybatis project (3)Tags: javamavenspring mvcmybatis2016-07-26 10:06 42087 People read Comments (2) favorite report
This article has been included in: Java Kno
Maven Life cycleClean life cycle. Each phase is dependent on the previous stage.The default life cycle.
The role of plug-ins(1) Plug-in targetDownload the built-in plug-in from the central repository locally, and then reference the plug-in locally to perform the task.(2) Life cycle and plug-in relationshipMVN process-resources can invoke Maven-resources-plugin plug-ins to perform operations that replicat
Build a simple Java project using Maven
1. Enter the command line and execute the following statement.
MVN archetype: generate-dgroupid = cn. luxh. app-dartifactid = My-app-darchetypeartifactid = Maven-Archetype-Quickstart-dinteractivemode = false
After the execution is complete, you can see the following results:
Build success. A Java project named my-app is built under the previous user directo
The continuous integration process for Maven Java projects1 jekins from SVN pull replacement code2 Using the MVN Deploy command to compile, test, package, and publish to the MAVEN Agent repository on the intranetSpecific configuration procedure 1 new taskEnter an item name, select "Build a free-style software project", click OK2 Configuring source ManagementSelect Subversion in source management and fill in
1. The whole catalogue after completion
2. New MAVEN Project
Right-click New-> Other Project-> enter search Maven project-> Check create a simple project-> Next-> fill out the group ID and artifact ID. Select War Package->finish
3. Modify dynamic Web module to 3.0
Project Right Key properties-> Search Project Facets-> modify Dynamic Web Module to 3.0
Direct Clic
, close it, and then the general situation is thisConfiguring eclipse first needs to go to the "preferences" configuration, which is how to find "window" in the top menu bar window->preferencesThe items to be configured are:1, the text display of the font size (the default font size display Chinese is too small, the individual think set to 12th appropriate); 2. Open the default editor for various types of files (such as opening HTML, default is to use the editor with real-time preview, too slow
Cxf3.x + spring 3.x( 4.x) + maven releases the webservice, cxf3.xmaven
Cxf is really useful when providing enterprise-level webservices. I personally think it is better than axis1 and 2. Although spring also provides the webservices release method, It is very convenient to use cxf in combination with spring;
The overall project result is as follows:
Maven-based
3 ways to run Java main using MavenOriginalhttp://blog.csdn.net/qbg19881206/article/details/19850857 ThemesMavenMAVEN uses the Exec plugin to run the Java Main method, and here are 3 different ways to do it.One, run from the command line1, compile the code before running, Exec:java will not automatically compile the code, you need to manually execute MVN compile to complete the compilation.MVN Compile2. Aft
For Maven projects, most third-party java library files that are commonly used can be automatically downloaded from Maven's Central Repository. However, if the jar files we need are not in the Central Repository, then we need to manually add the downloaded jar file to Maven's local reposotory. In this case, we need to provide Maven with the groupId used to identify jar files (possibly multiple, artifactId,
Use the Eclipse plug-in to create a web project. First, create a Maven project, as shown in figure
Select create a simple project (no skeleton is used)
Here, packing is in the war format.
Since packing is a war package, the webapp directory is displayed below.
Because our project needs to be released to Tomcat using eclipse, we need to first convert the project into a dynamic web project
Right-click our project, selec
background
Since the Hadoop project is mostly a larger project, we chose to use the build tool to build the Hadoop project, where we use Maven. Of course, you can also use the more popular building tools such as Gradle to build the process
Here's a summary of the process I used IntelliJ idea to develop the MAVEN project. Create maven Project
First create a new
Installation of M2eclipse
Slightly
Setting up the Maven directory
Set up a user-personalized MAVEN configuration
Import Maven Project
Source code Download
Run Command
To run a custom command:
MVN clean Install or mvn clean compile can be c
Software Requirements
To create an EJB 3.0 application build environment, you need to use the following items:
GlassFish v2 b58d
NetBeans IDE 6.0 Nightly from 03.09.2007
Apache Maven 2.0.7
Mevenide2-netbeans plug-ins (NetBeans, MAVEN2 project support)
Assume that the above software is fully installed and functioning properly. The software installation method is to extract the files into the selected directory.
To install the NetBeans MAVEN2 Pro
1. DownloadDownload Https://help.sonatype.com/display/NXRM3/Download from official website select Windows Archive https://download.sonatype.com/nexus/3/ Latest-win64.zip for download2. InstallationDownload and get a zip file, put it in the directory you want to install to unzip it3. Configuration ServiceGo to the installation directory C:\nexus-3\bin, use Nexus.exe/install nexus , notice open cmd console wi
the Test folder, so of course the error. Just place the bean.xml in the Code root directory test/src. As can be seen, should be my spring-servlet-context.xml configuration file is not in the source folders, so compile the time can not find, I went to see, my profile is in Main/resource below, I added Main/java under build path, so I get an error.Through the above processing, start the service again, error resolution, intentions to solve the problem, all can be solved.Eclipse
Well, now create another Maven project to use the plug-in created in article 2. Note that it is still obtained through the private server.
The configuration of POM. XML is as follows:
Note that the comments of the class in the second generated code contain @ goal touch
/** * Goal which touches a timestamp file. * * @goal touch * * @phase process-sources */public class MyMojo extends AbstractMojo
Therefore, in the application, you can set the exe
Eclipse Update site
Http://download.eclipse.org/technology/m2e/releases
Setting. xml
Http://maven.apache.org/ref/3.0.5/maven-settings/settings.html
JUnit
Https://github.com/junit-team/junit/wiki/Download-and-Install
If you encounter the following prompt when using m2eclipse:
Eclipse is running in a JRE, but a JDK is requiredSome Maven plugins may not work when importing projects or updating sou
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.