IntelliJ IDEA如何配置、编译、运行maven构建的java web工程

IntelliJ IDEA如何配置、编译、运行maven构建的java web工程

(1)

20

课程介绍

IntelliJ IDEA如何配置、编译、运行maven构建的java web工程

新建好maven工程后,maven下载第三方依赖库和转换webapp目录特别慢:

"C:\Program Files\Java\jdk1.7.0_79\bin\java" -Dmaven.multiModuleProjectDirectory=C:\Users\最代码\AppData\Local\Temp\archetype1tmp -Dmaven.home=D:\apache-maven-3.3.3 -Dclassworlds.conf=D:\apache-maven-3.3.3\bin\m2.conf -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.3.3\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2016.1.3 -s D:\apache-maven-3.3.3\conf\settings.xml -Dmaven.repo.local=D:\.m2\repository -DinteractiveMode=false -DgroupId=com.zuidaima -DartifactId=zuidaima_test_maven2 -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] Archetype repository not defined. Using the one from [org.apache.maven.archetypes:maven-archetype-webapp:1.0] found in catalog remote
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/maven-metadata.xml (498 B at 0.3 KB/sec)
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-webapp:RELEASE
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.zuidaima
[INFO] Parameter: packageName, Value: com.zuidaima
[INFO] Parameter: package, Value: com.zuidaima
[INFO] Parameter: artifactId, Value: zuidaima_test_maven2
[INFO] Parameter: basedir, Value: C:\Users\最代码\AppData\Local\Temp\archetype1tmp
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: C:\Users\最代码\AppData\Local\Temp\archetype1tmp\zuidaima_test_maven2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:45 min
[INFO] Finished at: 2016-07-21T23:39:36+08:00
[INFO] Final Memory: 14M/150M
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution finished

只有提示BUILD SUCCESS才算成功。