D:\maven\simple-weather>mvn install
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
[INFO] Building simple-weather
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 5 source files to D:\maven\simple-weather\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\WeatherForm
atter.java:[7,24] 软件包 org.apache.log4j 不存在
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\WeatherForm
atter.java:[13,23] 找不到符号
符号: 类 Logger
位置: 类 org.sonatype.mavenbook.weather.WeatherFormatter
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\YahooParser
.java:[7,24] 软件包 org.apache.log4j 不存在
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\YahooParser
.java:[14,23] 找不到符号
符号: 类 Logger
位置: 类 org.sonatype.mavenbook.weather.YahooParser
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\YahooRetrie
ver.java:[7,24] 软件包 org.apache.log4j 不存在
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\YahooRetrie
ver.java:[11,23] 找不到符号
符号: 类 Logger
位置: 类 org.sonatype.mavenbook.weather.YahooRetriever
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\Main.java:[
5,24] 软件包 org.apache.log4j 不存在
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\WeatherForm
atter.java:[13,36] 找不到符号
符号: 变量 Logger
位置: 类 org.sonatype.mavenbook.weather.WeatherFormatter
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\YahooParser
.java:[14,36] 找不到符号
符号: 变量 Logger
位置: 类 org.sonatype.mavenbook.weather.YahooParser
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\YahooRetrie
ver.java:[11,36] 找不到符号
符号: 变量 Logger
位置: 类 org.sonatype.mavenbook.weather.YahooRetriever
D:\maven\simple-weather\src\main\java\org\sonatype\mavenbook\weather\Main.java:[
12,16] 找不到符号
符号: 变量 PropertyConfigurator
位置: 类 org.sonatype.mavenbook.weather.Main
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jul 16 13:00:39 CST 2009
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------
D:\maven\simple-weather>