`

安装完maven之后第一次构件报错

阅读更多

解压apache-maven-3.0.5-bin.zip 压缩包,配置好M2_HOME和path之后,我写了一个简单地pom.xml和helloworld,

但是,执行mvn clean complile 时,报错:

E:\NA52QXHQ\software\maven\demo\hello-world>mvn clean complile

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Hello World Project 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.123s

[INFO] Finished at: Fri Jun 21 14:33:22 CST 2013

[INFO] Final Memory: 1M/15M

[INFO] ------------------------------------------------------------------------

[ERROR] Unknown lifecycle phase "complile". You must specify a valid lifecycle phase or a goal in the format <plugin-pre

fix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validat

e, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, gener

ate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-clas

ses, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, dep

loy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

E:\NA52QXHQ\software\maven\demo\hello-world>

E:\NA52QXHQ\software\maven\demo\hello-world>

 

根据他的错误信息,应该是maven不认识"complile",或者说maven还没有安装"complile"插件。

 

于是我执行mvn install

E:\NA52QXHQ\software\maven\demo\hello-world>mvn install

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Hello World Project 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plu

gin-2.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plug

in-2.5.pom (7 KB at 4.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/19/maven-plugins-19.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/19/maven-plugins-19.pom (11 KB at

 12.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/19/maven-parent-19.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/19/maven-parent-19.pom (25 KB at 6.7 KB/se

c)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plu

gin-2.5.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plug

in-2.5.jar (26 KB at 10.2 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plu

gin-2.3.2.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plug

in-2.3.2.pom (8 KB at 6.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (0 B at 0

.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (0 B at 0.0 KB/sec)

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plu

gin-2.3.2.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plug

in-2.3.2.jar (29 KB at 19.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plug

in-2.10.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugi

n-2.10.pom (11 KB at 7.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom (12 KB at 8.5

KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/maven-parent-20.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/maven-parent-20.pom (0 B at 0.0 KB/sec)

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plug

in-2.10.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugi

n-2.10.jar (30 KB at 17.5 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.

pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.p

om (6 KB at 10.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/21/maven-plugins-21.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/21/maven-plugins-21.pom (0 B at 0

.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.

jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.j

ar (32 KB at 22.9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugi

n-2.3.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin

-2.3.1.pom (0 B at 0.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugi

n-2.3.1.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin

-2.3.1.jar (0 B at 0.0 KB/sec)

[INFO]

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ hello-world2 ---

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.pom (4 KB at 5

.2 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.6/plexus-2.0.6.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.6/plexus-2.0.6.pom (17 KB at 16.5 KB/sec)

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.pom (6 K

B at 9.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/16/maven-shared-compone

nts-16.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/16/maven-shared-componen

ts-16.pom (9 KB at 14.2 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar (42

KB at 14.5 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar (218 KB at

 38.5 KB/sec)

[debug] execute contextualize

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory E:\NA52QXHQ\software\maven\demo\hello-world\src\main\resources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ hello-world2 ---

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom (4 KB at 5.

5 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1

.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1.

pom (805 B at 1.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/1.8.1/plexus-compiler-1.8.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/1.8.1/plexus-compiler-1.8.1.pom (4 K

B at 6.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.18/plexus-components-1.1.18.p

om

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.18/plexus-components-1.1.18.po

m (6 KB at 9.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.7/plexus-2.0.7.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.7/plexus-2.0.7.pom (17 KB at 28.7 KB/sec)

 

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.pom (6 KB at 8

.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manag

er-1.8.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manage

r-1.8.1.pom (713 B at 1.2 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1

.8.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1.

8.1.pom (710 B at 0.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/1.8.1/plexus-compilers-1.8.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/1.8.1/plexus-compilers-1.8.1.pom (2

 KB at 2.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1

.jar

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manag

er-1.8.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1

.8.1.jar

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.8.1/plexus-compiler-api-1.8.1.

jar (20 KB at 22.1 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-manage

r-1.8.1.jar (6 KB at 5.8 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.8.1/plexus-compiler-javac-1.

8.1.jar (13 KB at 8.4 KB/sec)

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!

[INFO] Compiling 1 source file to E:\NA52QXHQ\software\maven\demo\hello-world\target\classes

[INFO]

[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ hello-world2 ---

[debug] execute contextualize

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory E:\NA52QXHQ\software\maven\demo\hello-world\src\test\resources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ hello-world2 ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ hello-world2 ---

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.pom (2 KB

 at 2.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.9/maven-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.9/maven-2.0.9.pom (19 KB at 20.5 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/8/maven-parent-8.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/8/maven-parent-8.pom (24 KB at 27.1 KB/sec

)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom

 

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom

(3 KB at 3.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.10/surefire-api-2.10.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.10/surefire-api-2.10.pom (3 KB

at 3.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-com

mon-2.10.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-comm

on-2.10.pom (4 KB at 6.5 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.pom (4 KB at 6.9 K

B/sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/16/spice-parent-16.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/16/spice-parent-16.pom (9 KB at 14.0 KB/

sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/5/forge-parent-5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/5/forge-parent-5.pom (9 KB at 13.6 KB/se

c)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.pom (2 KB at

2.6 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.pom (3 KB at 4.

3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.pom (3 KB at

3.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.pom (4 KB at 5.1 KB

/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.pom (3 KB at 2.

9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.

0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0

.9.pom (3 KB at 4.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metad

ata-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metada

ta-2.0.9.pom (2 KB at 3.2 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.

9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9

.pom (2 KB at 3.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.9/maven-core-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.9/maven-core-2.0.9.pom (8 KB at 10.3 KB/

sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.9/maven-plugin-p

arameter-documenter-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.9/maven-plugin-pa

rameter-documenter-2.0.9.pom (2 KB at 3.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-ap

i-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api

-2.0.9.pom (2 KB at 2.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting/2.0.9/maven-reporting-2.0.9.

pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting/2.0.9/maven-reporting-2.0.9.p

om (2 KB at 2.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.9/maven-error-diagnostics-

2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.9/maven-error-diagnostics-2

.0.9.pom (2 KB at 2.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.9/maven-plugin-descriptor-

2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.9/maven-plugin-descriptor-2

.0.9.pom (3 KB at 3.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.9/maven-monitor-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.9/maven-monitor-2.0.9.pom (2 KB at 2.

1 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.pom (4 KB a

t 5.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-

artifact-filters-1.3.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-a

rtifact-filters-1.3.pom (4 KB at 6.2 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/12/maven-shared-compone

nts-12.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/12/maven-shared-componen

ts-12.pom (10 KB at 16.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-contain

er-default-1.0-alpha-9.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-containe

r-default-1.0-alpha-9.pom (2 KB at 2.1 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.10/surefire-api-2.10.jar

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-

artifact-filters-1.3.jar

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.jar

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-com

mon-2.10.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.10/surefire-api-2.10.jar (158 K

B at 88.9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-ap

i-2.0.9.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-a

rtifact-filters-1.3.jar (31 KB at 12.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api

-2.0.9.jar (10 KB at 17.0 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.jar

(34 KB at 13.0 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-comm

on-2.10.jar (60 KB at 20.5 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar (220 KB at 25.

5 KB/sec)

[INFO] No tests to run.

[INFO] Surefire report directory: E:\NA52QXHQ\software\maven\demo\hello-world\target\surefire-reports

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.10/surefire-junit3-2.10.pom

 

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.10/surefire-junit3-2.10.pom

(2 KB at 2.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.10/surefire-providers-2.

10.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.10/surefire-providers-2.1

0.pom (3 KB at 3.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.10/surefire-junit3-2.10.jar

 

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.10/surefire-junit3-2.10.jar

(26 KB at 28.1 KB/sec)

 

-------------------------------------------------------

 T E S T S

-------------------------------------------------------

 

Results :

 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

 

[INFO]

[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ hello-world2 ---

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.pom

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.pom (4 KB at

6.6 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.0.1/plexus-archiver-2.0.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.0.1/plexus-archiver-2.0.1.pom (3 K

B at 4.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/17/spice-parent-17.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/17/spice-parent-17.pom (7 KB at 10.9 KB/

sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/10/forge-parent-10.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/10/forge-parent-10.pom (14 KB at 21.4 KB

/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.pom (4 KB at 6.8 K

B/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.1/plexus-io-2.0.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.1/plexus-io-2.0.1.pom (2 KB at 2.9 KB/

sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.19/plexus-components-1.1.19.p

om

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.19/plexus-components-1.1.19.po

m (3 KB at 4.5 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/3.0.1/plexus-3.0.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/3.0.1/plexus-3.0.1.pom (19 KB at 20.1 KB/sec)

 

Downloading: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.pom

Downloaded: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.pom (10 KB at 16.4 KB/sec

)

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.jar

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.1/plexus-io-2.0.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.0.1/plexus-archiver-2.0.1.jar

Downloading: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.1/plexus-io-2.0.1.jar (57 KB at 42.0 K

B/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.jar (20 KB at

 9.5 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.0.1/plexus-archiver-2.0.1.jar (176

 KB at 31.8 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar (221 KB at 33.

6 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.jar (203 KB at 23.9 KB/se

c)

[INFO] Building jar: E:\NA52QXHQ\software\maven\demo\hello-world\target\hello-world2-1.0-SNAPSHOT.jar

[INFO]

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ hello-world2 ---

[INFO] Installing E:\NA52QXHQ\software\maven\demo\hello-world\target\hello-world2-1.0-SNAPSHOT.jar to C:\Users\huangwei\

.m2\repository\com\juvenxu\mvnbook\hello-world2\1.0-SNAPSHOT\hello-world2-1.0-SNAPSHOT.jar

[INFO] Installing E:\NA52QXHQ\software\maven\demo\hello-world\pom.xml to C:\Users\huangwei\.m2\repository\com\juvenxu\mv

nbook\hello-world2\1.0-SNAPSHOT\hello-world2-1.0-SNAPSHOT.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1:23.944s

[INFO] Finished at: Fri Jun 21 14:36:41 CST 2013

[INFO] Final Memory: 7M/17M

[INFO] ------------------------------------------------------------------------

E:\NA52QXHQ\software\maven\demo\hello-world>

 

 

然后再执行mvn compiler:compile

E:\NA52QXHQ\software\maven\demo\hello-world>mvn compiler:compile

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Hello World Project 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-cli) @ hello-world2 ---

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!

[INFO] Compiling 1 source file to E:\NA52QXHQ\software\maven\demo\hello-world\target\classes

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.102s

[INFO] Finished at: Fri Jun 21 14:49:17 CST 2013

[INFO] Final Memory: 5M/15M

[INFO] ------------------------------------------------------------------------

E:\NA52QXHQ\software\maven\demo\hello-world>

 

 

 

 

分享到:
评论
1 楼 masuweng 2016-10-28  
     

相关推荐

    eclipse导入maven项目报错解决办法

    ### Eclipse导入Maven项目报错解决办法 在开发过程中,我们常常会遇到使用Eclipse导入Maven项目时出现的各种报错情况。本文旨在系统地介绍如何解决这些常见问题,包括但不限于配置环境、设置JDK版本、配置Maven库...

    maven安装maven安装maven安装maven安装maven安装

    maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装...

    Eclipse导入Maven项目pom.xml报错的解决办法.doc

    在使用Eclipse进行Java开发时,Maven是一个不可或缺的工具,它通过POM(Project Object Model)文件来管理项目的构建、依赖和文档。然而,在实际操作中,有时会在导入Maven项目时遇到pom.xml报错的问题。这个问题...

    maven nexus私服构件示例

    Maven Nexus 私服构件示例是一个实用的教程,旨在帮助开发者理解如何在本地环境中搭建和使用Nexus作为Maven的私有仓库。这个示例包括一个父Maven项目以及多个子项目,这些子项目涵盖了不同的模块,如业务逻辑、持久...

    解决MyEclipse中Maven设置jdk版本jdk1.8报错问题

    解决MyEclipse中Maven设置jdk版本jdk1.8报错问题 在MyEclipse中使用Maven进行项目开发时,可能会遇到jdk版本设置问题。本文将详细介绍如何解决MyEclipse中Maven设置jdk版本jdk1.8报错问题。 知识点一:MyEclipse中...

    新建maven后pom. xml报错解决方法

    在进行Maven项目的开发过程中,经常会遇到POM(Project Object Model)文件报错的问题,特别是在创建新的Maven项目时。本文将详细介绍如何解决新建Maven项目后POM.xml文件出现错误的情况。 ### 一、理解POM.xml ...

    eclipse安装maven插件需要包

    Eclipse是一款广受欢迎的Java开发集成环境,而Maven则是一个强大的项目管理和构建工具,它遵循约定优于配置的原则,能够帮助开发者管理项目依赖、构建、报告等任务。然而,在某些网络环境不佳的情况下,Eclipse可能...

    Maven安装与MyElipse8.5安装Maven插件

    6. **测试Maven安装**:通过命令行检查Maven是否正确安装,可以使用`echo %M2_HOME%`查看M2_HOME变量,以及`mvn -v`命令查看Maven版本信息,确认Maven可以正常使用。 7. **Maven的用途**:Maven通过POM文件管理项目...

    maven安装压缩包+安装文档

    安装 JDK 并配置环境变量是第一步,包括设置 `JAVA_HOME` 用户变量,指向 JDK 的安装路径,同时在系统变量的 `Path` 中添加 `%JAVA_HOME%\bin`,确保可以在任何目录下运行 Java 命令。 2. Maven:下载 Apache Maven ...

    Intellij IDEA中使用maven filter遇到的问题

    Maven Filter是Maven资源插件(maven-resources-plugin)的一部分,它允许我们在构建过程中对资源文件进行替换操作。通过使用`${property}`语法,我们可以引用Maven属性并在编译或打包阶段动态替换这些值。这对于多...

    maven工具和安装方法

    ** Maven工具和安装方法 ** Maven是一款强大的项目管理和依赖管理工具,广泛应用于Java开发领域。它通过XML格式的配置文件来管理项目的构建、报告和文档,极大地简化了项目的生命周期管理。Maven3.5是其中的一个...

    myeclipse 上安装 Maven3

    ### 如何在MyEclipse上安装与配置Maven3 #### 环境准备 在开始配置Maven之前,确保已经正确安装并配置了以下环境: - **JDK1.6**:Maven依赖于Java运行环境,因此需要先安装JDK。 - **Maven3.0.4**:这是本教程使用...

    maven安装与使用

    - **坐标**:每个Maven构件都由一组坐标唯一标识,包括Group ID、Artifact ID和Version。 - **仓库**:Maven使用仓库来存储和管理构件。本地仓库存储本地开发过程中使用的构件,而中央仓库则包含了大量公共可用的...

    maven报错积累文件

    在日常的软件开发工作中,尤其是使用Maven作为构建工具时,开发者可能会遇到各种各样的报错情况。Maven是一个强大的项目管理和集成工具,它能够帮助我们管理依赖、编译源码、打包应用以及执行测试等任务。然而,由于...

    eclipse安装maven插件,处理无Maven Pom editor打开方式问题

    安装完Maven插件后,需要在Eclipse中配置Maven。进入`Window` -&gt; `Preferences` -&gt; `Maven`,设置`User Settings`为Maven的用户设置文件(通常在用户目录下的`.m2\settings.xml`),`Global Settings`为Maven的全局...

    安装的maven3.6.1

    4. **验证安装**: 在终端或命令行中输入`mvn -version`,如果正确安装,你应该能看到Maven的版本信息,包括你刚刚安装的3.6.1。 ** Maven 的工作原理 ** 1. **POM**: Maven项目的核心是POM,一个XML文件,包含了...

Global site tag (gtag.js) - Google Analytics