- sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
- sudo aptitude update
- sudo aptitude install sun-java6-jdk sun-java6-plugin
Ubuntu 10.04 安裝 Sun JDK 步驟
Maven 之 POM(Project Object Model) 設定檔
在執行Maven時,它會去檢查專案目錄下是某具有pom.xml檔案,如果沒有時,任何操作都會出現build error。
Maven 介紹
我們先透過一個小範例讓大家對Maven的運作有一個初步的了解,在使用它之前,你必須要先安裝好適當的jdk。
首先,請先下載Maven,在這一篇的操作中,我們已Maven 2.2.1版本為主。
下載頁面:http://maven.apache.org/download.html
Eclipse安裝Maven套件時出現 "Cannot complete the install because one or more required items could not be found." 的解決方法
Cannot complete the install because one or more required items could not be found. Software being installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712) Missing requirement: Maven Integration for Eclipse (Editors) 0.12.1.20110112-1712 (org.maven.ide.eclipse.editor 0.12.1.20110112-1712) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found Cannot satisfy dependency: From: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712) To: org.maven.ide.eclipse.editor [0.12.1.20110112-1712]
看起來是缺少一些dependency的套件, 查了一下,只要安裝GEF套件即可,網址在此:http://download.eclipse.org/tools/gef/updates/releases/
另外,Maven的Update Site:http://m2eclipse.sonatype.org/sites/m2e