在使用Maven構建Appfues時通常都會出現
- Missing:
- ----------
- 1) com.sun:tools:jar:1.5.0
- Try downloading the file manually from the project website.
出現以上原因是因爲jdk沒有配好。我們只需要修改一個pom.xml就ok了
<!--jdk-->
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>C:/Program Files/Java/jdk1.6.0_05/lib/tools.jar</systemPath>
</dependency>
注意<systemPath>${java.home}/../lib/tools.jar</systemPath>我們通常是使用系統的環境變量取得java.home的路徑的